Changed folder name.
Changed folder name.
This commit is contained in:
21
_module/nss/checkarea2.nss
Normal file
21
_module/nss/checkarea2.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user