I've only written for ROM 2.4-based MUDs, so the code here will be for that
code-base. Most of my code is proprietary for
Ansalon (ansalonmud.org 8679), and won't
be listed here. My more "generic" code, however, will be posted below. I hope
you can find a use for this code on your MUD.
Have a helpfile for the item that includes a credit to me, with the above e-mail
address in it. (E.g. This code was written by John Patrick (firstname.lastname@example.org) and
used with permission.)
The difficulty of adding the snippet varies from 1 (easiest) to 5 (most difficult). If you
are relatively new to coding a MUD, please stick with snippets of difficulty 2 or less.
Here is the difficulty scale:
Small code change:
Add a file to your makefile.
Add a command to the MUD (interp.[ch])
Add an item-type to your MUD, complete with OLC additions (if needed).
Moderate code change:
Add necessary code for skills, spells, talents, or abilities (declare the gsn_*, add to const.c, increase all necessary defines)
Add a CON_ state to nanny().
Add a field to CHAR_DATA, PC_DATA, ROOM_INDEX_DATA, etc., complete with all necessary support code (db.c, save.c, etc.).
Extreme code change.
If you don't know how to do something, please find one of the "MUD-coding tutorials" that are
available on the web. I will try to include any information about "tricky" code additions.
This command allows immortals to make someone lose their "reply" ability, or more properly, it
makes the player "forget" who was the last person to give them a tell. This is great for when
an immortal wants to go wizinvis and not be bother by people who they gave a "tell" to.
This allows immortals to view if the mud is currently in "newlock" and/or "wizlock".
Extremely simple, hardly worth adding here. The best addition, though, is to have this
command automatically run whenever an immortal logs in (i.e. in comm.c, right after the
do_function(ch, &do_look, "auto");, add if (IS_IMMORTAL(ch)) do_function(ch, &do_mudstat, "");)