PoA_PRC8/_module/nss/checkarea2.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

22 lines
443 B
Plaintext

void main()
{
object oSelf = GetObjectByTag("partyroomexitb");
object oArea = GetArea(oSelf);
object oObject = GetFirstObjectInArea(oArea);
//Cycle through the area to make sure their are no PC's in the area
while(GetIsObjectValid(oObject))
{
if(!GetIsPC(oObject))
{
DeleteLocalInt(GetModule(), "PartyB");
}
else if(GetIsPC(oObject))
{
SetLocalInt(GetModule(), "PartyB", 1);
return;
}
oObject = GetNextObjectInArea(oArea);
}
}