/*********************************************************************** * GODset and Dynamic God Command (stock) v. first and last (I hope!) * * By Belgarath of Covenant MUD (Tony Robbins, tonyr@nwpaclink.com) * * Dynamic God Command (GCMD) is a flag-based setup to make commands * * for Gods (and, in theory, immortals) dynamically set via the GODset * * command. * **********************************************************************/ I. Disclaimer By using this code, you promise never to sue me under penalty of a rolled up newspaper. This code just might cause you to have a brain aneurysm followed by severe diarrhea and code fallout. In any event, this code worked for me. II. How to Install To install this patch, tar zxvf godset.stk.tgz and copy the patch file (godsetstk.patch) to your src directory. In your src direc- tory, type: patch < ./godsetstk.patch If you've modified interpreter.c's command table at all, you've got one hell of a time to patch in the .rej's. III.How it Works This adds a 'cmd' bitvector to your player structure, which is check- ed in the last field of your command interpreter. Example: { "north" , POS_STANDING, do_move , 0, SCMD_NORTH, 0 }, A zero means that no flag is required ^ { "at" , POS_DEAD , do_at , LVL_IMMORT, 0, CMD_BASIC }, A level immort player with the CMD_BASIC ^^^^^^^^^^ ^^^^^^^^^ flag can use this command. CMD_x flags are set via the GODset command. You will have to look at interpreter.c and act.wizard.c for more info on that. { "purge" , POS_DEAD , do_purge , LVL_IMMORT, 0, CMD_ANTIPLR | CMD_LOAD | CMD_BASEOLC }, (sorry about the scrolling.) A player that is level immortal, and has the CMD_ANTIPLR, CMD_LOAD, or CMD_BASEOLC can use this command. This allows you to have it so that a command can be set by more than one flag. If all three flags are set, it still works perfectly. IV. What I Want Please put me in your credits. I did spend my time to get this ready for public consumption. It's only fair, and it gives me that incentive to keep on releasing this stuff. V. What I Need... is a good defense. (Couldn't resist). VI. The Future In the future, OasisOLC 1.6b and (when it is released) OasisOLC 2.0 will be supported "out of the can." -B.