Erwin's home page - MUD Snippets
None of the files are very large, so you might be better off just getting
easnip0009.tar.gz - the whole thing and reading
the documentation inside. (Last updated: Sep 00). Remember to use your web
browser's Download command to download those files.
If you've found any of these resources useful, I'd appreciate if you also
put a link to my homepage (top level, http://www.andreasen.org/ or the MUD
page, http://www.andreasen.org/mud.shtml there in some appropriate credits
or links section). A list of pages linking to this page can be found
here - if you are not on that list and want to be, mail
September 2000: I consider all of the code owned by me offered on this
page to be public domain. This overrides any license written by me that is
contained inside the files. I would still like that you do not redistribute
the files on your own site, but rather link to this page.
This is set of server patches for a MUD and a Windows/UNIX client that makes it
possible to edit text files (e.g. room descriptions, notes, mobprogs) of your MUD
using a text editor on your remote machine.
Version 2.1, August 98.
This utility command writes all the items reset on the MUD
into a comma-delimetered file, perfect for importing into Excel or another
spreadsheet. All the stats on items are written, including level. It is then
easy to sort the list, and find out what level equipment is lacking, which
weapon has the highest damage roll etc. A ROM 2.4b2 version is also available,
Both are version 1, last update: November 95.
This package includes: exlist which lists all the areas having exits to or from
the current area, vlist, which shows which areas occupy which series of
VNUMs, for - an extended AT which allows a command to be executed
on/at every player, and finally rename, which allow safe renaming of players on-line.
Version 3, last update: January 96.
This is a board system, much resembling the one of Mystic Adventure. It
allows the implementor to create a number of board for messages, like
"General", "Ideas", "Bugs" etc. for easier overview.
Each board can have a minimum level for reading as well as writing,
so you can have Immortal-Only boards. There is also an expire system, where notes
are automatically moved to another file when old.
A new editor is included which lets you write your note more directly, prompting
you for each item (much like mail editors do) instead of using NOTE +, NOTE TO etc.
New in version 3 is a patch for ROM 2.4 provided by Yago Diaz.
Version 3, last update: Feb 98.
This package includes a number of Immortal commands for easier reset
editting. It is not an OLC in itself, so you need one to save the areas
editted. Basically, the concept is to view resets on room basis; You use the
RLOOK command to see what resets in the current room, then you can
e.g. insert E or G resets by referring to a mob's keyword instead of vnum
(like RGIVE sword 2.guard - give the first sword of this area to the 2nd
guard in this room). Recently updated to be compatible with ILAB OLC where
there is a reset list for each room.
Version 4, last update: October 96.
This handy immortal command allows you to tempoarily disable certain
commands online. If a new command has just been implemented, but shows
buggy, just DISABLE it! Or if you feel your players CHAT too much,
disable that! :) Status of disabled commands saves over reboots.
Version 1, last update: January 96.
Online social editor - instead of hardcoding the socials, edit them online
and let your immortals and dozens of new ones at players' request! Now
contains ROM support, courtesy of Brian Castle.
Version 6, last update: July 97.
Reboot your MUD without players losing link. This command spawns a new copy
of the MUD via exec, thus inheriting descriptors. Players' names are written
to a file and players are reloaded later and hooked up to the right
descriptors, meaning only that there is some temporary lag while the MUD
reloads. Now with a ROM 2.4 patch, one for Smaug as well (courtesy of
Walter Goodwin, updated again for 1.4) and also one for Circle.
If you are using NiMUD, here is a contributed NiMUD copyover installation guide by Niksa.
This first version of this feature appeared in Melvin "Fusion" Smith's MUD++
codebase, and this code was inspired by it.
Version 7, last update: September 2000 -- this fixes a security problem in Smaug patch!.
This snippet makes it possible to online edit the level a class gains a
skill/spell. This makes adding new classes much easier, if you have many
Version 2, last update: December 96.
A dynamic, crashproof string buffer which expands as needed. No more crashes
because you added a area, and the static size buffer in do_areas()
Version 1, last update: October 96.
This package includes: using signals to prevent deadlock, using signals to
save last command that occurred before crash, using stdarg.h to make your
Version 3, last update: January 99.
Using this package, you can define the disk structure of your linked list,
and let the package load/save it for you. Using a set of macros you specify
for each field to be saved if it is a string, an integer: GDL does the rest
of the work. The data files use keywords so that the structure can be
Version 2, last update: January 99.
This is how we implemented events on AR. There is no code that can be readily
used in your MUD here, this is just something for people who intend to
implement events to look at.
I will not answer questions about any of the pieces of code below. 99% of
the questions I do get about the code are questions that could be answered
with some knowledge of C and abililty to look through the other code that
a typical MERC derivative consists of for similar things.
If you are unable to do that, you should go back and learn easier programming
rather than try to code for a MUD.
This is a classic command, used on many MUDs, but probably most influenced by
the Mystic Adventure one. It changes the auction channel into an automated one,
giving the buyers the ability to see the stats of an item and bid on it. One
item is auctioned at a time. Version 3 contains no new features, just an
answer to a question I've been asked about 50 times now.
Version 3, last update: November 97.
After having played the Sneezy MUD,
I very much liked the idea of buying all of your bread at once. This modified do_buy
allows that, so you now can type buy 20 bread and avoid getting spammed!
Version 1, last update: October 95.
My version of the classic scan command. It is not very advanced, but it works :)
Version 1, last update: August 95.
A relatively small snippet of code I forgot to move to here from
ftp.game.org. Basically, it's an example of a dual wield command
Version 1, last updaute: January 96.
If you did not find what you were looking for, you will most likely find
it if you use the below webring, which should link to just about all
that contain code for MERC and derivative MUDs.
"MERC/Derivative Programmers" webring
|Nov 16 || A few user contributions to LeakTracer|
|Sep 19 || The wonderful world of CSS|
|Feb 13 || New XEmacs elisp -- C/C++ utilities|