Initial commit
Initial commit. Updated release archive.
This commit is contained in:
21
_module/nss/en5_clear_jump.nss
Normal file
21
_module/nss/en5_clear_jump.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
object oClicker = GetClickingObject();
|
||||
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
||||
object oArea;
|
||||
object oNPC;
|
||||
|
||||
SetAreaTransitionBMP(AREA_TRANSITION_RANDOM);
|
||||
|
||||
oArea = GetArea(oClicker);
|
||||
oNPC = GetFirstObjectInArea(oArea);
|
||||
while (GetIsObjectValid(oNPC))
|
||||
{
|
||||
if (GetObjectType(oNPC) == OBJECT_TYPE_CREATURE && !GetIsPC(oNPC))
|
||||
DelayCommand(0.1,AssignCommand(oNPC,ClearAllActions()));
|
||||
oNPC = GetNextObjectInArea(oArea);
|
||||
}
|
||||
|
||||
AssignCommand(oClicker,JumpToObject(oTarget));
|
||||
}
|
||||
Reference in New Issue
Block a user