SocketMUD(tm) Snippets
This section will contains different snippets, some made by me, and some made by other users of the codebase. Each snippet will get it's own little section, describing the snippet and it's use. If you wish to contribute a snippet or patch for SocketMUD(tm), please send a mail to Brian Graversen, containing a clean source file, instructions on how to add the snippet and a valid email address where the author of the snippet can be contacted. If you want the snippet to contain some license/copyright/etc, then make sure to add them in the mail as well.
Signal Handler (3 kb)
This small snippet will allow a MUD to handle both the SIGSEGV and SIGTERM
signals safely, without losing the ability to debug the code. Instructions
for installing the snippet can be found here.
This snippet was inspired by some code created by Mandrax for the Dystopia MUD, and was
ported to SocketMUD(tm) by Brian Graversen.
It should be noted that this snippet requires the Event Patch to be installed
before it can be used.
Randomize Functions (1 kb)
This set of functions contains function which can generate
pseudo-random numbers, which can easily be used for practically any
purpose where randomness is required (combat, healing, etc). The
snippet was created by Brian
Graversen. This snippet will work with ANY project, not just
MUDs. The simple instructions needed to install the snippet can be
found here.
Title Command (2 kb)
This snippet was written by Shadus and
implements a new command called Title in SocketMUD(tm). It can be used by players to
change their title (shown on the who-screen). The code is in patch-form, and is
made for SocketMud 1.10, but seems to work fine with other versions as well.