Saveall command by Cathy Gore Little note: For use with OasisOLC 2.0, Tested on a CircleMUD 3.0 bpl 17. Okay, so you got world files. You got lots of em. And you can edit them great. And then you get builders who come in and create awesome zones.. then forget to save em and lose them all on a crash. Cuz Oasis saves automatically on reboots and copyovers, but crashes... nope. And there's no nice little command to use to save all the zones real quick. So I decided to take advantage of a function that already exists (save_all()), and turn it into a nice little command for us imms to use. Here's the snippet: -------------------------------------- At the top of act.wizard.c, where the external functions are declared, add: int save_all(void); Where the internal functions and commands are declared, add: ACMD(do_saveall); now, somewhere in the file drop in this tiny little function: /* feel free to change the level... */ ACMD(do_saveall) { if (GET_LEVEL(ch) < LVL_BUILDER) send_to_char ("You are not holy enough to use this privelege.\n\r",ch); else { save_all(); strcpy(buf, "World files saved.\n\r"); send_to_char (buf, ch); } } Save and close act.wizard.c. ------------- In interpreter.c, add to the list of external commands: ACMD(do_saveall); and to the Master command list, add with the s's: { "saveall" , POS_DEAD , do_saveall , LVL_BUILDER, 0}, Save and close interpreter.c. -------------------------------------- And that's it! Recompile and reboot, and save away! As per the standard disclaimer, I am not responsible if this messes up your mud. Always backup any file that is changed before adding any snippet. But you knew that already. And as usual, if you have any problems or find a way to make this better, email me at cheron98@hotmail.com. If you use this, please email me. I don't care if you put me in the credits or not, I'd just like to know who's usin it. Other snippets by me: Look for my score and wizupdate snippets on the CircleMUD ftp site! Cathy Gore aka Cheron, DarkonMUD