34 lines
705 B
Plaintext
34 lines
705 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
//:: Declare major variables
|
||
|
object oPC = GetEnteringObject();
|
||
|
object oTarget = GetWaypointByTag("WP_Eel_WOM");
|
||
|
location lTarget = lTarget = GetLocation(oTarget);
|
||
|
|
||
|
if (GetIsPC(oPC))
|
||
|
return;
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "towerofangarngit")== OBJECT_INVALID)
|
||
|
return;
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "shadowmask")!= OBJECT_INVALID)
|
||
|
return;
|
||
|
|
||
|
CreateItemOnObject("shadowmask", oPC);
|
||
|
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID)
|
||
|
return;
|
||
|
|
||
|
oTarget = GetFirstFactionMember(oPC, FALSE);
|
||
|
|
||
|
while (GetIsObjectValid(oTarget))
|
||
|
{
|
||
|
AssignCommand(oTarget, ClearAllActions());
|
||
|
|
||
|
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
|
||
|
oTarget=GetNextFactionMember(oPC, FALSE);
|
||
|
}
|
||
|
}
|
||
|
|