void main() { object oObject=GetInventoryDisturbItem(); if (GetInventoryDisturbType()==INVENTORY_DISTURB_TYPE_ADDED) { DestroyObject(oObject); } }