Lankhmar_PRC8/_module/nss/mat_walk_away.nss

40 lines
838 B
Plaintext
Raw Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
int nInt;
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetObjectByTag("Mathell23");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Mathell")));
oTarget = GetObjectByTag("Mathell23");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Mathell23");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Bart");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Mathell")));
oTarget = GetObjectByTag("Bart");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Bart");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Parico");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Mathell")));
oTarget = GetObjectByTag("Parico");
DestroyObject(oTarget, 3.0);
}