Lankhmar_PRC8/_module/nss/cnv_tport_durkul.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

46 lines
847 B
Plaintext

#include "x0_i0_partywide"
void main()
{
object oTarget;
location lTarget;
object oSpawn;
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetWaypointByTag("WP_Durkul");
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);
}
oTarget = GetWaypointByTag("WP_SPn_sas21");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "sas21", lTarget);
oTarget = GetObjectByTag("sas20");
DestroyObject(oTarget, 0.1);
oTarget = GetObjectByTag("graymousersas1");
DestroyObject(oTarget, 0.1);
}