Lankhmar_PRC8/_module/nss/walk_away_black.nss

55 lines
1.2 KiB
Plaintext
Raw Permalink 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 350 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
oTarget = GetObjectByTag("Black");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Black")));
oTarget = GetObjectByTag("Black");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Black");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Cohort1");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Black")));
oTarget = GetObjectByTag("Cohort1");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Cohort1");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Cohort2");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Black")));
oTarget = GetObjectByTag("Cohort2");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Cohort2");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Cohort3");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Black")));
oTarget = GetObjectByTag("Cohort3");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Cohort3");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("ropecoil");
DestroyObject(oTarget, 0.1);
}