Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
26
_module/nss/en4_exit_clear.nss
Normal file
26
_module/nss/en4_exit_clear.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
object oClicker = GetClickingObject();
|
||||
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
||||
object oArea;
|
||||
object oMob;
|
||||
|
||||
SetAreaTransitionBMP(AREA_TRANSITION_RANDOM);
|
||||
AssignCommand(oClicker,JumpToObject(oTarget));
|
||||
|
||||
oArea=GetArea(oClicker);
|
||||
oMob = GetFirstObjectInArea(oArea);
|
||||
while (GetIsObjectValid(oMob))
|
||||
{
|
||||
if (GetObjectType(oMob) == OBJECT_TYPE_CREATURE && !GetIsPC(oMob) && !GetIsPC(GetMaster(oMob)))
|
||||
{
|
||||
AssignCommand(oMob,ClearAllActions(TRUE));
|
||||
if (Random(4)==0)
|
||||
ForceRest(oMob);
|
||||
}
|
||||
|
||||
oMob = GetNextObjectInArea(oArea);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user