//Put this script OnDeath

#include "nw_i0_generic"

void main()
{

object oPC = GetLastKiller();

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

if (!GetIsPC(oPC)) return;

int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));

if (DoOnce==TRUE) return;

SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);

object oTarget;
object oSpawn;
location lTarget;
oTarget = oPC;

lTarget = GetLocation(oTarget);

CreateItemOnObject("wandofholdmon", oPC);

CreateItemOnObject("fakeorbkey1", oPC);

}

