WoR_PRC8/_module/nss/xp_balor.nss

20 lines
592 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
#include "nw_i0_tool"
#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
void main()
{
SetListeningPatterns();
string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iTalkFlag = 0;
sSayThis = "I am ever grateful.";
DelayCommand(1.0, ActionSpeakString(sSayThis, iTalkVolume));
RewardPartyXP(200, GetPCSpeaker());
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "SpiritStone");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
SetIsDestroyable(TRUE);
DelayCommand(3.0, DestroyObject(OBJECT_SELF));
}