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