Lankhmar_PRC8/_module/nss/lankhstreets_jum.nss

34 lines
627 B
Plaintext
Raw Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oTarget;
location lTarget;
object oSelf = OBJECT_SELF;
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
oTarget = GetWaypointByTag("WP_NobAlley");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
oTarget=GetFirstFactionMember(oPC, FALSE);
while (GetIsObjectValid(oTarget))
{
AssignCommand(oTarget, ClearAllActions());
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
oTarget=GetNextFactionMember(oPC, FALSE);
}
// Destroy an object (not fully effective until this script ends).
DelayCommand(3.0, DestroyObject(oSelf));
}