//Creates a Elidor Mayors' Sash in the target's inventory once every 20 mins 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); DestroyObject( oItem, 0.0); oItem = GetNextItemInInventory(); } // Set respawntime float to the number of seconds. float respawntime = 1200.00; if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") == 1) { return; } else { CreateItemOnObject("sha_mayors_sash", OBJECT_SELF, 1); } SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1); // Command added to delay the respawn AssignCommand( OBJECT_SELF, DelayCommand (respawntime, SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",0) ) ); }