Initial Commit
Initial Commit
This commit is contained in:
15
_module/nss/dung_onexit.nss
Normal file
15
_module/nss/dung_onexit.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
void Body(object oExiting)
|
||||
{
|
||||
if (!GetIsPC(oExiting)) return;
|
||||
object oExArea = GetArea(GetWaypointByTag(GetLocalString(OBJECT_SELF, "DungeonWP")));
|
||||
//FloatingTextStringOnCreature("DungExit fired", GetFirstPC()); //TEST
|
||||
SetLocalInt(oExArea, "Players", GetLocalInt(oExArea, "Players")-1); //because pseudo event scripts don't subtract from the number of players
|
||||
ExecuteScript("pseudo_donexit", oExArea);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
object oExiting = GetExitingObject();
|
||||
if (GetLocalInt(oExiting, "InTransition") == TRUE) return;
|
||||
DelayCommand(1.0, Body(oExiting));
|
||||
}
|
||||
Reference in New Issue
Block a user