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

38 lines
752 B
Plaintext

#include "x0_i0_partywide"
void main()
{
object oTarget;
int nInt;
object oSpawn;
location lTarget;
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetObjectByTag("greymousersas1");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_GreySAS1")));
oTarget = GetObjectByTag("greymousersas1");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("greymousersas1");
DestroyObject(oTarget, 3.0);
oTarget = GetWaypointByTag("WP_SPn_sas21");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "sas21", lTarget);
oTarget = GetObjectByTag("sas20");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("graymousersas1");
DestroyObject(oTarget, 3.0);
}