void main() { object oItem = OBJECT_INVALID; // Clear all contents of the chest oItem = GetFirstItemInInventory(); while (oItem != OBJECT_INVALID ) { //Make sure people don't stuff chest with plot items and break it SetPlotFlag(oItem, FALSE); if((GetTag(oItem) != "SHA_EYEOFMOON") && (GetTag(oItem) != "SHA_SHADOWTALISMAN")) { DestroyObject( oItem, 0.0 ); oItem = GetNextItemInInventory(); } } }