Ancordia_PRC8/_module/nss/pseudo_dungexit.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

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());
}