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

45 lines
1.1 KiB
Plaintext

#include "x0_i0_partywide"
void main()
{
object oTarget;
int nInt;
object oItemToTake;
object oPC = GetPCSpeaker();
// Give 10 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
// Remove items from the player's inventory
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "grylphkey");
if(GetIsObjectValid(oItemToTake) != 0)
ActionTakeItem(oItemToTake, GetPCSpeaker());
oTarget = GetObjectByTag("Traviss");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Traviss")));
oTarget = GetObjectByTag("Traviss");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Traviss");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Omphal");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Traviss")));
oTarget = GetObjectByTag("Omphal");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Omphal");
DestroyObject(oTarget, 3.0);
oTarget = GetObjectByTag("Larkog");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Traviss")));
oTarget = GetObjectByTag("Larkog");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Larkog");
DestroyObject(oTarget, 3.0);
}