/
umud/DOC/
umud/DOC/examples/
umud/DOC/internals/
umud/DOC/wizard/
umud/MISC/
umud/MISC/dbchk/
umud/RWHO/rwhod/
# This is a sample startup
#These commands are fed to the mud upon startup (they can be entered by
#hand by a wizard, but that's a pain and gross.

#define a known MUD. If you define one, you must define all the ones you wish
#to allow on your mud. Known MUDs need not have been 'defmud'd, but if they
#are not, no links can be made to them directly. Format is:
#_mudconfig defknownmud mudname

#fork and disassociate from the controlling tty (you must have compiled
#with DAEMON)
_mudconfig daemonize

#define a remote MUD entry or two. Format is::
#config defmud mudname IP-addr IP-host locpass rempass srvport playport [timo]
#This is how your mud recognizes other muds.
#_mudconfig defmud somewhere 666.66.66.6 some.host.site.edu foo foo 6566 6565 8

#Define some system-level macros.
#--------------------------------
#These all set a player's pronouns. $1 is the player to set (should be
#"me" for non-wizards), $2 is the subjective pronoun (he, her, it), $3 is
#the objective pronoun (him, her, it), and $4 is the possessive pronoun
#(his, her, its). You can set these individually by using the set command,
#but using the system macro is faster.
_mudconfig defmac male '@pronouns $1 he him his'
_mudconfig defmac female '@pronouns $1 she her her'
_mudconfig defmac neuter '@pronouns $1 it it its'
_mudconfig defmac many '@pronouns $1 they them their'
_mudconfig defmac pronouns '@set $1 subv $2;@set $1 objv $3;@set $1 posv $4'

#This does the same thing as the above macros, only slightly different.
#The syntax is "sex me male" (or female or neuter or many).
_mudconfig defmac sex '@$2 $1'

#Sends the player home. Everything they are carrying also gets sent home.
_mudconfig defmac home '@teleport me home'

#Wizard only. Forces the named player to quit the game.
# you MIGHT want to bind this macro to the wizard instead of the system symbols
_mudconfig defmac BOOT '@_force $1 @QUIT'

#Wizard only. This creates a player with the given name and password, tells
#the wizard what the new player's object id is, and teleports the new player
#home (to whatever is defined as limbo on the sysobj.)
# you MIGHT want to bind this macro to the wizard instead of the system symbols
_mudconfig defmac pcreate '@build player $1 $2;@neuter $1;@which $1;@teleport $1 home'

#Wizard only. This shuts the mud down gracefully, doing a cache sync and
#telling the rwhoserver that the mud is going down.
# you MIGHT want to bind this macro to the wizard instead of the system symbols
_mudconfig defmac shutdown '@_cacheconfig sync;@_mudconfig rwhodown;@_mudconfig shutdown'

#Wizard only. Forces the named player to quit, unsets their password and player
#flag so they can no longer log in, and changes their name to "a slimy toad 
#named $1", where $1 is their old name. To untoad, the wizard will have to
#rename the toad back correctly, add the player flag with "@set player _pl",
#and give it a new password with "@_newpassword player password" (where
#'player' is the name of the untoaded player).
# you MIGHT want to bind this macro to the wizard instead of the system symbols
_mudconfig defmac TOAD '@_force $1 @QUIT;@unset $1 pass;@unset $1 _pl;@set $1 name "a slimy toad named $1"'

#The old familiar. The = sign is used here so everything after it will be
#passed as one string to the @do command, so the double quotes will come
#out correctly.
#_mudconfig defmac BONK =@do "BONKs $1"
#------------------------------------------

#sync the cache every 5 minutes. this is the effective unit of
#potential data loss, and must be traded off against performance.
#cache syncing is done by submitting a cron job to do a sync every
#so often. this cron even should run as the wizard
_cronconfig defevent 300 "@_cacheconfig sync" wizard


#if using an RWHO server, submit a cron job to update the who info
#every so often. The "Comment Field" will be displayed after the Mudname
#in the output of an RWHO server.
#_mudconfig rwhoserver 666.66.66.6 password "Comment Field"
#_cronconfig defevent 301 "@_mudconfig rwhoupdate" wizard

#possibly perform a database backup every 2 hours, rotating between 5 files
_cronconfig defevent 7200 "@_mudconfig backup oifbak 5" wizard