
#include "nw_i0_tool"
/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnDeath
void main()
{

object oPC = GetLastKiller();

while (GetIsObjectValid(GetMaster(oPC)))
   {
   oPC=GetMaster(oPC);
   }

if (!GetIsPC(oPC)) return;

object oStuffed = GetObjectByTag("STATUEStuffed");
int DoOnce = GetLocalInt(oStuffed, "WereJagDead");

if (DoOnce==TRUE) return;

SetLocalInt(oStuffed, "WereJagDead", TRUE);

object oTarget;

oTarget = GetObjectByTag("NW_WEREJag");

effect eEffect;
eEffect = EffectDeath();

ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);

oTarget = GetObjectByTag("StatueCat");

DestroyObject(oTarget, 0.0);

FloatingTextStringOnCreature("You have destroyed the lycanthrope's heart, taking the wearjaguar with it forever.", oPC, TRUE);

while (GetIsObjectValid(GetMaster(oPC)))
   {
   oPC=GetMaster(oPC);
   }

if (!GetIsPC(oPC)) return;

RewardPartyXP(300, oPC, TRUE);


}
