Lankhmar_PRC8/_module/nss/cnv_tport_spire.nss

43 lines
860 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#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_Spire");
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_Spire");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "sas20", lTarget);
lTarget = GetLocation(oTarget);
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
oTarget = GetObjectByTag("Sheelba2b");
DestroyObject(oTarget, 2.0);
}