void main() { location lLocation = GetLocation(OBJECT_SELF); SetLocalInt(OBJECT_SELF, "boxlock", 1); DestroyObject(OBJECT_SELF); int nDiceRoll = d100( 1 ); int nDiceRoll3 = d3( 1 ); if( nDiceRoll <=45 ){ switch ( nDiceRoll3 ){ case 1: CreateItemOnObject("MaggotyBread", OBJECT_SELF, 1); break; case 2: CreateItemOnObject("it_mring032", OBJECT_SELF, 1); break; case 3: CreateItemOnObject("it_mneck002", OBJECT_SELF, 1); break; } } else{} }