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

31 lines
758 B
Plaintext

#include "x0_i0_partywide"
void main()
{
object oTarget;
object oSpawn;
object oActor;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
SetLocalString(oPC, "hertowe1", "1");
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
// Spawn "hertowe2".
oTarget = GetWaypointByTag("WP_SPn_hertowe2");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "hertowe2", GetLocation(oTarget));
// Have "Hertowe" perform a sequence of actions.
oActor = GetObjectByTag("Hertowe");
AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("WP_Hertowe")));
// Destroy an object (not fully effective until this script ends).
DelayCommand(4.0, DestroyObject(oActor));
}