14 lines
576 B
Plaintext
14 lines
576 B
Plaintext
|
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());
|
||
|
}
|