void main() { object oPC=GetPCSpeaker(); object oKeg = GetItemPossessedBy(oPC,"gz_it_pkeg"); location lLoc = GetLocation(oPC); if (GetIsObjectValid(oKeg)) { DestroyObject(oKeg); CreateObject(OBJECT_TYPE_PLACEABLE,"gz_obj_pkeg",lLoc); } else { SendMessageToPC(oPC,"You don't seem to have it any more"); } }