Initial Commit
Initial Commit
This commit is contained in:
13
_module/nss/pseudo_dungexit.nss
Normal file
13
_module/nss/pseudo_dungexit.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
void Body()
|
||||
{
|
||||
DeleteLocalInt(OBJECT_SELF, "Players"); //because anc_mod_exit subtracts 1 from "Players" in the player's area - in this case this shouldn't happen
|
||||
object oExArea = GetArea(GetWaypointByTag(GetLocalString(OBJECT_SELF, "DungeonWP")));
|
||||
SetLocalInt(oExArea, "Players", GetLocalInt(oExArea, "Players")-1); //because anc_mod_exit subtracts 1 from "Players" in the wrong area, very messy, I know
|
||||
WriteTimestampedLogEntry("DungExit fired (PSEUDO)"); //TEST
|
||||
ExecuteScript("pseudo_donexit", oExArea);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
DelayCommand(1.0, Body());
|
||||
}
|
Reference in New Issue
Block a user