void main() { object oPC=GetPCSpeaker(); object oItem=CreateItemOnObject("vamp_it_coffin",oPC); object oTarget=GetLocalObject(oPC,"oTarget"); object oOwner=GetLocalObject(oTarget,"oVampire"); SetLocalObject(oItem,"oOwner",oOwner); DeleteLocalObject(oOwner,"oCoffin"); DeleteLocalInt(oOwner,"nCoffinPlaced"); if (GetIsObjectValid(oItem)) DestroyObject(oTarget); }