Lankhmar_PRC8/_module/nss/walk_away_kers1.nss

41 lines
781 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
object oSpawn;
location lTarget;
int nInt;
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetObjectByTag("Kers1");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Kente")));
oTarget = GetObjectByTag("Kers1");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Kels1");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Kels1");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Kels1");
DestroyObject(oTarget, 3.0);
oTarget = GetWaypointByTag("WP_SPn_Kers2");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kels2", lTarget);
oTarget = GetObjectByTag("kersdoor1");
SetLocked(oTarget, FALSE);
}