PoA_PRC8/_module/nss/labyrinth_onexit.nss

39 lines
1009 B
Plaintext
Raw Normal View History

//::////////////////////////////////////////////////////////////////////////////
/*//
Labyrinth of Undeath
onExit script
labyrinth_onexit.nss
Wandering Monsters: Check once per 30 minutes on 1d20.
Detections: Strong evil from the whole place.
Continuous Effects: The evil energy of the labyrinth makes all PC's
require a Will save or be cursed. This check occurs every half
hour and the curse vanishes if the PC leaves the area.
*///
//::////////////////////////////////////////////////////////////////////////////
#include "spawn_functions"
void main()
{
//:: Declare major variables
object oPC = GetExitingObject();
object oArea = OBJECT_SELF;
effect eEffect = GetFirstEffect(oPC);
//:: Removes Labyrinth's Curse
while(GetIsEffectValid(eEffect))
{
if(GetEffectTag(eEffect) == "LabyrinthCurse")
RemoveEffect(oPC, eEffect);
eEffect = GetNextEffect(oPC);
}
//:: Run NESS clean-up
Spawn_OnAreaExit();
}