`_.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._' Mount Patch Copyright 1996, by Daniel Koepke `_.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._.,-'~'-,._' I. Introduction =============== Here's my silly little mount patch as promised. The implemented mount system is rather primitive, but I hope you like it and can find some good use for it. There are three new skills which are added with this patch, MOUNT which determines whether you can mount or not, RIDING for determining how well you can ride, and TAME for taming animals so that they do not run away, etc. There are some utility changes about the code made by this patch. I realize that is a poor way to do things and could make it more difficult for you to patch other things, but it was somewhat neccessary. I don't believe any of the small changes are large enough to cause rejects in other patches, though. II. Standard (Keep-me-from-court) Disclaimer ============================================ Use this at your own risks. There is (like pretty much all code) some bugs. That is to be expected. I am giving you this, so I expect that, in return, you will send me improvements you add, or report any bugs you encounter. My e-mail address is dkoepke@california.com. You do not need to give me credit for this. I ask, though, that you do not take credit for it. I appreciate any credit you give me. Of course, you have to follow the CircleMUD license... but that goes without saying and you are *obviously* already doing that [pssst, read doc/license.doc if you haven't, yet]. III. Installing =============== Okay, now on to how to install this thing... Move the mount.diff file to the src/ directory. Go into the src/ directory and type: % patch < mount.diff If you get any failures/rejects, look at the .rej files and manually install from that (key: '+' is add, '-' is remove, '!' is change). If the entire thing fails, manually patch from the mount.diff file (same key). IV. For the Coders ================== Here's some basics about how mounts work: MACRO: RIDING(ch), ch->char_specials.riding Returns who is being mounting by the character or NULL if no-one MACRO: RIDDEN_BY(ch), ch->char_specials.ridden_by Returns who is mounted on the character or NULL if no-one FLAG: MOB_MOUNTABLE, MOB_x (1 << 18) Should be set on any mobile that can be mounted FLAG: AFF_TAMED, AFF_x (1 << 16) Set by do_tame() when the character is tamed FUNCTIONS: do_mount, do_dismount, do_buck, bottom of act.movement.c Player-level interface for mounting and dismounting, and buck is for removing a mounted player from you. All of these are ACMDs. FUNCTIONS: do_tame(), last function in act.movement.c Tames a character for easier mounting, or whatnot. FUNCTION: mount_char(ch,vict), bottom of handler.c Makes _ch_ mount _vict_ FUNCTION: dismount_char(ch) Sets up so that player is not mounting or being mounted SKILL: SKILL_MOUNT, SKILL_x (141) The skill to determine how well they are at mounting (see: do_mount) SKILL: SKILL_RIDING, SKILL_x (142) The skill to determine how well they ride (see: do_simple_move) SKILL: SKILL_TAME, SKILL_x (143) The skill to determine if and how well they can tame (see: do_tame) V. Other Patches By Me ====================== The below are availible at the CircleMUD anonymous ftp site (see below for the address): Filename: new.do_who.diff.gz, /pub/CircleMUD/contrib/code Usage : A replacement for do_who(), it splits apart immortals and mortals, gives immortals a "who title" ("Immortal" instead of "31 War"), keeps a count of highest players on per boot, and a little bit more. Filename: multi_hit.diff.gz, /pub/CircleMUD/contrib/code Usage : Adds multiple attacks per round and the connected skills. Filename: obj_mail.diff.gz, /pub/CircleMUD/contrib/code Usage : Permits attaching of objects to mail Filename: new_prompt.diff.gz, /pub/CircleMUD/contrib/code Usage : Enhanced prompt code that interprets a character's prompt. Note that this will change your pfile... Filename: query_ansi.diff.gz, /pub/CircleMUD/contrib/code Usage : A patch to query a logging in user for whether they want ANSI color support on/off before display of the title screen. Actually quite useful... VI. Popular CircleMUD Sites =========================== Anonymous ftp : [ftp.circlemud.org] Homepage : [http://www.circlemud.org/] Code snippets : [http://cspo.queensu.ca/~fletcher/Circle/Snippet/] Have fun and godspeed, -- Daniel Koepke dkoepke@california.com Forgive me father, for I am sin.