Lankhmar_PRC8/_module/nss/walk_away_mather.nss

32 lines
727 B
Plaintext
Raw Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
int nInt;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Give 10 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
oTarget = GetObjectByTag("Mathert");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Mathert")));
oTarget = GetObjectByTag("Mathert");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Mathert");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("st_npc_townwoman");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("none")));
oTarget = GetObjectByTag("st_npc_townwoman");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("st_npc_townwoman");
DestroyObject(oTarget, 3.0);
}