Lankhmar_PRC8/_module/nss/cnv_tp_aykki.nss

35 lines
719 B
Plaintext
Raw Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oPC = GetPCSpeaker();
object oTarget;
location lTarget;
effect eVFX;
oTarget = GetWaypointByTag("WP_SPn_Arki3");
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).
oTarget = GetObjectByTag("GuildMage");
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget));
DelayCommand(1.0, DestroyObject(oTarget, 3.0));
}