//////////////////////////////////////////////////////////////////////////////// // // Crafting Trash Clean Up // opw_oax_reset // By:Don Anderson // dandersonru@msn.com // // This is called from the Area On Exit Event // // Destroys Dropped Items or Left Items on the Ground // NOTE: This is use in conjunction with the Lootable Corpses for when players // Drop something on the ground or something does not get destroyed // Because the player did something to remove the Self Destroy Process // //////////////////////////////////////////////////////////////////////////////// void main() { object oObject = GetFirstObjectInArea(OBJECT_SELF); while (oObject != OBJECT_INVALID) { int nType = GetObjectType(oObject); if(nType == OBJECT_TYPE_ITEM) DestroyObject(oObject); oObject = GetNextObjectInArea(OBJECT_SELF); } }