//Put this OnEnter void main() { object oPC = GetEnteringObject(); if (!GetIsPC(oPC)) return; if (GetCurrentHitPoints(oPC)<=0) { effect eKill = EffectDeath(TRUE); ApplyEffectToObject(DURATION_TYPE_INSTANT,eKill,oPC); PopUpGUIPanel(GetLastPlayerDied(),GUI_PANEL_PLAYER_DEATH); } if (GetItemPossessedBy(oPC, "playershandbook")!= OBJECT_INVALID) return; CreateItemOnObject("playershandbook", oPC); ////////////////////////////////////////////////////// if (GetItemPossessedBy(oPC, "emotewand")!= OBJECT_INVALID) return; CreateItemOnObject("emotewand", oPC); GiveGoldToCreature(oPC, 230); }