Here are a couple of utils I created for when I change the world file formats or i want to do a global change to all of one type of file. ACMD(adjust_mobs) { int nr; int vznum; for (nr = 0; nr <= top_of_mobt; nr++) { /* mob_proto[nr].mob_specials.default_pos=POS_STANDING; */ /* mob_proto[nr].char_specials.position=POS_STANDING; */ vznum=mob_index[nr].virtual/100; olc_add_to_save_list(vznum,OLC_SAVE_MOB); } send_to_char(OK,ch); } ACMD(adjust_objs) { int nr; int vznum; for (nr = 0; nr <= top_of_objt; nr++) { /* obj_proto[nr].obj_flags.curr_dam_slots =material_affs[obj_proto[nr].material].default_dam_slots; obj_proto[nr].obj_flags.total_dam_slots =material_affs[obj_proto[nr].material].default_dam_slots; */ vznum=obj_index[nr].virtual/100; olc_add_to_save_list(vznum,OLC_SAVE_OBJ); } send_to_char(OK,ch); } ACMD(adjust_rooms) { int nr; int vznum; for (nr = 0; nr <= top_of_world; nr++) { vznum=world[nr].number/100; olc_add_to_save_list(vznum,OLC_SAVE_ROOM); } send_to_char(OK,ch); } ACMD(adjust_zones) { int nr; int vznum; for (nr = 0; nr <= top_of_zone_table; nr++) { vznum=zone_table[nr].number; olc_add_to_save_list(vznum,OLC_SAVE_ZONE); } send_to_char(OK,ch); } I also edited the base ?edit command to take in the argument all instead of a zone number and it goes through the olc to_be_saved list and saves all of the waiting zones. These are great little utils for global world editing when you make a change to how things work. --Angus ______________________________ Forward Header __________________________________ Subject: Re: database save Author: INTERNET:CIRCLE@post.queensu.ca at CSERVE Date: 12/20/97 8:01 PM >online for windows 95? i didnt exactly want it to be zipped up.... i need a >command that will save the areas after i edit them online with OLC.... its OasisOLC: type 'olc' and 'oedit save <number>' (Oasis should auto-save though) OBuild: Think it saves to disk immediately. +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST