├── .gitignore ├── BENCHMARKS.md ├── CHANGELOG.md ├── CHANGELOG.quickmud ├── CONTRIBUTING.md ├── README.md ├── README.merc ├── README.quickmud ├── README.rom ├── README.version ├── STYLE.md ├── area ├── air.are ├── arachnos.are ├── area.lst ├── astral.are ├── canyon.are ├── catacomb.are ├── chapel.are ├── daycare.are ├── draconia.are ├── dream.are ├── drow.are ├── dwarven.are ├── dylan.are ├── eastern.are ├── galaxy.are ├── gnome.are ├── grave.are ├── group.are ├── grove.are ├── haon.are ├── help.are ├── hitower.are ├── hood.are ├── immort.are ├── limbo.are ├── mahntor.are ├── marsh.are ├── mega1.are ├── midennir.are ├── midgaard.are ├── mirror.are ├── mobfact.are ├── moria.are ├── music.txt ├── newthalos.are ├── nirvana.are ├── ofcol.are ├── ofcol2.are ├── olc.hlp ├── olympus.are ├── plains.are ├── proto.are ├── pyramid.are ├── qmconfig.rc ├── quifael.are ├── redferne.are ├── rom.are ├── school.are ├── sewer.are ├── shire.are ├── smurf.are ├── social.are ├── startup ├── thalos.are ├── tohell.are ├── trollden.are ├── valley.are └── wyvern.are ├── bin ├── .empty └── rom.exe ├── doc ├── MPDocs │ ├── examples.doc │ ├── hacker.doc │ ├── howto │ ├── mobprog.doc │ ├── new_readme.txt │ ├── readme │ └── surrender.hlp ├── MTH │ ├── arachnos.txt │ ├── color.txt │ ├── eor.txt │ ├── mccp.txt │ ├── merc.txt │ ├── mods.txt │ ├── msdp.txt │ ├── mssp.txt │ ├── mtts.txt │ └── wintel.txt ├── QuickMUD.txt ├── Rom2.4.doc ├── act.txt ├── area.txt ├── changes.olc ├── class.txt ├── command.txt ├── contrib.txt ├── drool.txt ├── hacker.txt ├── license.doc ├── license.txt ├── memory.txt ├── new.txt ├── pfile.txt ├── port.txt ├── rom.credits ├── rom.license ├── security.txt ├── sites.txt ├── skill.txt ├── sky.txt ├── trad.txt └── vnum.txt ├── gods ├── .empty └── Admin ├── imc ├── STRLCPY-STRLCAT-LICENSE ├── Whotemplates.txt ├── imc.channels ├── imc.color ├── imc.commands ├── imc.config ├── imc.help ├── imc.ignores ├── imc.who └── imc2freedom.license ├── json ├── .empty ├── areas │ ├── air │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── arachnos │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── astral │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── canyon │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── catacomb │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── chapel │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── daycare │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── draconia │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── dream │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── drow │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── dwarven │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── dylan │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── eastern │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── galaxy │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── gnome │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── grave │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── grove │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── haon │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── hitower │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── hood │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── immort │ │ ├── area.json │ │ ├── mobiles.json │ │ └── rooms.json │ ├── limbo │ │ ├── area.json │ │ ├── objects.json │ │ └── rooms.json │ ├── mahntor │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── marsh │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── mega1 │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── midennir │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── midgaard │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── mirror │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── mobfact │ │ ├── area.json │ │ ├── mobiles.json │ │ └── rooms.json │ ├── moria │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── newthalos │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── nirvana │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── ofcol │ │ ├── area.json │ │ └── rooms.json │ ├── ofcol2 │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── olympus │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── plains │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── pyramid │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── quifael │ │ ├── area.json │ │ └── rooms.json │ ├── redferne │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── school │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── sewer │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── shire │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── smurf │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── thalos │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── tohell │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── trollden │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ ├── valley │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json │ └── wyvern │ │ ├── area.json │ │ ├── mobiles.json │ │ ├── objects.json │ │ └── rooms.json ├── config │ ├── portals.json │ └── socials.json ├── everything.json ├── help │ ├── group.json │ ├── help.json │ ├── olc.json │ └── rom.json └── meta │ ├── flags.json │ └── types.json ├── log └── .gitignore ├── notes └── .empty ├── player ├── .empty └── Admin ├── run.sh ├── screenshots └── 2019-10-05_object-materials.png └── src ├── Makefile ├── Makefile.normal ├── Makefile.solaris ├── QuickMUD Fixes ├── TODO.txt ├── TODO_edit.sh ├── act_board.c ├── act_board.h ├── act_comm.c ├── act_comm.h ├── act_conf.c ├── act_conf.h ├── act_fight.c ├── act_fight.h ├── act_group.c ├── act_group.h ├── act_info.c ├── act_info.h ├── act_move.c ├── act_move.h ├── act_obj.c ├── act_obj.h ├── act_olc.c ├── act_olc.h ├── act_player.c ├── act_player.h ├── act_shop.c ├── act_shop.h ├── act_skills.c ├── act_skills.h ├── affects.c ├── affects.h ├── affects.txt ├── ban.c ├── ban.h ├── basemud.h ├── board.c ├── board.h ├── boot.c ├── boot.h ├── chars.c ├── chars.h ├── color.c ├── colour.c ├── colour.h ├── comm.c ├── comm.h ├── compat.h ├── db.c ├── db.h ├── db_old.c ├── db_old.h ├── defs.h ├── descs.c ├── descs.h ├── do_sub.c ├── do_sub.h ├── effects.c ├── effects.h ├── fight.c ├── fight.h ├── find.c ├── find.h ├── flags.c ├── flags.h ├── groups.c ├── groups.h ├── interp.c ├── interp.h ├── json.c ├── json.h ├── json_obj.c ├── json_obj.h ├── json_tbl.c ├── json_tbl.h ├── lookup.c ├── lookup.h ├── macros.h ├── magic.c ├── magic.h ├── materials.c ├── materials.h ├── merc.h ├── mob_cmds.c ├── mob_cmds.h ├── mob_prog.c ├── mob_prog.h ├── msdp.c ├── mth.c ├── mth.h ├── mud.h ├── music.c ├── music.h ├── nanny.c ├── nanny.h ├── objs.c ├── objs.h ├── olc.c ├── olc.h ├── olc_aedit.c ├── olc_aedit.h ├── olc_hedit.c ├── olc_hedit.h ├── olc_medit.c ├── olc_medit.h ├── olc_mpedit.c ├── olc_mpedit.h ├── olc_oedit.c ├── olc_oedit.h ├── olc_redit.c ├── olc_redit.h ├── olc_save.c ├── olc_save.h ├── portals.c ├── portals.h ├── recycle.c ├── recycle.h ├── rooms.c ├── rooms.h ├── save.c ├── save.h ├── sha256.c ├── sha256.h ├── signal.c ├── signal.h ├── skills.c ├── skills.h ├── special.c ├── special.h ├── spell_aff.c ├── spell_aff.h ├── spell_create.c ├── spell_create.h ├── spell_cure.c ├── spell_cure.h ├── spell_info.c ├── spell_info.h ├── spell_misc.c ├── spell_misc.h ├── spell_move.c ├── spell_move.h ├── spell_npc.c ├── spell_npc.h ├── spell_off.c ├── spell_off.h ├── string.c ├── string.h ├── structs.h ├── tables.c ├── tables.h ├── telnet.h ├── telopt.c ├── types.c ├── types.h ├── update.c ├── update.h ├── utils.c ├── utils.h ├── wiz_im.c ├── wiz_im.h ├── wiz_l1.c ├── wiz_l1.h ├── wiz_l2.c ├── wiz_l2.h ├── wiz_l3.c ├── wiz_l3.h ├── wiz_l4.c ├── wiz_l4.h ├── wiz_l5.c ├── wiz_l5.h ├── wiz_l6.c ├── wiz_l6.h ├── wiz_l7.c ├── wiz_l7.h ├── wiz_l8.c ├── wiz_l8.h ├── wiz_ml.c └── wiz_ml.h /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | 3 | /bin 4 | -------------------------------------------------------------------------------- /BENCHMARKS.md: -------------------------------------------------------------------------------- 1 | # Release Benchmarks: 2 | 3 | ### 0.0.1 4 | 5 | [X] Purpose of project clearly defined 6 | [X] Original code has been reviewed and reformatted 7 | [X] Repository confirmed to comply with Licenses 8 | [X] README.md about is properly written 9 | [X] System for documenting changes 10 | 11 | ### 0.1.0 12 | 13 | [X] World can be saved to JSON files 14 | [X] Check code for all BAIL_IF() and BAIL_IF_ACT()s 15 | [X] OLC is translated from Spanish to English 16 | [X] All "Low-hanging fruit" changes have been made (i.e, cleaning up obvious things 17 | that don't require big overhauls) 18 | [ ] All "TO-DOs" have been transferred to Github issues 19 | [ ] Code style documentation 20 | [ ] Contribution guide 21 | [ ] JSON code for database saving has been massively cleaned up... 22 | [ ] All functions are named and placed according to their objects 23 | [ ] World can be loaded from JSON files 24 | [ ] Code can be easily deployed 25 | [ ] Dockerfile is back 26 | [ ] JSON-format world is confirmed to save->load->save->load without changes 27 | [ ] OLC behaves as expected. 28 | [ ] Mob progs behave as expected. 29 | [ ] All gameplay changes that aren't bugfixes, obvious oversights, or 30 | quality-of-life upgrades are disabled by default. 31 | [ ] Documentation has been organized in a way that makes sense for _this_ project. 32 | 33 | ### 0.2.0 34 | 35 | [ ] Tasks in Github organized into month-long sprints somehow 36 | [ ] All "TO-DOs" from 0.1.0 are accounted for 37 | [ ] JSON tools are extracted as standalone apps 38 | [ ] Special tables are exported to JSON objects 39 | [ ] Simple JSON world editor 40 | [ ] All bit flags replaced with more extendible system 41 | [ ] World state object that contains most global variables 42 | [ ] Code is testable, even if only some tests exist 43 | [ ] Extra features are highly customizable via `basemud.h`. 44 | [ ] Affects refactored to use affect tables 45 | [ ] (more tbd) 46 | 47 | ## 1.0.0 48 | 49 | [ ] Complete version in C 50 | [ ] All vanilla behavior are confirmed to behave as expected (minus bugfixes 51 | and patched oversights) 52 | [ ] All "TO-DOs" are accounted for 53 | [ ] All changes are well-documented 54 | [ ] Existing code has an acceptable testing suite 55 | [ ] Project has an appropriate web presence 56 | [ ] Project can be deployed easily 57 | [ ] Project is confirmed to be deployable for major platforms 58 | [ ] (more tbd) 59 | 60 | ## 1.1.0 61 | 62 | [ ] All methods are contains in objects 63 | 64 | ## 2.0.0 65 | 66 | [ ] Complete version in C++ 67 | [ ] All template macros have been replaced with C++ template classes 68 | [ ] (more tbd) 69 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guide 2 | 3 | (WIP) 4 | -------------------------------------------------------------------------------- /README.quickmud: -------------------------------------------------------------------------------- 1 | QuickMUD is a Rom24b6 codebase with the following major features added: 2 | ** OLC 1.81 3 | ** Lope's Color 2.0 4 | ** Erwin's Copyover 5 | ** Erwin's Noteboard 6 | ** Color Login 7 | 8 | It is still basically a "stock" ROM server. The functionality of the 9 | code hasn't been modified much except for the addition of OLC. Changes 10 | are pretty much limited to cosmetic features, like color login. If you 11 | want to start your own ROM based server, this code can give you a quick 12 | start with some standard 'extra features' already implemented. However, 13 | for the sake of the mudding community at large, don't just download 14 | this code, compile it, and advertise it on MUD websites as "a highly 15 | modified ROM codebase". Spend some time developing it. The world 16 | doesn't need another cookie-cutter MUD. 17 | 18 | Need help? Your best bet is to check out the ROM mailing list archives. 19 | It can currently be found at http://www.the-infinite.org/lists/romlist. 20 | Information on the ROM mailing list itself can be requested by running 21 | "echo help | mail rom-request@rom.org" (without the quotes). Aside from 22 | that, grab a good book on C and visit your favorite search engine a 23 | lot :) 24 | 25 | Also, for real-time help, try irc.acestar.org:6667 #rom. There are 26 | a lot of very good people hanging out in there willing to help you out 27 | with your mud-related cunundrums. 28 | 29 | Any existing bugs in the code can be reported to flugh@flugh.org. 30 | I'll do my best to repair them ASAP. 31 | 32 | Enjoy! 33 | -------------------------------------------------------------------------------- /README.rom: -------------------------------------------------------------------------------- 1 | This is the ROM 2.4 beta version of Merc 2.1 base code. 2 | Please read the file in /Rom24/doc called rom.license before using 3 | this program. 4 | 5 | Some notes about ROM code: 6 | 7 | The file rom.credits contains some contributions to the code. 8 | 9 | The lore skill is not completed at this time, nor are material types 10 | and mobile memory. 11 | 12 | The race table (in const.c) can be expanded at will to add new races 13 | Be sure to add new pc races to both the race table and the pc race 14 | table, and make sure the order is the same. 15 | 16 | The ROM FAQ, by Gary Turkington, is available online at: 17 | http://www.hypercube.org/tess/rom/ 18 | 19 | If you have any questions not covered by the FAQ, feel free to bug me at 20 | rtaylor@hypercube.org. There is also a mailing list at rom@rom.org, to join 21 | it, send to subject subscribe to rom-request@rom.org. Thanks to Brian Moore 22 | for providing the list site. 23 | 24 | (the final ROM 2.4 is in the works, if that's your question) 25 | 26 | Alander 27 | 28 | [Please read the Rom FAQ material, located at http://www.hypercube.org/tess/rom. 29 | There are short explanations of how to get the mud running for the first time, 30 | and short answers to simple questions. Much more detailed matters are handled 31 | in Garry Turkington's Rom FAQ, also located at that site. Thanks Garry! 32 | -- Satin] 33 | -------------------------------------------------------------------------------- /README.version: -------------------------------------------------------------------------------- 1 | ROM 2.4b6, May 29, 1998 2 | -------------------------------------------------------------------------------- /STYLE.md: -------------------------------------------------------------------------------- 1 | # Code Style Guide 2 | 3 | (WIP) 4 | -------------------------------------------------------------------------------- /area/area.lst: -------------------------------------------------------------------------------- 1 | social.are 2 | group.are 3 | rom.are 4 | help.are 5 | olc.hlp 6 | immort.are 7 | ofcol2.are 8 | shire.are 9 | midgaard.are 10 | plains.are 11 | haon.are 12 | air.are 13 | arachnos.are 14 | astral.are 15 | canyon.are 16 | catacomb.are 17 | chapel.are 18 | daycare.are 19 | draconia.are 20 | dream.are 21 | drow.are 22 | thalos.are 23 | dwarven.are 24 | dylan.are 25 | eastern.are 26 | galaxy.are 27 | gnome.are 28 | grave.are 29 | grove.are 30 | hitower.are 31 | hood.are 32 | limbo.are 33 | mahntor.are 34 | marsh.are 35 | mega1.are 36 | midennir.are 37 | mirror.are 38 | mobfact.are 39 | moria.are 40 | newthalos.are 41 | nirvana.are 42 | ofcol.are 43 | olympus.are 44 | pyramid.are 45 | quifael.are 46 | sewer.are 47 | redferne.are 48 | school.are 49 | smurf.are 50 | tohell.are 51 | trollden.are 52 | valley.are 53 | wyvern.are 54 | $ 55 | -------------------------------------------------------------------------------- /area/proto.are: -------------------------------------------------------------------------------- 1 | #AREA 2 | proto.are~ 3 | protype~ 4 | { 5 35} Merc Prototype for New Area~ 5 | XX00 XX99 6 | 7 | 8 | 9 | #HELPS 10 | 0 $~ 11 | 12 | 13 | 14 | #SOCIALS 15 | #0 16 | 17 | 18 | 19 | #MOBILES 20 | #0 21 | 22 | 23 | 24 | #OBJECTS 25 | #0 26 | 27 | 28 | 29 | #ROOMS 30 | #0 31 | 32 | 33 | 34 | #RESETS 35 | S 36 | 37 | 38 | 39 | #SHOPS 40 | 0 41 | 42 | 43 | 44 | #SPECIALS 45 | S 46 | 47 | 48 | 49 | #$ 50 | -------------------------------------------------------------------------------- /area/qmconfig.rc: -------------------------------------------------------------------------------- 1 | # flugh was here! 2 | Ansiprompt 1 3 | Ansicolor 1 4 | Telnetga 1 5 | END 6 | -------------------------------------------------------------------------------- /area/startup: -------------------------------------------------------------------------------- 1 | #!/bin/csh 2 | # Written by Furey. 3 | # With additions from Tony and Alander. 4 | 5 | # Set the port number. 6 | 7 | set port = 4000 8 | if ( "$1" != "" ) set port="$1" 9 | 10 | # Change to area directory. 11 | cd ../area 12 | 13 | # Set limits. 14 | if ( -e shutdown.txt ) rm -f shutdown.txt 15 | 16 | while ( 1 ) 17 | # If you want to have logs in a different directory, 18 | # change the 'set logfile' line to reflect the directory name. 19 | set index = 1000 20 | while ( 1 ) 21 | set logfile = ../log/$index.log 22 | if ( ! -e $logfile ) break 23 | @ index++ 24 | end 25 | 26 | # Run rom. 27 | ../area/rom $port >&! $logfile 28 | 29 | # Restart, giving old connections a chance to die. 30 | if ( -e shutdown.txt ) then 31 | rm -f shutdown.txt 32 | exit 0 33 | endif 34 | sleep 10 35 | end 36 | -------------------------------------------------------------------------------- /bin/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/bin/.empty -------------------------------------------------------------------------------- /bin/rom.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/bin/rom.exe -------------------------------------------------------------------------------- /doc/MPDocs/howto: -------------------------------------------------------------------------------- 1 | HOW TO APPLY THIS PATCH 2 | ----------------------- 3 | 1. Make sure you have a plain vanilla ROM 2.4b2 straight out of box! 4 | Copy the files in /src directory to a temporary working directory. 5 | 6 | 2. Extract the archive to the working directory 7 | gunzip rom24mp.tar.gz 8 | tar xvf rom24mp.tar 9 | 10 | 3. Execute patch < mobprog.patch which will patch the original source files. 11 | 12 | 4. Copy all new and changed files back to ROM 2.4b2 /src directory and 13 | re-make the source. 14 | 15 | 5. Insert SURRENDER.HLP to help.are file in /area directory. 16 | 17 | -------------------------------------------------------------------------------- /doc/MPDocs/new_readme.txt: -------------------------------------------------------------------------------- 1 | Updated patch for Rom2.4b4 for MobPrograms. 2 | by KERMiT 3 | http://www.cyberspace.com/~kermit/mud/ -------------------------------------------------------------------------------- /doc/MPDocs/readme: -------------------------------------------------------------------------------- 1 | This is a gamma release of MOBprograms for ROM 2.4. 2 | --------------------------------------------------- 3 | 4 | Date of this release: 28-JAN-1996, v. 0.98g 5 | 6 | This release contains the following files: 7 | README - this file 8 | HOWTO - installation instructions 9 | MOBPROG.DOC - MOBprograms documentation 10 | HACKER.DOC - about the implementation 11 | EXAMPLES.DOC - some MOBprogram examples 12 | SURRENDER.HLP - supplement to ROM help file 13 | dopatch - utility to patch the ROM 2.4b2 sources 14 | *.patch - patches to the existing ROM 2.4b2 sources 15 | *.c, *.h - new source files 16 | 17 | The patch in this release works only for ROM 2.4b2. 18 | This release has been tested on Linux 1.2.8 (gcc 2.6.3), I have no idea about 19 | portability. 20 | 21 | If you find any bugs or have any suggestions for improvements, e-mail 22 | me: markku.nylander@uta.fi 23 | -------------------------------------------------------------------------------- /doc/MPDocs/surrender.hlp: -------------------------------------------------------------------------------- 1 | 0 SURRENDER~ 2 | 3 | Syntax: surrender 4 | 5 | When you're fighting, you may choose to SURRENDER your opponent. If you 6 | surrender, you will cease fighting. Your opponent may ignore your action 7 | (receiving one free attack) or react in some other way depending on the 8 | situation. Fighting may always be resumed via kill command. 9 | See also: KILL 10 | ~ 11 | -------------------------------------------------------------------------------- /doc/MTH/color.txt: -------------------------------------------------------------------------------- 1 | The xterm 256 color standard has been in existence as of 1999 and is supported 2 | by pretty much all xterm emulating terminals and a large number of MUD clients. 3 | 4 | MTH provides a 256 color parser defining 32 distinct colors using ^a to ^Z 5 | codes, as well as codes for using the full 256 color range. 6 | 7 | The implementatino is in color.c 8 | 9 | Xterm 256 color support is detected using the MTTS standard, and by checking 10 | for the -256color suffix when a client reports its generic terminal type. If 11 | this is the case it sets the COMM_FLAG_256COLORS bitflag on the 12 | d->mth->comm_flags bitvector. 13 | 14 | 15 | For xterm true color foreground colors use to 16 | For xterm true color background colors use to 17 | 18 | With true colors disabled colors are converted to xterm 256 colors. 19 | 20 | With 256 colors disabled colors are converted to 16 color ANSI. 21 | 22 | With 16 colors disabled color codes are stripped. 23 | 24 | 4096 colors are a maximum of 16 bytes. 25 | 256 colors are a maximum of 11 bytes. 26 | 16 colors are a maximum of 8 bytes. 27 | 28 | For MUD 32 color codes use: 29 | 30 | ^a - dark azure ^A - azure 31 | ^b - dark blue ^B - blue 32 | ^c - dark cyan ^C - cyan 33 | ^e - dark ebony ^E - ebony 34 | ^g - dark green ^G - green 35 | ^j - dark jade ^J - jade 36 | ^l - dark lime ^L - lime 37 | ^m - dark magenta ^M - magenta 38 | ^o - dark orange ^O - orange 39 | ^p - dark pink ^P - pink 40 | ^r - dark red ^R - red 41 | ^s - dark silver ^S - silver 42 | ^t - dark tan ^T - tan 43 | ^v - dark violet ^V - violet 44 | ^w - dark white ^W - white 45 | ^y - dark yellow ^Y - yellow 46 | 47 | ^? - random color 48 | 49 | With 256 colors disabled colors are converted to 16 color ANSI. 50 | -------------------------------------------------------------------------------- /doc/MTH/eor.txt: -------------------------------------------------------------------------------- 1 | The End Of Record option provides the means to mark the end of a prompt 2 | so clients know that all data has arrived and can be displayed. 3 | 4 | In order to enable EOR edit tables.c, find the EOR entry, and change the 5 | flag from 0 to ANNOUNCE_WILL. This change will cause the announce_support() 6 | function to send IAC WILL EOR when called. 7 | 8 | If in response IAC DO EOR is received from the client the COMM_FLAG_EOR 9 | flag will be set on d->comm_flags. When sending a prompt and other lines 10 | not terminated by a newline you should check if COMM_FLAG_EOR is set, 11 | and if the case call send_eor() after sending the prompt, which will 12 | send IAC EOR to the client. 13 | 14 | In LoLa 1.4 this looks like this, check for '\n' instead of '\r' if your 15 | mud uses \r\n rather than \n\r as the new line marker: 16 | 17 | if (d->outtop) 18 | { 19 | if (d->outbuf[d->outtop - 1] != '\r') 20 | { 21 | d->outbuf[d->outtop++] = IAC; 22 | d->outbuf[d->outtop++] = EOR; 23 | } 24 | write_to_port(d); 25 | } 26 | -------------------------------------------------------------------------------- /doc/MTH/mccp.txt: -------------------------------------------------------------------------------- 1 | Adding MCCP: 2 | 3 | 1. When booting up the mud you should allocate the memory of mud->mccp_buf. 4 | 5 | mud->mccp_buf = calloc(sizeof(char), COMPRESS_BUF_SIZE); 6 | 7 | 2. Send IAC WILL TELOPT_MCCP2 when there is a new connection in comm.c before 8 | the greeting. You can also use announce_support() to send announcements 9 | for all supported protocols as defined in tables.c. 10 | 11 | void new_descriptor(void) 12 | { 13 | write_to_descriptor(dnew, "\0xFF\0xFB\0x56", 3); 14 | } 15 | 16 | 3. When closing a socket make sure to call end_mccp2 and end_mccp3() 17 | 18 | void close_socket( DESCRIPTOR_DATA * dclose ) 19 | { 20 | end_mccp2(dclose); 21 | end_mccp3(dclose); 22 | } 23 | 24 | 4. In write_to_descriptor(int desc, char *txt, int length ) Add the following call: 25 | 26 | bool write_to_descriptor( DESCRIPTOR_DATA *d, char *txt, int length ) 27 | { 28 | if (d->descriptor) 29 | { 30 | if (d->mccp2) 31 | { 32 | write_mccp2(d, txt, length); 33 | } 34 | else 35 | { 36 | write(d->descriptor, txt, length); 37 | } 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /doc/MTH/merc.txt: -------------------------------------------------------------------------------- 1 | 1. Copy msdp.c mth.c mth.h and telopt.c to your mud's source directory. 2 | 3 | 2. Update the macro and external function calls to use the ones that 4 | your mud uses. 5 | 6 | 3. Update the header file in your mud with the data provided in mud.h. 7 | This may be a bit of work to merge them correctly. If your mud 8 | already has most of the definitions you'd want to update telopt.c 9 | instead. 10 | 11 | 4. Update your Makefile and add msdp.o, mth.o and telopt.o 12 | 13 | 5. Next you need to edit comm.c to add a call to translate telopts. In 14 | Merc 2.2 this would go as following: 15 | 16 | find the line that states: 17 | 18 | nRead = read( d->descriptor, d->inbuf + iStart, sizeof( d->inbuf ) - 10 - iStart ); 19 | 20 | And replace the for loop it's in with the following: 21 | 22 | for( ;; ) 23 | { 24 | char bufin[MAX_INPUT_LENGTH]; 25 | int nRead; 26 | 27 | nRead = read( d->descriptor, bufin, sizeof( bufin ) - 10 - iStart ); 28 | if( nRead > 0 ) 29 | { 30 | iStart += translate_telopts(d, bufin, nRead, d->inbuf + iStart); 31 | 32 | if( d->inbuf[iStart - 1] == '\n' ) 33 | break; 34 | } 35 | else if( nRead == 0 ) 36 | { 37 | log_string( "EOF encountered on read." ); 38 | return FALSE; 39 | } 40 | else if( errno == EWOULDBLOCK ) 41 | break; 42 | else 43 | { 44 | perror( "Read_from_descriptor" ); 45 | return FALSE; 46 | } 47 | } 48 | 49 | 6. Call init_mth() when the mud boots up. 50 | 51 | 7. Call init_mth_socket() when a new socket is created. 52 | 53 | 8. Call uninit_mth_socket() when a socket is disconnected or before a copyover. 54 | 55 | 9. Read the other documentation files for additional topics. 56 | -------------------------------------------------------------------------------- /doc/MTH/mods.txt: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Mud Telopt Handler 1.0 by Igor van den Hoven. 27 Feb 2009 * 3 | ***************************************************************************/ 4 | 5 | Original release supporting MSSP, MCCP, NAWS, TTYPE, and NEW_ENVIRON. 6 | 7 | 8 | /*************************************************************************** 9 | * Mud Telopt Handler 1.1 by Igor van den Hoven. 05 Mar 2009 * 10 | ***************************************************************************/ 11 | 12 | Better documentation. 13 | 14 | 15 | /*************************************************************************** 16 | * Mud Telopt Handler 1.2 by Igor van den Hoven. 16 Mar 2009 * 17 | ***************************************************************************/ 18 | 19 | Adds telbuf to deal with packet fragmentation. Not necessary, but might be 20 | useful for future extentions with large data chunks. 21 | 22 | Adds announce_support function to automatically announce all supported 23 | protocols as defined in the telnet table. 24 | 25 | 26 | /*************************************************************************** 27 | * Mud Telopt Handler 1.3 by Igor van den Hoven. 06 Apr 2009 * 28 | ***************************************************************************/ 29 | 30 | Updated MSSP core variables and \r handling to translate \r\0 to \n. 31 | 32 | /*************************************************************************** 33 | * Mud Telopt Handler 1.4 by Igor van den Hoven. 06 Jul 2011 * 34 | ***************************************************************************/ 35 | 36 | Added EOR support, disabled by default in tables.c 37 | 38 | Added full MSDP support in msdp.c 39 | 40 | Added xterm 256 color support in color.c 41 | 42 | /*************************************************************************** 43 | * Mud Telopt Handler 1.5 by Igor van den Hoven. 12 Aug 2019 * 44 | ***************************************************************************/ 45 | 46 | Added CHARSET support to detect UTF-8 47 | 48 | Added MCCP3 support 49 | 50 | Added support in net.c to allow 1 socket connection at a time for testing, 51 | port 4321 is opened by default when running mth. 52 | 53 | Added MSDP over GMCP support. 54 | 55 | -------------------------------------------------------------------------------- /doc/MTH/mssp.txt: -------------------------------------------------------------------------------- 1 | The MSSP specification is available at: 2 | 3 | http://tintin.sourceforge.net/mssp 4 | 5 | In order to announce MSSP support you need to send IAC WILL TELOPT_MSSP to 6 | each new connection, unless you call announce_support() which will announce 7 | all supported protocols as defined in tables.c. 8 | 9 | The next step is to update the process_do_mssp() function in telopt.c and 10 | change the various fields so they match your MUD.MSSP data with your MUD's 11 | information. 12 | 13 | If your MUD doesn't provide you with global information about the number of 14 | rooms and other such data, it's suggested to incorporate MTH's mud_data 15 | structure. 16 | -------------------------------------------------------------------------------- /doc/MTH/mtts.txt: -------------------------------------------------------------------------------- 1 | The Mud Terminal Type Standard is used to communicate generic terminal 2 | capabilities. The specification is available at: 3 | 4 | http://tintin.sourceforge.net/mtts/ 5 | 6 | The MTTS bitvector will be automatically copied to d->mtts. 7 | 8 | MTH 1.5 will automatically handle the NEW-ENVIRON IPADDRESS variable which 9 | is used by mudportal and possibly other proxies to send the real IP address 10 | of the connection. 11 | -------------------------------------------------------------------------------- /doc/MTH/wintel.txt: -------------------------------------------------------------------------------- 1 | Whenever Windows telnet receives a telnet negotiation it will automatically 2 | switch itself to character mode, which effectively kills local echo, with no 3 | means of disabling it remotely. 4 | 5 | MTH will automatically detect Windows telnet and set COMM_FLAG_REMOTEECHO 6 | and handle the remote echo for you. 7 | 8 | MTH will also set COMM_FLAG_PASSWORD when using the echo_on() and echo_off() 9 | functions to print a * instead of the actual character. 10 | -------------------------------------------------------------------------------- /doc/QuickMUD.txt: -------------------------------------------------------------------------------- 1 | QuickMUD 2 | Currently by Jim Robinson, and many others before me... 3 | 4 | 5 | Downloading: 6 | Please note on the QuickMUD download page, the filesize is 7 | shown in bytes. This is dynamically generated and guaranteed 8 | to be accurate. If your download appears to be over 4MB, then 9 | it is your browser/whatever you are using to download the 10 | quickmud.tar.gz file being helpful and gunzipping the archive 11 | on the fly. Just rename the thing to quickmud.tar if there 12 | are any problems with this. 13 | 14 | Compiling: 15 | I have changed the entire Makefile philosophy. Basically, 16 | QuickMUD/src/Makefile is it. That's about the only one I 17 | edit anymore. Period. It's setup so that it will compile 18 | on a Debian GNU/Linux system, and probably a Windows + 19 | Cygwin setup out of the box. Outside of that, there are 20 | no garauntees. Sorry. I may maintain some FreeBSD 21 | compatibility, but that's only a thought, as it's an interest 22 | of mine. Anyway... 23 | 24 | Briefly, about compiling under Windows. The Makefile is set 25 | up so that the crypt library isn't used, hopefully eliminating 26 | the senseless abuse of the ROM mailing list with "I have this 27 | weird/odd/rare crypt error..." messages. A side effect is the 28 | player's passwords are stored in plain text in the player 29 | files. No big deal in my opinion, as if someone has read access 30 | to your source tree, you probably have bigger issues to worry 31 | about than player's MUD passwords ;-) 32 | 33 | This should by-God compile out-of-the-box in Cygwin now. The 34 | random()/urandom() issues have been worked around by adding a 35 | -DQMFIXES to the Makefile. I consider these issues now buried. 36 | 37 | Your best bet is to just go into the "QuickMUD/src" and run 38 | "make". If you don't have "make", or don't know what "make" 39 | is, that's beyond the scope of this document (and probably a 40 | good indication you should stick to playing MUDs and not 41 | tryign to code on them). 42 | 43 | So, change directory to "QuickMUD/src" and run "make". That's 44 | it. The other Makefiles? Well, they are there for posterity's 45 | sake I guess. Just in case, you know? Got sense enough to run 46 | another free OS platform, you have sense enough to compile this 47 | code. 'nuff said ;-) 48 | 49 | QuickMUD stuff: 50 | qmconfig [option] [on|off] 51 | This command sets up stuff that has been coded into 52 | QuickMUD for your convenience. The options are as 53 | follows: 54 | 55 | ansiprompt - whether or not all logins will see a 56 | "ANSI Color?" prompt when initially logging in. 57 | 58 | ansicolor - whether or not color is automatically 59 | turned on for new players. 60 | 61 | telnetga - the telnet go-ahead code will be sent to 62 | players by default if this is enabled. Good for 63 | players who use MUD clients like "mcl". 64 | 65 | These variables are set in area/qmconfig.rc. "1" means 66 | turn it on, "0" means turn it off. 67 | 68 | Well, that's enough for now. It's a start. I'll be using emails I 69 | receive as suggestions for new content :-) 70 | 71 | Jim Robinson 72 | aka "Flugh" 73 | 74 | -------------------------------------------------------------------------------- /doc/license.txt: -------------------------------------------------------------------------------- 1 | Merc Release 2.1 2 | Sunday 01 August 1993 3 | 4 | Furey mec@shell.portal.com 5 | Hatchet hatchet@uclink.berkeley.edu 6 | Kahn michael@uclink.berkeley.edu 7 | 8 | 9 | 10 | === Copyright and License Terms 11 | 12 | Diku Mud is copyright (C) 1990, 1991 by Sebastian Hammer, Michael Seifert, 13 | Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe. Their license agreement 14 | is in the file 'license.doc'. 15 | 16 | Merc Diku Mud is a derivative of the original Diku Mud and is subject to their 17 | copyright and license agreement. Merc Diku Mud contains substantial 18 | enhancements to Diku Mud. These enhancements are copyright 1992, 1993 by 19 | Michael Chastain, Michael Quan, and Mitchell Tse. 20 | 21 | In order to use Merc you must follow the Diku license and our license. The 22 | exact terms of the Diku license are in the file 'license.doc'. A summary of 23 | these terms is: 24 | 25 | -- No resale or operation for profit. 26 | -- Original author's names must appear in login sequence. 27 | -- The 'credits' command must report original authors. 28 | -- You must notify the Diku creators that you are operating a Diku mud. 29 | 30 | Our license terms are: 31 | 32 | -- Copyrights must remain in original source. 33 | -- 'Help merc' must report our help text, as shipped. 34 | 35 | Notice that our license terms don't include keeping our names in the login 36 | sequence. If you want to keep a line in there referring to Merc, or referring 37 | to us by name (Furey, Hatchet, and Kahn), we'd appreciate that, but we don't 38 | require it. But you must keep the original Diku authors in the login sequence. 39 | 40 | If you do not follow these license terms, we will ask you to comply. If that 41 | doesn't work, then we will talk to your system administrators (not about your 42 | running a mud, but on the grounds that you're using our copyrighted software 43 | without permission). 44 | 45 | These are very generous terms for any software. If you don't want to accept 46 | them, feel free to run some other software, or write your own. 47 | -------------------------------------------------------------------------------- /doc/rom.credits: -------------------------------------------------------------------------------- 1 | (these are in addition to the standard credits listed for both the 2 | diku dev team and the merc dev team) 3 | 4 | The following people contributed to the ROM flavor of the merc base code: 5 | 6 | Socials -- 7 | Kelsey and Liralen 8 | 9 | New, Improved Valhalla -- 10 | Liralen 11 | 12 | Puff's new special proc and improved poofin/poofout code -- 13 | Seth 14 | 15 | Maps and map shop -- 16 | Ezra, Regnan (Olympus) 17 | 18 | Nirvana zone -- 19 | Forstall (mobiles rewritten by Alander) 20 | 21 | Mob Factory -- 22 | Pinkfloyd (originally written for ROM, mobiles rewritten by Alander) 23 | 24 | Geographically correct Midgaard (tm) -- 25 | Alander 26 | 27 | Ideas and playtesting -- 28 | Thousands of dedicated mudders around the world 29 | 30 | The New Thalos area was donated by Onivel of Jedi, who was also the originator 31 | of the ASCII flags used in the zone files 32 | 33 | Beta testing -- 34 | Ken Blosser, Doug Araya, and Sherene Neil all helped with bugs reports 35 | and suggestions, saving a lot of headaches 36 | 37 | Bug reports -- 38 | Thanks to Shad Muegge, Jerome Despret, Phoenix, Will Hongach, 39 | Erwin S. Andreasen, Adam Debus and especially Gary Turkington 40 | (author of the ROM FAQ) for help spotting bugs 41 | 42 | ROM 2.4 was developed during my time with Moosehead mud, and the release 43 | shares many of the features I wrote while I was there. Additional code 44 | was written by Seth Scott (the new poofin/poofout), and many contributions 45 | and ideas from the Merc list were used. Portions of Rusty's work on 46 | Moosehead also remain. 47 | 48 | The new features of 2.4 were largely produced in bull sessions with 49 | Gabrielle Taylor and Brian Moore, without whom this release wouldn't 50 | have happened. In particular, the new privacy code, furniture, and 51 | wiznet are the results of Gabrielle's ideas. 52 | 53 | Changes to the standard diku mob and object format, as well as the changes 54 | to Merc 2.1 source code, were done by Alander over many a late night of 55 | hair-pulling. Hope you enjoy it. 56 | 57 | (my apologies if anyone was forgotten in this list) 58 | -------------------------------------------------------------------------------- /doc/sites.txt: -------------------------------------------------------------------------------- 1 | Merc Release 2.1 2 | Sunday 01 August 1993 3 | 4 | Furey mec@shell.portal.com 5 | Hatchet hatchet@uclink.berkeley.edu 6 | Kahn michael@uclink.berkeley.edu 7 | 8 | 9 | 10 | === Merc-Based Sites 11 | 12 | The following muds are based on Merc code. The implementors of these muds 13 | add their own changes and features, so don't expect all these muds to look 14 | alike. Most of them look VERY different! 15 | 16 | To the imps who run these muds ... thanks for sharing your computers with 17 | us all! 18 | 19 | If you would like to be added to (or removed from) to this list, just e-mail 20 | Furey, Hatchet, or Kahn. 21 | 22 | Merc 1: 23 | Hidden Worlds cns.cscns.com 4000 24 | The Land nora.gih.no 4000 25 | Medievia bigboy.cis.temple.edu 4000 26 | Mud Lite haas.berkeley.edu 4000 27 | Mystic Realms dikumud.sju.edu 4000 28 | Realms of Wind ccsun44.csie.nctu.edu.tw 4000 29 | Rivers of Mud cie-2.uoregon.edu 9000 30 | 31 | Merc 2: 32 | Cataclysm wagner.musicnet.ua.edu. 4000 33 | Fourth Realm marble.bu.edu 4000 34 | Legend of Winds ccsun44.csie.nctu.edu.tw 4040 35 | Rivers of Mud 2 cie-2.uoregon.edu 4000 36 | Wisney World levant.cs.ohiou.edu 5000 37 | -------------------------------------------------------------------------------- /doc/sky.txt: -------------------------------------------------------------------------------- 1 | Merc Release 2.1 2 | Sunday 01 August 1993 3 | 4 | Furey mec@shell.portal.com 5 | Hatchet hatchet@uclink.berkeley.edu 6 | Kahn michael@uclink.berkeley.edu 7 | 8 | 9 | 10 | === Blue Sky 11 | 12 | It's blue sky time! These are features we'd like to have in Merc. We haven't 13 | designed them, haven't coded them, haven't scheduled them. They won't be in 14 | Merc 2.0 and may never be in Merc. 15 | 16 | If you code any of these features please send us a copy. 17 | 18 | 19 | 20 | === Symbolic Names in Numeric Fields. 21 | 22 | We'd like 'fread_number' to understand words such as AFF_SANCTUARY and 23 | translate them into the appropriate numbers. 24 | 25 | 26 | 27 | === New Comm Drivers 28 | 29 | Right now comm.c understands only Berkeley Unix networking. We'd like comm 30 | drivers for the following operating systems: 31 | 32 | System V Unix 33 | VMS 34 | OS/2 (single user) 35 | FOSSIL (for dialup Merc on bbs's) 36 | 37 | 38 | 39 | === Randomization on Area Loading 40 | 41 | We'd like to see items loaded with random spells, placed on random mobs, so 42 | that players have to explore more instead of just having a '#blue' macro that 43 | goes to the queen spider and kills her for a blue potion. 44 | 45 | 46 | 47 | === Mobs Using Magical Items 48 | 49 | 'Watch, out Jim! That orc has a wand of fireballs!' 50 | 51 | 'The queen spider quaffs the blue potion.' 52 | 'The queen spider looks healthier.' 53 | 54 | 55 | 56 | === An Arena 57 | 58 | A room flag where players can attack players without getting a killer flag, can 59 | cast offensive spells at players, and death carries no xp or eq loss. Wanna 60 | try out a beholder without getting killed? Just pay enough money and you can 61 | have one loaded in the arena! 62 | 63 | 64 | 65 | === Area Logging 66 | 67 | So you can tell if everyone's going to the same area over and over and make the 68 | area harder. 69 | 70 | 71 | 72 | === Merc-to-Merc Portals 73 | 74 | The save files are Ascii -- just shoot it over a server-to-server connection. 75 | 76 | 77 | 78 | === Protection Against Multi-Playing 79 | 80 | RFC 1413 is a good protocol but no one implements it. :( 81 | 82 | 83 | 84 | === Built-in Client 85 | 86 | We'd like to incorporate EVERYTHING in Tintin 3 into the server (except for 87 | multiple sessions -- but even multiple sessions would be good for the MS-DOS 88 | single-player version). People use clients anyways. Why not make it easy on 89 | them, and give everyone the same advantage. 90 | 91 | 92 | 93 | === 'Retire' Command 94 | 95 | For those 36th level players who keep hanging around! 96 | -------------------------------------------------------------------------------- /doc/vnum.txt: -------------------------------------------------------------------------------- 1 | Merc Release 2.1 2 | Sunday 01 August 1993 3 | 4 | Furey mec@shell.portal.com 5 | Hatchet hatchet@uclink.berkeley.edu 6 | Kahn michael@uclink.berkeley.edu 7 | 8 | [This file was originally written by Neal Haggard for Merc 2.0 Beta. 9 | But we reformatted it to fit on one screen. -- Furey] 10 | 11 | 12 | 13 | === Vnum Assignments 14 | 15 | 00 limbo.are 20 catacomb.are 40 moria.are 60 haon.are 80 mega1.are 16 | 01 smurf.are 21 hood.are 41 moria.are 61 haon.are 81 - 17 | 02 - 22 draconia.are 42 - 62 - 82 - 18 | 03 plains.are 23 mahntor.are 43 - 63 arachnos.are 83 marsh.are 19 | 04 - 24 - 44 - 64 - 84 - 20 | 05 - 25 - 45 - 65 dwarven.are 85 - 21 | 06 ofcol2.are 26 - 46 - 66 daycare.are 86 dream.are 22 | 07 - 27 - 47 - 67 - 87 - 23 | 08 - 28 trollden.are 48 - 68 - 88 - 24 | 09 olympus.are 29 - 49 - 69 - 89 grove.are 25 | 10 air.are 30 midgaard.are 50 eastern.are 70 sewer.are 90 - 26 | 11 shire.are 31 midgaard.are 51 drow.are 71 sewer.are 91 dylan.are 27 | 12 hitower.are 32 midgaard.are 52 thalos.are 72 sewer.are 92 canyon.are 28 | 13 hitower.are 33 midgaard.are 53 mirror.are 73 sewer.are 93 galaxy.are 29 | 14 hitower.are 34 chapel.are 54 - 74 sewer.are 94 mobfact.are 30 | 15 gnome.are 35 midennir.are 55 ofcol.are 75 - 95 newthalos.are 31 | 16 wyvern.are 36 grave.are 56 - 76 - 96 newthalos.are 32 | 17 wyvern.are 37 school.are 57 - 77 - 97 newthalos.are 33 | 18 - 38 - 58 - 78 valley.are 98 - 34 | 19 - 39 moria.are 59 - 79 redferne.are 99 - 35 | -------------------------------------------------------------------------------- /gods/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/gods/.empty -------------------------------------------------------------------------------- /gods/Admin: -------------------------------------------------------------------------------- 1 | Lev 60 Trust 60 Admin the Implementor 2 | -------------------------------------------------------------------------------- /imc/STRLCPY-STRLCAT-LICENSE: -------------------------------------------------------------------------------- 1 | Copyright/License for strlcpy and strlcat - BSD license, which is as simple as 2 | the three conditions and the warranty below. 3 | 4 | 5 | /* 6 | * Copyright (c) 1998 Todd C. Miller 7 | * All rights reserved. 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 1. Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 2. Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in the 16 | * documentation and/or other materials provided with the distribution. 17 | * 3. The name of the author may not be used to endorse or promote products 18 | * derived from this software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 21 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 22 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 23 | * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 26 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | */ 31 | -------------------------------------------------------------------------------- /imc/Whotemplates.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/imc/Whotemplates.txt -------------------------------------------------------------------------------- /imc/imc.channels: -------------------------------------------------------------------------------- 1 | #END 2 | -------------------------------------------------------------------------------- /imc/imc.config: -------------------------------------------------------------------------------- 1 | $IMCCONFIG 2 | # 3 | # IMC2 Freedom CL-2.1 config file. 4 | # This file can now support the use of tildes in your strings. 5 | # This information can be edited online using the 'imcconfig' command. 6 | LocalName Your mud's ONE WORD name here 7 | Autoconnect 0 8 | MinPlayerLevel 10 9 | MinImmLevel 101 10 | AdminLevel 113 11 | Implevel 115 12 | InfoName Your mud's FULL name here 13 | InfoHost Your mud's DNS address here 14 | InfoPort 0 15 | InfoEmail Mud's IMC administrator email 16 | InfoWWW Mud's webpage 17 | InfoBase The name of the mud's codebase 18 | InfoDetails Short description of some sort 19 | 20 | # Your server connection information goes here. 21 | # This information should be available from the network you plan to join. 22 | ServerAddr DNS address of the router you will connect to 23 | ServerPort 0 24 | ClientPwd Client password for the router you connect to 25 | ServerPwd Server password for the router you connect to 26 | #SHA256 auth: 0 = disabled, 1 = enabled 27 | SHA256 1 28 | End 29 | 30 | $END 31 | -------------------------------------------------------------------------------- /imc/imc.help: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/imc/imc.help -------------------------------------------------------------------------------- /imc/imc.ignores: -------------------------------------------------------------------------------- 1 | #IGNORES 2 | #END 3 | 4 | -------------------------------------------------------------------------------- /imc/imc.who: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/imc/imc.who -------------------------------------------------------------------------------- /imc/imc2freedom.license: -------------------------------------------------------------------------------- 1 | We would like to thank the following people for their inspiration in 2 | writing this code, their contributions to the community in which we 3 | all play are not forgotten: 4 | 5 | Scion Altera, Shogar, Kratas, Tagith, Noplex, 6 | Senir, Trax and Ntanel StormBlade. 7 | 8 | This code is released as a Diku snippet and is bound by such terms 9 | as are found in the Diku license. Since your mud is likely already 10 | bound by the same terms, you should not have any issues with installing 11 | this code. 12 | 13 | In addition, you must comply with the following conditions: 14 | 15 | 1. You are granted the right to install this code into any license compliant 16 | Diku derived mud. If your mud is in any way in violation of the terms of the 17 | Diku license, you may not use this code. 18 | 19 | 2. You are granted the right to distribute this code in any license compliant 20 | Diku derived codebase. If the codebase you are distributing in any way violates 21 | the license, or the licenses of any works it may be derived from, you may not 22 | distribute this code along with it. 23 | 24 | -------------------------------------------------------------------------------- /json/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/json/.empty -------------------------------------------------------------------------------- /json/areas/air/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "air", 3 | "filename": "air.are", 4 | "title": "In the Air", 5 | "credits": "{ 5 10} Copper In the Air", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 1000, 9 | "max_vnum": 1099, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/air/mobiles.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"mobile": { 3 | "area": "air", 4 | "anum": 0, 5 | "name": "fairy dragon", 6 | "short_descr": "A fairy dragon", 7 | "long_descr": "A fairy dragon is fluttering around here looking for something to do...\n", 8 | "description": "It's a cute little multi-colored dragon...about 2 foot long.\nIt gracefully dances around your head.\n", 9 | "race": "human", 10 | "material": "generic", 11 | "mob_flags": "stay_area mage", 12 | "affected_by": "detect_invis detect_magic", 13 | "alignment": 500, 14 | "group": 0, 15 | "level": 5, 16 | "hitroll": 0, 17 | "hit_dice": "2d7+46", 18 | "mana_dice": "5d9+100", 19 | "damage_dice": "1d5+0", 20 | "dam_type": "none", 21 | "ac": { 22 | "pierce": 60, 23 | "bash": 60, 24 | "slash": 60, 25 | "magic": 80 26 | }, 27 | "offense": "dodge assist_vnum", 28 | "immune": null, 29 | "resist": null, 30 | "vulnerable": null, 31 | "start_pos": "stand", 32 | "default_pos": "stand", 33 | "sex": "neutral", 34 | "wealth": 1, 35 | "form": "none", 36 | "parts": "none", 37 | "size": "medium", 38 | "shop": null 39 | }}, 40 | {"mobile": { 41 | "area": "air", 42 | "anum": 1, 43 | "name": "griffin", 44 | "short_descr": "A griffin", 45 | "long_descr": "A large black winged griffin swoops into an attack.\n", 46 | "description": "Golden maned and black all over. It's quite a beautiful creature if not\nfor the fact it is hungry and is attacking you!\n", 47 | "race": "human", 48 | "material": "generic", 49 | "mob_flags": "aggressive stay_area", 50 | "affected_by": null, 51 | "alignment": 300, 52 | "group": 0, 53 | "level": 8, 54 | "hitroll": 0, 55 | "hit_dice": "2d7+96", 56 | "mana_dice": "4d9+100", 57 | "damage_dice": "1d7+2", 58 | "dam_type": "none", 59 | "ac": { 60 | "pierce": 30, 61 | "bash": 30, 62 | "slash": 30, 63 | "magic": 90 64 | }, 65 | "offense": "disarm dodge trip assist_vnum", 66 | "immune": null, 67 | "resist": null, 68 | "vulnerable": null, 69 | "start_pos": "stand", 70 | "default_pos": "stand", 71 | "sex": "male", 72 | "wealth": 25, 73 | "form": "none", 74 | "parts": "none", 75 | "size": "medium", 76 | "shop": null 77 | }} 78 | ] 79 | -------------------------------------------------------------------------------- /json/areas/air/objects.json: -------------------------------------------------------------------------------- 1 | [{"object": { 2 | "area": "air", 3 | "anum": 1, 4 | "new_format": true, 5 | "name": "rose", 6 | "short_descr": "a red rose", 7 | "description": "A red rose is lying on the ground.", 8 | "material": "generic", 9 | "item_type": "treasure", 10 | "extra_flags": null, 11 | "wear_flags": "take head", 12 | "values": {}, 13 | "level": 0, 14 | "weight": 80, 15 | "cost": 0, 16 | "condition": 100, 17 | "extra_description": [{ 18 | "keyword": "rose", 19 | "description": "It's a beautiful red rose, with a soft and romantic fragrance.\n" 20 | }], 21 | "affects": [] 22 | }}] 23 | -------------------------------------------------------------------------------- /json/areas/arachnos/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "arachnos", 3 | "filename": "arachnos.are", 4 | "title": "Arachnos", 5 | "credits": "{ 5 20} Mahatma Arachnos", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 6200, 9 | "max_vnum": 6399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/astral/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "astral", 3 | "filename": "astral.are", 4 | "title": "Astral Plane", 5 | "credits": "{10 35} Andersen Astral/Githyanki", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 7700, 9 | "max_vnum": 7799, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/canyon/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "canyon", 3 | "filename": "canyon.are", 4 | "title": "Elemental Canyon", 5 | "credits": "{ 5 30} Raff Elemental Canyon", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 9200, 9 | "max_vnum": 9299, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/catacomb/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "catacomb", 3 | "filename": "catacomb.are", 4 | "title": "Catacombs", 5 | "credits": "{10 20} Raff Dwarven Catacombs", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 2000, 9 | "max_vnum": 2099, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/chapel/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "chapel", 3 | "filename": "chapel.are", 4 | "title": "Chapel", 5 | "credits": "{15 25} Copper Chapel Catacombs", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 3400, 9 | "max_vnum": 3499, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/daycare/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "daycare", 3 | "filename": "daycare.are", 4 | "title": "Day Care", 5 | "credits": "{ 1 5} Sandman Dwarven Day Care", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 6600, 9 | "max_vnum": 6699, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/draconia/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "draconia", 3 | "filename": "draconia.are", 4 | "title": "Dragon Tower", 5 | "credits": "{ 5 30} Wench Dragon Tower", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 2200, 9 | "max_vnum": 2299, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/dream/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "dream", 3 | "filename": "dream.are", 4 | "title": "Machine Dreams", 5 | "credits": "{ 1 5} Furey Machine Dreams", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 8600, 9 | "max_vnum": 8699, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/dream/mobiles.json: -------------------------------------------------------------------------------- 1 | [{"mobile": { 2 | "area": "dream", 3 | "anum": 0, 4 | "name": "keeper", 5 | "short_descr": "the keeper", 6 | "long_descr": "The keeper of the Morris equipment is here.\n", 7 | "description": "Her job is to set the level for this equipment.\n", 8 | "race": "human", 9 | "material": "generic", 10 | "mob_flags": null, 11 | "affected_by": null, 12 | "alignment": 1000, 13 | "group": 0, 14 | "level": 8, 15 | "hitroll": 0, 16 | "hit_dice": "2d7+96", 17 | "mana_dice": "4d9+100", 18 | "damage_dice": "1d7+2", 19 | "dam_type": "none", 20 | "ac": { 21 | "pierce": 30, 22 | "bash": 30, 23 | "slash": 30, 24 | "magic": 90 25 | }, 26 | "offense": "disarm dodge trip assist_vnum", 27 | "immune": null, 28 | "resist": null, 29 | "vulnerable": null, 30 | "start_pos": "stand", 31 | "default_pos": "stand", 32 | "sex": "female", 33 | "wealth": 5, 34 | "form": "none", 35 | "parts": "none", 36 | "size": "medium", 37 | "shop": null 38 | }}] 39 | -------------------------------------------------------------------------------- /json/areas/drow/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "drow", 3 | "filename": "drow.are", 4 | "title": "Drow City", 5 | "credits": "{15 25} Drkside Drow City", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 5100, 9 | "max_vnum": 5199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/dwarven/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "dwarven", 3 | "filename": "dwarven.are", 4 | "title": "Dwarven Kingdom", 5 | "credits": "{10 25} Anon Dwarven Kingdom", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 6500, 9 | "max_vnum": 6599, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/dylan/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "dylan", 3 | "filename": "dylan.are", 4 | "title": "Dylan's Area", 5 | "credits": "{15 25} Dylan Dylan's Area", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 9100, 9 | "max_vnum": 9199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/eastern/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "eastern", 3 | "filename": "eastern.are", 4 | "title": "Sands of Sorrow", 5 | "credits": "{10 20} Anon Sands of Sorrow", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 5000, 9 | "max_vnum": 5099, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/galaxy/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "galaxy", 3 | "filename": "galaxy.are", 4 | "title": "Galaxy", 5 | "credits": "{20 30} Doctor Galaxy", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 9300, 9 | "max_vnum": 9399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/gnome/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "gnome", 3 | "filename": "gnome.are", 4 | "title": "Gnome Village", 5 | "credits": "{ 5 15} Vougon Gnome Village", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 1500, 9 | "max_vnum": 1599, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/grave/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "grave", 3 | "filename": "grave.are", 4 | "title": "Graveyard", 5 | "credits": "{ 5 10} Alfa Graveyard", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 3600, 9 | "max_vnum": 3699, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/grove/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "grove", 3 | "filename": "grove.are", 4 | "title": "Holy Grove", 5 | "credits": "{ 5 20} Alfa Holy Grove", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 8900, 9 | "max_vnum": 8999, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/haon/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "haon", 3 | "filename": "haon.are", 4 | "title": "Haon Dor", 5 | "credits": "{ 5 10} Diku Haon Dor", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 6000, 9 | "max_vnum": 6199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/hitower/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "hitower", 3 | "filename": "hitower.are", 4 | "title": "High Tower", 5 | "credits": "{10 30} Skylar High Tower of Sorcery", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 1300, 9 | "max_vnum": 1499, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/hood/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "hood", 3 | "filename": "hood.are", 4 | "title": "Gangland", 5 | "credits": "{ 5 15} Raff Dangerous Neighborhood", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 2100, 9 | "max_vnum": 2199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/immort/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "immort", 3 | "filename": "immort.are", 4 | "title": "Valhalla", 5 | "credits": "{51 60} ROM Immortal Zone", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 1200, 9 | "max_vnum": 1299, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/immort/mobiles.json: -------------------------------------------------------------------------------- 1 | [{"mobile": { 2 | "area": "immort", 3 | "anum": 0, 4 | "name": "Heimdall", 5 | "short_descr": "Heimdall", 6 | "long_descr": "Heimdall, guardian of Bifrost, stands guard over the Rainbow Bridge.\n", 7 | "description": "Standing over 7 feet tall and muscled as only a god can be, Heimdall keeps\nhis unsleeping gaze over the Rainbow bridge. His trusty Gjallor-horn never\nleaves his side, and shall remain unwinded until the dread ship Naglfar sails\ntowards Valhalla on the dawn of Ragnarok.\n", 8 | "race": "human", 9 | "material": "generic", 10 | "mob_flags": "sentinel warrior nopurge", 11 | "affected_by": "detect_evil detect_invis detect_hidden infrared dark_vision", 12 | "alignment": 1000, 13 | "group": 0, 14 | "level": 57, 15 | "hitroll": 30, 16 | "hit_dice": "1d1+19999", 17 | "mana_dice": "1d1+499", 18 | "damage_dice": "5d4+40", 19 | "dam_type": "crush", 20 | "ac": { 21 | "pierce": -200, 22 | "bash": -200, 23 | "slash": -200, 24 | "magic": -100 25 | }, 26 | "offense": "area_attack bash berserk disarm dodge fast kick parry rescue trip crush assist_guard", 27 | "immune": "summon charm mental", 28 | "resist": "magic weapon", 29 | "vulnerable": null, 30 | "start_pos": "stand", 31 | "default_pos": "stand", 32 | "sex": "male", 33 | "wealth": 0, 34 | "form": "none", 35 | "parts": "none", 36 | "size": "large", 37 | "shop": null 38 | }}] 39 | -------------------------------------------------------------------------------- /json/areas/limbo/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "limbo", 3 | "filename": "limbo.are", 4 | "title": "Limbo", 5 | "credits": "{None } Diku Limbo", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 0, 9 | "max_vnum": 99, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/limbo/rooms.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"room": { 3 | "area": "limbo", 4 | "anum": 1, 5 | "owner": null, 6 | "name": "The Void", 7 | "description": "You are floating in nothing.\n", 8 | "room_flags": "no_mob indoors", 9 | "sector_type": "city", 10 | "heal_rate": 100, 11 | "mana_rate": 100, 12 | "clan": null, 13 | "portal": "limbo-1", 14 | "doors": [], 15 | "extra_description": [], 16 | "resets": [] 17 | }}, 18 | {"room": { 19 | "area": "limbo", 20 | "anum": 2, 21 | "owner": null, 22 | "name": "Limbo", 23 | "description": "You are floating in a formless void, detached from all sensation of physical\nmatter, surrounded by swirling glowing light, which fades into the relative\ndarkness around you without any trace of edges or shadow.\n There is a \"No Tipping\" notice pinned to the darkness.\n", 24 | "room_flags": "indoors", 25 | "sector_type": "city", 26 | "heal_rate": 100, 27 | "mana_rate": 100, 28 | "clan": null, 29 | "portal": "limbo-2", 30 | "doors": [{ 31 | "dir": "up", 32 | "to": null, 33 | "keyword": null, 34 | "description": null, 35 | "exit_flags": null, 36 | "key": -1, 37 | "portal": "limbo-3-up" 38 | }], 39 | "extra_description": [], 40 | "resets": [] 41 | }} 42 | ] 43 | -------------------------------------------------------------------------------- /json/areas/mahntor/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "mahntor", 3 | "filename": "mahntor.are", 4 | "title": "Mahn-Tor", 5 | "credits": "{ 5 35} Chris The Keep of Mahn-Tor", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 2300, 9 | "max_vnum": 2399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/marsh/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "marsh", 3 | "filename": "marsh.are", 4 | "title": "Marsh", 5 | "credits": "{15 25} Generic Old Marsh", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 8300, 9 | "max_vnum": 8399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/mega1/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "mega1", 3 | "filename": "mega1.are", 4 | "title": "Mega City One", 5 | "credits": "{ 5 35} Glop Mega-City One ", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 8000, 9 | "max_vnum": 8099, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/midennir/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "midennir", 3 | "filename": "midennir.are", 4 | "title": "Miden'nir", 5 | "credits": "{ 5 15} Copper Miden'nir", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 3500, 9 | "max_vnum": 3599, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/midgaard/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "midgaard", 3 | "filename": "midgaard.are", 4 | "title": "Midgaard", 5 | "credits": "{ All } Diku Midgaard", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 3000, 9 | "max_vnum": 3399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/mirror/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "mirror", 3 | "filename": "mirror.are", 4 | "title": "Old Thalos", 5 | "credits": "{ 1 30} Kahn Old Thalos", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 5300, 9 | "max_vnum": 5399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/mobfact/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "mobfact", 3 | "filename": "mobfact.are", 4 | "title": "Mob Factory", 5 | "credits": "{ 5 15} PinkF Mob Factory", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 9400, 9 | "max_vnum": 9499, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/moria/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "moria", 3 | "filename": "moria.are", 4 | "title": "Moria", 5 | "credits": "{ 5 15} Alfa Moria", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 3900, 9 | "max_vnum": 4199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/newthalos/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "newthalos", 3 | "filename": "newthalos.are", 4 | "title": "New Thalos", 5 | "credits": "{10 35} Conner New Thalos", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 9500, 9 | "max_vnum": 9799, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/nirvana/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "nirvana", 3 | "filename": "nirvana.are", 4 | "title": "Nirvana", 5 | "credits": "{30 35} Fstall Nirvana", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 9000, 9 | "max_vnum": 9099, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/nirvana/objects.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"object": { 3 | "area": "nirvana", 4 | "anum": 0, 5 | "new_format": true, 6 | "name": "sword long the", 7 | "short_descr": "THE long sword", 8 | "description": "THE long sword of Primus is here.", 9 | "material": "adamantite", 10 | "item_type": "weapon", 11 | "extra_flags": "glow magic antigood antievil", 12 | "wear_flags": "take wield", 13 | "values": { 14 | "weapon_type": "sword", 15 | "dice_num": 5, 16 | "dice_size": 6, 17 | "attack_type": "slash", 18 | "flags": "vorpal twohands" 19 | }, 20 | "level": 39, 21 | "weight": 400, 22 | "cost": 8800, 23 | "condition": 100, 24 | "extra_description": [{ 25 | "keyword": "sword long the", 26 | "description": "This is an extremely long and heavy sword, with many magical runes inscribed\non it. It glows with the power of Primus, Lord of the Plane of Nirvana.\n" 27 | }], 28 | "affects": [ 29 | { 30 | "apply": "damage roll", 31 | "level": 39, 32 | "modifier": 5, 33 | "bit_type": "object", 34 | "bits": null 35 | }, 36 | { 37 | "apply": "hit roll", 38 | "level": 39, 39 | "modifier": 5, 40 | "bit_type": "object", 41 | "bits": null 42 | } 43 | ] 44 | }}, 45 | {"object": { 46 | "area": "nirvana", 47 | "anum": 1, 48 | "new_format": true, 49 | "name": "moonstone moon stone white", 50 | "short_descr": "a luminescent moonstone", 51 | "description": "A softly glowing white stone rests on the floor.", 52 | "material": "gem", 53 | "item_type": "warp_stone", 54 | "extra_flags": "glow nolocate", 55 | "wear_flags": "take hold", 56 | "values": {}, 57 | "level": 0, 58 | "weight": 0, 59 | "cost": 500, 60 | "condition": 100, 61 | "extra_description": [{ 62 | "keyword": "moonstone moon stone white", 63 | "description": "Looking into the smooth surface of this moonstone, you feel strangely at \npeace and balance with the world around you.\n" 64 | }], 65 | "affects": [] 66 | }} 67 | ] 68 | -------------------------------------------------------------------------------- /json/areas/ofcol/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "ofcol", 3 | "filename": "ofcol.are", 4 | "title": "Ofcol", 5 | "credits": "{ All } Alfa Ofcol", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 5500, 9 | "max_vnum": 5599, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/ofcol2/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "ofcol2", 3 | "filename": "ofcol2.are", 4 | "title": "New Ofcol", 5 | "credits": "{ 5 35} Hatchet New Ofcol", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 600, 9 | "max_vnum": 699, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/olympus/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "olympus", 3 | "filename": "olympus.are", 4 | "title": "Olympus", 5 | "credits": "{ 5 50} Generic Olympus", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 900, 9 | "max_vnum": 999, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/plains/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "plains", 3 | "filename": "plains.are", 4 | "title": "Plains", 5 | "credits": "{ 1 20} Copper Plains of the North", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 300, 9 | "max_vnum": 399, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/pyramid/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "pyramid", 3 | "filename": "pyramid.are", 4 | "title": "Pyramid", 5 | "credits": "{ 5-50} Andersen The Great Pyramid", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 8700, 9 | "max_vnum": 8799, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/quifael/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "quifael", 3 | "filename": "quifael.are", 4 | "title": "Quifael's", 5 | "credits": "{31 35} Quifael Quifael's Area", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 6900, 9 | "max_vnum": 6999, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/redferne/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "redferne", 3 | "filename": "redferne.are", 4 | "title": "Redferne's", 5 | "credits": "{20 30} Diku Redferne's Residence", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 7900, 9 | "max_vnum": 7999, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/redferne/mobiles.json: -------------------------------------------------------------------------------- 1 | [{"mobile": { 2 | "area": "redferne", 3 | "anum": 0, 4 | "name": "grand knight paladin", 5 | "short_descr": "the Grand Knight of paladins", 6 | "long_descr": "The Grand Knight is standing here, waiting for someone to help.\n", 7 | "description": "The Knight is standing here, smiling at you. He is dressed all in\nwhite, blue and silver. He looks VERY strong, as he stands here, ready to\nhelp the innocent.\n", 8 | "race": "human", 9 | "material": "generic", 10 | "mob_flags": "stay_area cleric", 11 | "affected_by": "detect_invis sanctuary", 12 | "alignment": 1000, 13 | "group": 0, 14 | "level": 29, 15 | "hitroll": 0, 16 | "hit_dice": "6d12+778", 17 | "mana_dice": "29d9+100", 18 | "damage_dice": "5d4+8", 19 | "dam_type": "none", 20 | "ac": { 21 | "pierce": -90, 22 | "bash": -90, 23 | "slash": -90, 24 | "magic": 40 25 | }, 26 | "offense": "disarm kick parry assist_vnum", 27 | "immune": null, 28 | "resist": null, 29 | "vulnerable": null, 30 | "start_pos": "stand", 31 | "default_pos": "stand", 32 | "sex": "male", 33 | "wealth": 0, 34 | "form": "none", 35 | "parts": "none", 36 | "size": "medium", 37 | "shop": null 38 | }}] 39 | -------------------------------------------------------------------------------- /json/areas/redferne/objects.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"object": { 3 | "area": "redferne", 4 | "anum": 9, 5 | "new_format": true, 6 | "name": "treasure coins", 7 | "short_descr": "a huge treasure", 8 | "description": "A huge treasure is lying here, looking very valuable.", 9 | "material": "generic", 10 | "item_type": "money", 11 | "extra_flags": null, 12 | "wear_flags": "take", 13 | "values": { 14 | "silver": -100, 15 | "gold": 0 16 | }, 17 | "level": 0, 18 | "weight": 0, 19 | "cost": 0, 20 | "condition": 100, 21 | "extra_description": [ 22 | { 23 | "keyword": "writing letters", 24 | "description": "It reads: \"Hi Conan. No more coins from here, pal. :) Signed, Redferne\".\n" 25 | }, 26 | { 27 | "keyword": "treasure", 28 | "description": "Looks like a LOT of coins. One of them has writing on it.\n" 29 | } 30 | ], 31 | "affects": [] 32 | }}, 33 | {"object": { 34 | "area": "redferne", 35 | "anum": 10, 36 | "new_format": true, 37 | "name": "chest", 38 | "short_descr": "a wooden chest", 39 | "description": "A wooden chest stands in the corner.", 40 | "material": "generic", 41 | "item_type": "container", 42 | "extra_flags": null, 43 | "wear_flags": "take", 44 | "values": { 45 | "capacity": 100, 46 | "flags": "closeable pickproof closed locked", 47 | "key": 7911, 48 | "max_weight": 20, 49 | "weight_mult": 100 50 | }, 51 | "level": 0, 52 | "weight": 4000, 53 | "cost": 100, 54 | "condition": 100, 55 | "extra_description": [{ 56 | "keyword": "chest", 57 | "description": "It is a robust chest made from short, heavy planks that have been fastened\ntogether with tenons. It is equipped with a simple brass lock.\n" 58 | }], 59 | "affects": [] 60 | }}, 61 | {"object": { 62 | "area": "redferne", 63 | "anum": 11, 64 | "new_format": true, 65 | "name": "key", 66 | "short_descr": "a small brass key", 67 | "description": "A small brass key lies here.", 68 | "material": "generic", 69 | "item_type": "key", 70 | "extra_flags": null, 71 | "wear_flags": "take", 72 | "values": {}, 73 | "level": 0, 74 | "weight": 10, 75 | "cost": 0, 76 | "condition": 100, 77 | "extra_description": [{ 78 | "keyword": "key", 79 | "description": "It is a small, simple brass key with no inscriptions or marks of any kind.\n" 80 | }], 81 | "affects": [] 82 | }} 83 | ] 84 | -------------------------------------------------------------------------------- /json/areas/school/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "school", 3 | "filename": "school.are", 4 | "title": "mud school", 5 | "credits": "{ 1 5} Hatchet Mud School", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 3700, 9 | "max_vnum": 3799, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/sewer/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "sewer", 3 | "filename": "sewer.are", 4 | "title": "Sewers", 5 | "credits": "{ 5 30} Diku Sewer", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 7000, 9 | "max_vnum": 7499, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/shire/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "shire", 3 | "filename": "shire.are", 4 | "title": "Shire", 5 | "credits": "{ 5 35} Poohb The Shire", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 1100, 9 | "max_vnum": 1199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/smurf/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "smurf", 3 | "filename": "smurf.are", 4 | "title": "Smurfville", 5 | "credits": "{ 1 10} Generic Smurf Village", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 100, 9 | "max_vnum": 199, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/thalos/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "thalos", 3 | "filename": "thalos.are", 4 | "title": "Thalos", 5 | "credits": "{10 25} Drkside Thalos", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 5200, 9 | "max_vnum": 5299, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/tohell/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "tohell", 3 | "filename": "tohell.are", 4 | "title": "Hell", 5 | "credits": "{32 51} Strahd Descent to Hell", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 10400, 9 | "max_vnum": 10599, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/trollden/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "trollden", 3 | "filename": "trollden.are", 4 | "title": "Troll Den", 5 | "credits": "{10 15} Merc Troll Den", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 2800, 9 | "max_vnum": 2899, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/valley/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "valley", 3 | "filename": "valley.are", 4 | "title": "Valley of the Elves", 5 | "credits": "{ 5 20} Hatchet Valley of the Elves", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 7800, 9 | "max_vnum": 7899, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /json/areas/wyvern/area.json: -------------------------------------------------------------------------------- 1 | [{"area": { 2 | "name": "wyvern", 3 | "filename": "wyvern.are", 4 | "title": "Wyvern's Tower", 5 | "credits": "{ 5 30} Tyrst Wyvern's Tower", 6 | "low_range": 0, 7 | "high_range": 0, 8 | "min_vnum": 1600, 9 | "max_vnum": 1799, 10 | "builders": "None", 11 | "security": 9 12 | }}] 13 | -------------------------------------------------------------------------------- /log/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | -------------------------------------------------------------------------------- /notes/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/notes/.empty -------------------------------------------------------------------------------- /player/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/player/.empty -------------------------------------------------------------------------------- /player/Admin: -------------------------------------------------------------------------------- 1 | #PLAYER 2 | Name Admin~ 3 | Id 1565440615 4 | LogO 1572733738 5 | Vers 5 6 | Prom <%hhp %mm %vmv> ~ 7 | Race human~ 8 | Sex 1 9 | Cla 3 10 | Levl 60 11 | Sec 0 12 | Plyd 3400 13 | Scro 22 14 | Room 3525 15 | HMV 20 20 100 100 94 100 16 | Gold 0 17 | Silv 0 18 | Exp 1000 19 | Plr DQT 20 | Comm OP 21 | Pos 8 22 | Prac 5 23 | Trai 3 24 | Save -1 25 | Alig 0 26 | Hit 1 27 | ACs 95 95 95 99 28 | Attr 16 13 13 13 13 29 | AMod 0 0 0 0 0 30 | Pass AdS9O3DYbGQ/I~ 31 | Titl the Implementor~ 32 | Pnts 40 33 | TSex 1 34 | LLev 0 35 | HMVP 20 100 100 36 | Cnd 0 48 48 48 37 | Colour 0 1031 38 | Colour 1 1035 39 | Colour 2 1039 40 | Colour 3 1029 41 | Colour 4 1037 42 | Colour 5 1025 43 | Colour 6 1033 44 | Colour 7 1035 45 | Colour 8 1039 46 | Colour 9 1035 47 | Colour 10 1039 48 | Colour 11 1027 49 | Colour 12 1026 50 | Colour 13 1030 51 | Colour 14 1027 52 | Colour 15 1291 53 | Colour 16 1026 54 | Colour 17 1034 55 | Colour 18 1026 56 | Colour 19 1034 57 | Colour 20 1026 58 | Colour 21 1034 59 | Colour 22 1026 60 | Colour 23 1025 61 | Colour 24 1026 62 | Colour 25 1030 63 | Colour 26 1031 64 | Colour 27 1026 65 | Colour 28 1030 66 | Colour 29 1030 67 | Colour 30 1033 68 | Colour 31 1026 69 | Colour 32 1027 70 | Colour 33 1025 71 | Colour 34 1039 72 | Boards 5 General 0 Ideas 0 Announce 0 Bugs 0 Personal 0 73 | Sk 1 'axe' 74 | Sk 1 'dagger' 75 | Sk 1 'flail' 76 | Sk 1 'mace' 77 | Sk 1 'polearm' 78 | Sk 1 'shield block' 79 | Sk 1 'spear' 80 | Sk 40 'sword' 81 | Sk 1 'whip' 82 | Sk 1 'bash' 83 | Sk 1 'disarm' 84 | Sk 1 'enhanced damage' 85 | Sk 1 'parry' 86 | Sk 1 'rescue' 87 | Sk 1 'second attack' 88 | Sk 1 'third attack' 89 | Sk 1 'scrolls' 90 | Sk 1 'staves' 91 | Sk 1 'wands' 92 | Sk 50 'recall' 93 | Gr 'rom basics' 94 | Gr 'warrior basics' 95 | Gr 'warrior default' 96 | Gr 'weaponsmaster' 97 | End 98 | 99 | #O 100 | Vnum 3716 101 | Nest 0 102 | Cond 0 103 | Wear 0 104 | Cost 0 105 | End 106 | 107 | #O 108 | Vnum 3703 109 | Nest 0 110 | Cond 0 111 | Wear 5 112 | Cost 0 113 | End 114 | 115 | #O 116 | Vnum 3702 117 | Nest 0 118 | Cond 0 119 | Wear 16 120 | Cost 360 121 | End 122 | 123 | #O 124 | Vnum 3704 125 | Nest 0 126 | Cond 0 127 | Wear 11 128 | Cost 0 129 | End 130 | 131 | #O 132 | Vnum 3162 133 | Nest 0 134 | Cond 0 135 | Wear -1 136 | Cost 500 137 | End 138 | 139 | #END 140 | -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | bin/rom 3 | -------------------------------------------------------------------------------- /screenshots/2019-10-05_object-materials.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scandum/basedmud/6da512b46a95367859d2febf75ac6cdcd99fed7c/screenshots/2019-10-05_object-materials.png -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | PROF = -g -O 3 | NOCRYPT = 4 | C_FLAGS = -Wall $(PROF) $(NOCRYPT) 5 | L_FLAGS = $(PROF) 6 | LIBS = -lcrypt -lz 7 | EXE = ../bin/rom 8 | 9 | O_FILES = \ 10 | act_board.o act_comm.o act_conf.o act_fight.o act_group.o act_info.o \ 11 | act_move.o act_obj.o act_olc.o act_player.o act_shop.o act_skills.o \ 12 | affects.o ban.o board.o boot.o chars.o colour.o comm.o db_old.o db.o descs.o do_sub.o \ 13 | effects.o fight.o find.o flags.o groups.o interp.o json.o json_obj.o \ 14 | json_tbl.o lookup.o magic.o materials.o mob_cmds.o mob_prog.o music.o nanny.o \ 15 | objs.o olc.o olc_aedit.o olc_hedit.o olc_medit.o olc_mpedit.o olc_oedit.o \ 16 | olc_redit.o olc_save.o portals.o recycle.o rooms.o save.o signal.o \ 17 | skills.o special.o spell_aff.o spell_create.o spell_cure.o spell_info.o \ 18 | spell_misc.o spell_move.o spell_npc.o spell_off.o string.o tables.o \ 19 | types.o update.o utils.o wiz_im.o wiz_l1.o wiz_l2.o wiz_l3.o wiz_l4.o \ 20 | wiz_l5.o wiz_l6.o wiz_l7.o wiz_l8.o wiz_ml.o \ 21 | mth.o telopt.o msdp.o color.o 22 | 23 | rom: $(O_FILES) 24 | $(CC) $(L_FLAGS) -o $(EXE) $(O_FILES) $(LIBS) 25 | 26 | $(O_FILES): merc.h 27 | .c.o: 28 | $(CC) -c $(C_FLAGS) $< 29 | 30 | clean: 31 | rm -f ${O_FILES} 32 | -------------------------------------------------------------------------------- /src/Makefile.normal: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | PROF = -O -g 3 | NOCRYPT = 4 | C_FLAGS = -Wall $(PROF) $(NOCRYPT) 5 | L_FLAGS = $(PROF) 6 | 7 | O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \ 8 | alias.o ban.o board.o comm.o const.o db.o db2.o effects.o fight.o flags.o \ 9 | handler.o healer.o interp.o nanny.o lookup.o magic.o magic2.o \ 10 | music.o recycle.o save.o scan.o skills.o special.o tables.o \ 11 | update.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \ 12 | mem.o string.o olc_mpcode.o hedit.o 13 | 14 | rom: $(O_FILES) 15 | rm -f rom 16 | $(CC) $(L_FLAGS) -o rom $(O_FILES) 17 | 18 | .c.o: merc.h 19 | $(CC) -c $(C_FLAGS) $< 20 | -------------------------------------------------------------------------------- /src/Makefile.solaris: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | PROF = -O -g 3 | NOCRYPT = 4 | C_FLAGS = -Wall $(PROF) $(NOCRYPT) 5 | L_FLAGS = $(PROF) 6 | LIBS = -lsocket -lresolv -lnsl 7 | 8 | O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \ 9 | alias.o ban.o board.o comm.o const.o db.o db2.o effects.o fight.o flags.o \ 10 | handler.o healer.o interp.o nanny.o lookup.o magic.o magic2.o \ 11 | music.o recycle.o save.o scan.o skills.o special.o tables.o \ 12 | update.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \ 13 | mem.o string.o olc_mpcode.o hedit.o 14 | 15 | rom: $(O_FILES) 16 | rm -f rom 17 | $(CC) $(L_FLAGS) -o rom $(O_FILES) $(LIBS) 18 | 19 | .c.o: merc.h 20 | $(CC) -c $(C_FLAGS) $< 21 | -------------------------------------------------------------------------------- /src/TODO_edit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | files=$(grep -l "TODO" *.c *.h) 3 | vim TODO.txt $files 4 | -------------------------------------------------------------------------------- /src/act_board.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_BOARD_H 29 | #define __ROM_ACT_BOARD_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | void do_nread_next (CHAR_DATA *ch, char *argument, time_t *last_note); 35 | void do_nread_number (CHAR_DATA *ch, char *argument, time_t *last_note, 36 | int number); 37 | 38 | /* Commands. */ 39 | DECLARE_DO_FUN (do_nwrite); 40 | DECLARE_DO_FUN (do_nread); 41 | DECLARE_DO_FUN (do_nremove); 42 | DECLARE_DO_FUN (do_nlist); 43 | DECLARE_DO_FUN (do_ncatchup); 44 | DECLARE_DO_FUN (do_note); 45 | DECLARE_DO_FUN (do_board); 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /src/act_conf.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_CONF_H 29 | #define __ROM_ACT_CONF_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | void do_colour_one (CHAR_DATA * ch, const COLOUR_SETTING_TYPE * setting, 35 | const COLOUR_TYPE * colour, bool use_default, char *buf); 36 | void do_colour_codes (CHAR_DATA * ch, char *argument); 37 | 38 | /* Commands. */ 39 | DECLARE_DO_FUN (do_scroll); 40 | DECLARE_DO_FUN (do_colour); 41 | DECLARE_DO_FUN (do_autolist); 42 | DECLARE_DO_FUN (do_autoassist); 43 | DECLARE_DO_FUN (do_autoexit); 44 | DECLARE_DO_FUN (do_autogold); 45 | DECLARE_DO_FUN (do_autoloot); 46 | DECLARE_DO_FUN (do_autosac); 47 | DECLARE_DO_FUN (do_autosplit); 48 | DECLARE_DO_FUN (do_noloot); 49 | DECLARE_DO_FUN (do_nofollow); 50 | DECLARE_DO_FUN (do_telnetga); 51 | DECLARE_DO_FUN (do_brief); 52 | DECLARE_DO_FUN (do_compact); 53 | DECLARE_DO_FUN (do_show_affects); 54 | DECLARE_DO_FUN (do_combine); 55 | DECLARE_DO_FUN (do_materials); 56 | DECLARE_DO_FUN (do_nosummon); 57 | DECLARE_DO_FUN (do_autoall); 58 | DECLARE_DO_FUN (do_prompt); 59 | DECLARE_DO_FUN (do_alia); 60 | DECLARE_DO_FUN (do_alias); 61 | DECLARE_DO_FUN (do_unalias); 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /src/act_fight.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_FIGHT_H 29 | #define __ROM_ACT_FIGHT_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | bool fight_filter_skill_target (CHAR_DATA *ch, const char *argument, 35 | int sn, flag_t npc_flag, const char *cant_msg, const char *self_msg, 36 | int *out_chance, CHAR_DATA **out_victim); 37 | 38 | /* Commands. */ 39 | DECLARE_DO_FUN (do_berserk); 40 | DECLARE_DO_FUN (do_bash); 41 | DECLARE_DO_FUN (do_dirt); 42 | DECLARE_DO_FUN (do_trip); 43 | DECLARE_DO_FUN (do_kick); 44 | DECLARE_DO_FUN (do_kill); 45 | DECLARE_DO_FUN (do_murde); 46 | DECLARE_DO_FUN (do_murder); 47 | DECLARE_DO_FUN (do_backstab); 48 | DECLARE_DO_FUN (do_flee); 49 | DECLARE_DO_FUN (do_rescue); 50 | DECLARE_DO_FUN (do_disarm); 51 | DECLARE_DO_FUN (do_surrender); 52 | DECLARE_DO_FUN (do_disengage); 53 | DECLARE_DO_FUN (do_wimpy); 54 | DECLARE_DO_FUN (do_consider); 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /src/act_group.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_GROUP_H 29 | #define __ROM_ACT_GROUP_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | void do_group_show (CHAR_DATA *ch); 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_order_all); 38 | DECLARE_DO_FUN (do_order); 39 | DECLARE_DO_FUN (do_group); 40 | DECLARE_DO_FUN (do_split); 41 | DECLARE_DO_FUN (do_gtell); 42 | DECLARE_DO_FUN (do_follow); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /src/act_olc.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: act_olc.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_ACT_OLC_H 15 | #define __ROM_ACT_OLC_H 16 | 17 | #include "merc.h" 18 | 19 | /* Sub-routines and filters. */ 20 | void do_resets_display (CHAR_DATA * ch); 21 | 22 | /* Commands. */ 23 | DECLARE_DO_FUN (do_olc); 24 | DECLARE_DO_FUN (do_aedit); 25 | DECLARE_DO_FUN (do_hedit); 26 | DECLARE_DO_FUN (do_medit); 27 | DECLARE_DO_FUN (do_mpedit); 28 | DECLARE_DO_FUN (do_oedit); 29 | DECLARE_DO_FUN (do_redit); 30 | DECLARE_DO_FUN (do_resets); 31 | DECLARE_DO_FUN (do_alist); 32 | DECLARE_DO_FUN (do_asave); 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /src/act_player.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_PLAYER_H 29 | #define __ROM_ACT_PLAYER_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_delet); 38 | DECLARE_DO_FUN (do_delete); 39 | DECLARE_DO_FUN (do_rent); 40 | DECLARE_DO_FUN (do_qui); 41 | DECLARE_DO_FUN (do_quit); 42 | DECLARE_DO_FUN (do_save); 43 | DECLARE_DO_FUN (do_password); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /src/act_shop.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_SHOP_H 29 | #define __ROM_ACT_SHOP_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | bool do_filter_get_keeper (CHAR_DATA *ch, CHAR_DATA **out_keeper); 35 | void do_buy_pet (CHAR_DATA *ch, char *argument); 36 | void do_buy_item (CHAR_DATA *ch, char *argument); 37 | void do_list_pets (CHAR_DATA *ch, char *argument); 38 | void do_list_items (CHAR_DATA *ch, char *argument); 39 | 40 | /* Commands. */ 41 | DECLARE_DO_FUN (do_buy); 42 | DECLARE_DO_FUN (do_list); 43 | DECLARE_DO_FUN (do_sell); 44 | DECLARE_DO_FUN (do_value); 45 | DECLARE_DO_FUN (do_heal); 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /src/act_skills.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ACT_SKILLS_H 29 | #define __ROM_ACT_SKILLS_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | void do_skills_or_spells (CHAR_DATA * ch, char *argument, int spells); 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_gain); 38 | DECLARE_DO_FUN (do_skills); 39 | DECLARE_DO_FUN (do_spells); 40 | DECLARE_DO_FUN (do_abilities); 41 | DECLARE_DO_FUN (do_groups); 42 | DECLARE_DO_FUN (do_train); 43 | DECLARE_DO_FUN (do_practice); 44 | DECLARE_DO_FUN (do_cast); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /src/ban.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_BAN_H 29 | #define __ROM_BAN_H 30 | 31 | #include "merc.h" 32 | 33 | /* Function prototypes. */ 34 | void save_bans (void); 35 | void load_bans (void); 36 | bool check_ban (char *site, int type); 37 | void ban_site (CHAR_DATA * ch, char *argument, bool fPerm); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/basemud.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_BASEMUD_H 29 | #define __ROM_BASEMUD_H 30 | 31 | #define VERSION "0.0.4" 32 | 33 | /* Disables are optional features in BaseMUD. */ 34 | #define VANILLA 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /src/boot.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_BOOT_H 29 | #define __ROM_BOOT_H 30 | 31 | #include "boot.h" 32 | 33 | /* Platform-specific function prototypes. */ 34 | #if defined(macintosh) || defined(MSDOS) 35 | void game_loop_mac_msdos (void); 36 | #endif 37 | 38 | #if defined(unix) 39 | void game_loop_unix (int control); 40 | #endif 41 | 42 | /* Function prototypes. */ 43 | void copyover_recover (void); 44 | void qmconfig_read (void); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /src/db_old.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_DB_OLD_H 29 | #define __ROM_DB_OLD_H 30 | 31 | #include "merc.h" 32 | 33 | /* Function prototypes. */ 34 | void load_old_mob (FILE * fp); 35 | void load_old_obj (FILE * fp); 36 | int convert_object_reset (RESET_DATA *pReset); 37 | void convert_objects (void); 38 | void convert_object (OBJ_INDEX_DATA * pObjIndex); 39 | void convert_mobile (MOB_INDEX_DATA * pMobIndex); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/do_sub.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_DO_SUB_H 29 | #define __ROM_DO_SUB_H 30 | 31 | #include "merc.h" 32 | 33 | void do_autolist_flag (char *name, CHAR_DATA * ch, flag_t flags, flag_t flag); 34 | void do_flag_toggle (CHAR_DATA * ch, int player_only, flag_t *flags, 35 | flag_t flag, char *off_msg, char *on_msg); 36 | bool do_comm_toggle_channel_if_blank (CHAR_DATA *ch, char *argument, 37 | flag_t channel, char *message_on, char *message_off); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/effects.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_EFFECTS_H 29 | #define __ROM_EFFECTS_H 30 | 31 | /* Function prototypes. */ 32 | void acid_effect (void *vo, int level, int dam, int target); 33 | void cold_effect (void *vo, int level, int dam, int target); 34 | void fire_effect (void *vo, int level, int dam, int target); 35 | void poison_effect (void *vo, int level, int dam, int target); 36 | void shock_effect (void *vo, int level, int dam, int target); 37 | void empty_effect (void *vo, int level, int dam, int target); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/groups.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_GROUPS_H 29 | #define __ROM_GROUPS_H 30 | 31 | #include "merc.h" 32 | 33 | /* Function prototypes. */ 34 | bool is_same_group (CHAR_DATA *ach, CHAR_DATA *bch); 35 | void add_follower (CHAR_DATA *ch, CHAR_DATA *master); 36 | void stop_follower (CHAR_DATA *ch); 37 | void nuke_pets (CHAR_DATA *ch); 38 | void die_follower (CHAR_DATA *ch); 39 | bool is_same_group (CHAR_DATA *ach, CHAR_DATA *bch); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/interp.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ****************************************************************************/ 27 | 28 | #ifndef __ROM_INTERP_H 29 | #define __ROM_INTERP_H 30 | 31 | #include "merc.h" 32 | 33 | /* Structure for a command in the command lookup table. */ 34 | struct cmd_type { 35 | char *const name; 36 | DO_FUN *do_fun; 37 | sh_int position; 38 | sh_int level; 39 | sh_int log; 40 | sh_int show; 41 | }; 42 | 43 | /* Globals. */ 44 | extern const struct cmd_type cmd_table[]; 45 | extern bool fLogAll; 46 | 47 | /* Function prototpyes. */ 48 | void interpret (CHAR_DATA *ch, char *argument); 49 | void do_function (CHAR_DATA *ch, DO_FUN *do_fun, char *argument); 50 | bool check_social (CHAR_DATA *ch, char *command, char *argument); 51 | bool is_number (char *arg); 52 | int number_argument (char *argument, char *arg); 53 | int mult_argument (char *argument, char *arg); 54 | char *one_argument (const char *argument, char *arg_first); 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /src/json_tbl.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_JSON_TBL_H 29 | #define __ROM_JSON_TBL_H 30 | 31 | #include "merc.h" 32 | 33 | #include "json.h" 34 | 35 | /* dead-simple functions for creating JSON objects. */ 36 | TABLE_JSON_FUN (json_tblw_flag); 37 | TABLE_JSON_FUN (json_tblw_clan); 38 | TABLE_JSON_FUN (json_tblw_sex); 39 | TABLE_JSON_FUN (json_tblw_position); 40 | TABLE_JSON_FUN (json_tblw_size); 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /src/materials.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #include 29 | 30 | #include "materials.h" 31 | 32 | char *material_format_part (const MATERIAL_TYPE *mat) { 33 | #ifndef VANILLA 34 | static char buf[MAX_STRING_LENGTH]; 35 | if (mat == NULL || mat->type == MATERIAL_GENERIC) 36 | return ""; 37 | else { 38 | sprintf (buf, "[{%c%s{x] ", mat->color, mat->name); 39 | return buf; 40 | } 41 | #else 42 | return ""; 43 | #endif 44 | } 45 | 46 | char *material_strcat (char *buf, const MATERIAL_TYPE *mat) { 47 | return strcat (buf, material_format_part (mat)); 48 | } 49 | -------------------------------------------------------------------------------- /src/materials.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_MATERIALS_H 29 | #define __ROM_MATERIALS_H 30 | 31 | #include "merc.h" 32 | 33 | /* Function prototypes. */ 34 | char *material_format_part (const MATERIAL_TYPE *mat); 35 | char *material_strcat (char *buf, const MATERIAL_TYPE *mat); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /src/merc.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_MERC_H 29 | #define __ROM_MERC_H 30 | 31 | #include 32 | 33 | #include "basemud.h" 34 | #include "compat.h" 35 | #include "defs.h" 36 | #include "macros.h" 37 | #include "json.h" 38 | #include "structs.h" 39 | #include "types.h" 40 | #include "flags.h" 41 | #include "tables.h" 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /src/mud.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | /* 12 | Utility macros. 13 | */ 14 | 15 | #define HAS_BIT(var, bit) ((var) & (bit)) 16 | #define SET_BIT(var, bit) ((var) |= (bit)) 17 | #define DEL_BIT(var, bit) ((var) &= (~(bit))) 18 | #define TOG_BIT(var, bit) ((var) ^= (bit)) 19 | 20 | /* 21 | Update these to use whatever your MUD uses 22 | */ 23 | 24 | #define RESTRING(point, value) \ 25 | { \ 26 | STRFREE(point); \ 27 | point = strdup(value); \ 28 | } 29 | 30 | #define STRALLOC(point) \ 31 | { \ 32 | point = strdup(value); \ 33 | } 34 | 35 | #define STRFREE(point) \ 36 | { \ 37 | free(point); \ 38 | point = NULL; \ 39 | } 40 | 41 | /* 42 | Typedefs 43 | */ 44 | typedef struct mth_data MTH_DATA; 45 | typedef struct mud_data MUD_DATA; 46 | typedef struct descriptor_data DESCRIPTOR_DATA; 47 | 48 | //#define MUD_PORT 4321 49 | //#define MAX_SKILL 269 50 | //#define MAX_CLASS 8 51 | //#define MAX_RACE 16 52 | //#define MAX_LEVEL 99 53 | 54 | #define MAX_INPUT_LENGTH 2000 55 | #define MAX_STRING_LENGTH 12000 // Must be at least 6 times larger than max input length. 56 | #define COMPRESS_BUF_SIZE 10000 57 | 58 | #define FALSE 0 59 | #define TRUE 1 60 | 61 | /* 62 | Descriptor (channel) 63 | */ 64 | /* Descriptor (channel) structure. */ 65 | struct descriptor_data { 66 | DESCRIPTOR_DATA *next; 67 | DESCRIPTOR_DATA *snoop_by; 68 | void *character; 69 | void *original; 70 | MTH_DATA *mth; // MTH 1.5 71 | int ansi; 72 | char *host; 73 | short descriptor; 74 | short connected; 75 | int fcommand; 76 | char inbuf[MAX_INPUT_LENGTH]; 77 | char incomm[MAX_INPUT_LENGTH]; 78 | char inlast[MAX_INPUT_LENGTH]; 79 | int repeat; 80 | char *outbuf; 81 | int outsize; 82 | int outtop; 83 | char *showstr_head; 84 | char *showstr_point; 85 | int lines_written; /* for the pager */ 86 | void *pEdit; /* OLC */ 87 | char **pString; /* OLC */ 88 | int editor; /* OLC */ 89 | }; 90 | 91 | /* 92 | mud.c 93 | */ 94 | 95 | void log_printf(char *fmt, ...); 96 | void log_descriptor_printf(DESCRIPTOR_DATA *d, char *fmt, ...); 97 | void descriptor_printf ( DESCRIPTOR_DATA *d, char *fmt, ...); 98 | 99 | //int write_to_descriptor(DESCRIPTOR_DATA *d, char *txt, int length); 100 | int write_to_descriptor (int desc, char *txt, int length); 101 | 102 | char * capitalize_all(char *str); 103 | -------------------------------------------------------------------------------- /src/music.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_MUSIC_H 29 | #define __ROM_MUSIC_H 30 | 31 | #include "merc.h" 32 | 33 | #define MAX_SONGS 20 34 | #define MAX_LINES 100 /* this boils down to about 1k per song */ 35 | #define MAX_GLOBAL 10 /* max songs the global jukebox can hold */ 36 | 37 | struct song_data { 38 | char *group; 39 | char *name; 40 | char *lyrics[MAX_LINES]; 41 | int lines; 42 | }; 43 | 44 | extern int channel_songs[MAX_GLOBAL + 1]; 45 | extern struct song_data song_table[MAX_SONGS]; 46 | 47 | /* Function prototypes. */ 48 | void song_update (void); 49 | void load_songs (void); 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /src/nanny.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Thanks to abaddon for proof-reading our comm.c and pointing out bugs. * 14 | * Any remaining bugs are, of course, our work, not his. :) * 15 | * * 16 | * Much time and thought has gone into this software and you are * 17 | * benefitting. We hope that you share your changes too. What goes * 18 | * around, comes around. * 19 | ***************************************************************************/ 20 | 21 | /*************************************************************************** 22 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 23 | * ROM has been brought to you by the ROM consortium * 24 | * Russ Taylor (rtaylor@hypercube.org) * 25 | * Gabrielle Taylor (gtaylor@hypercube.org) * 26 | * Brian Moore (zump@rom.org) * 27 | * By using this code, you have agreed to follow the terms of the * 28 | * ROM license, in the file Rom24/doc/rom.license * 29 | ****************************************************************************/ 30 | 31 | #ifndef __ROM_NANNY_H 32 | #define __ROM_NANNY_H 33 | 34 | #include "merc.h" 35 | 36 | /* Function prototypes. */ 37 | bool new_player_name_is_valid (char *name); 38 | void nanny (DESCRIPTOR_DATA * d, char *argument); 39 | 40 | NANNY_FUN nanny_ansi; 41 | NANNY_FUN nanny_get_player_name; 42 | NANNY_FUN nanny_get_old_password; 43 | NANNY_FUN nanny_break_connect; 44 | NANNY_FUN nanny_break_connect_confirm; 45 | NANNY_FUN nanny_confirm_new_name; 46 | NANNY_FUN nanny_get_new_password; 47 | NANNY_FUN nanny_confirm_new_password; 48 | NANNY_FUN nanny_get_new_race; 49 | NANNY_FUN nanny_get_new_sex; 50 | NANNY_FUN nanny_get_new_class; 51 | NANNY_FUN nanny_get_alignment; 52 | NANNY_FUN nanny_default_choice; 53 | NANNY_FUN nanny_pick_weapon; 54 | NANNY_FUN nanny_gen_groups; 55 | NANNY_FUN nanny_gen_groups_done; 56 | NANNY_FUN nanny_read_imotd; 57 | NANNY_FUN nanny_read_motd; 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /src/olc_aedit.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_aedit.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_AEDIT_H 15 | #define __ROM_OLC_AEDIT_H 16 | 17 | #include "merc.h" 18 | 19 | #define AEDIT(fun) bool fun(CHAR_DATA *ch, char *argument) 20 | #define EDIT_AREA(Ch, Area) (Area = (AREA_DATA *) Ch->desc->pEdit) 21 | 22 | /* Sub-routines and filters. */ 23 | bool aedit_check_range (int lower, int upper); 24 | 25 | /* Commands (areas). */ 26 | AEDIT (aedit_show); 27 | AEDIT (aedit_reset); 28 | AEDIT (aedit_create); 29 | AEDIT (aedit_title); 30 | AEDIT (aedit_credits); 31 | AEDIT (aedit_file); 32 | AEDIT (aedit_age); 33 | /* AEDIT (aedit_recall); */ 34 | AEDIT (aedit_security); 35 | AEDIT (aedit_builder); 36 | AEDIT (aedit_vnum); 37 | AEDIT (aedit_lvnum); 38 | AEDIT (aedit_uvnum); 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /src/olc_hedit.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_hedit.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_HEDIT_H 15 | #define __ROM_OLC_HEDIT_H 16 | 17 | #include "merc.h" 18 | 19 | #define HEDIT(fun) bool fun(CHAR_DATA *ch, char *argument) 20 | #define EDIT_HELP(ch, help) (help = (HELP_DATA *) ch->desc->pEdit) 21 | 22 | /* Commands (help). */ 23 | HEDIT (hedit_show); 24 | HEDIT (hedit_level); 25 | HEDIT (hedit_keyword); 26 | HEDIT (hedit_new); 27 | HEDIT (hedit_text); 28 | HEDIT (hedit_delete); 29 | HEDIT (hedit_list); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/olc_medit.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_medit.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_MEDIT_H 15 | #define __ROM_OLC_MEDIT_H 16 | 17 | #include "merc.h" 18 | 19 | #define MEDIT(fun) bool fun(CHAR_DATA *ch, char *argument) 20 | #define EDIT_MOB(Ch, Mob) (Mob = (MOB_INDEX_DATA *) Ch->desc->pEdit) 21 | 22 | /* Commands (mobiles). */ 23 | MEDIT (medit_show); 24 | MEDIT (medit_create); 25 | MEDIT (medit_spec); 26 | MEDIT (medit_damtype); 27 | MEDIT (medit_align); 28 | MEDIT (medit_level); 29 | MEDIT (medit_desc); 30 | MEDIT (medit_long); 31 | MEDIT (medit_short); 32 | MEDIT (medit_name); 33 | MEDIT (medit_shop); 34 | MEDIT (medit_sex); 35 | MEDIT (medit_act); 36 | MEDIT (medit_affect); 37 | MEDIT (medit_ac); 38 | MEDIT (medit_form); 39 | MEDIT (medit_part); 40 | MEDIT (medit_imm); 41 | MEDIT (medit_res); 42 | MEDIT (medit_vuln); 43 | MEDIT (medit_material); 44 | MEDIT (medit_off); 45 | MEDIT (medit_size); 46 | MEDIT (medit_hitdice); 47 | MEDIT (medit_manadice); 48 | MEDIT (medit_damdice); 49 | MEDIT (medit_race); 50 | MEDIT (medit_position); 51 | MEDIT (medit_gold); 52 | MEDIT (medit_hitroll); 53 | MEDIT (medit_group); 54 | MEDIT (medit_addmprog); 55 | MEDIT (medit_delmprog); 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /src/olc_mpedit.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_mpedit.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_MPEDIT_H 15 | #define __ROM_OLC_MPEDIT_H 16 | 17 | #include "merc.h" 18 | 19 | #define MPEDIT(fun) bool fun(CHAR_DATA *ch, char *argument) 20 | #define EDIT_MPCODE(Ch, Code) (Code = (MPROG_CODE*) Ch->desc->pEdit) 21 | 22 | /* Commands (mobile programs). */ 23 | MPEDIT (mpedit_create); 24 | MPEDIT (mpedit_show); 25 | MPEDIT (mpedit_code); 26 | MPEDIT (mpedit_list); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/olc_oedit.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_oedit.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_OEDIT_H 15 | #define __ROM_OLC_OEDIT_H 16 | 17 | #include "merc.h" 18 | 19 | #define OEDIT(fun) bool fun(CHAR_DATA *ch, char *argument) 20 | #define EDIT_OBJ(Ch, Obj) (Obj = (OBJ_INDEX_DATA *) Ch->desc->pEdit) 21 | 22 | #define ALT_FLAGVALUE_SET(_blargh, _table, _arg) { \ 23 | int blah = flag_value( _table, _arg ); \ 24 | _blargh = (blah == NO_FLAG) ? 0 : blah; \ 25 | } 26 | 27 | #define ALT_FLAGVALUE_TOGGLE(_blargh, _table, _arg) { \ 28 | int blah = flag_value( _table, _arg ); \ 29 | _blargh ^= (blah == NO_FLAG) ? 0 : blah; \ 30 | } 31 | 32 | /* Sub-routines and filters. */ 33 | void oedit_show_obj_values (CHAR_DATA * ch, OBJ_INDEX_DATA * obj); 34 | bool oedit_set_obj_values (CHAR_DATA * ch, OBJ_INDEX_DATA * pObj, 35 | int value_num, char *argument); 36 | bool oedit_set_value (CHAR_DATA * ch, OBJ_INDEX_DATA * pObj, char *argument, 37 | int value); 38 | bool oedit_values (CHAR_DATA * ch, char *argument, int value); 39 | 40 | /* Commands (objects). */ 41 | OEDIT (oedit_show); 42 | OEDIT (oedit_addaffect); 43 | OEDIT (oedit_addapply); 44 | OEDIT (oedit_delaffect); 45 | OEDIT (oedit_name); 46 | OEDIT (oedit_short); 47 | OEDIT (oedit_long); 48 | OEDIT (oedit_value0); 49 | OEDIT (oedit_value1); 50 | OEDIT (oedit_value2); 51 | OEDIT (oedit_value3); 52 | OEDIT (oedit_value4); 53 | OEDIT (oedit_weight); 54 | OEDIT (oedit_cost); 55 | OEDIT (oedit_create); 56 | OEDIT (oedit_ed); 57 | OEDIT (oedit_extra); 58 | OEDIT (oedit_wear); 59 | OEDIT (oedit_type); 60 | OEDIT (oedit_material); 61 | OEDIT (oedit_level); 62 | OEDIT (oedit_condition); 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /src/olc_redit.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_redit.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_REDIT_H 15 | #define __ROM_OLC_REDIT_H 16 | 17 | #include "merc.h" 18 | 19 | #define REDIT(fun) bool fun(CHAR_DATA *ch, char *argument) 20 | #define EDIT_ROOM(Ch, Room) (Room = Ch->in_room) 21 | 22 | /* Sub-routines and filters. */ 23 | void redit_add_reset (ROOM_INDEX_DATA * room, RESET_DATA * pReset, int index); 24 | bool redit_change_exit (CHAR_DATA * ch, char *argument, int door); 25 | 26 | /* Commands (rooms). */ 27 | REDIT (redit_rlist); 28 | REDIT (redit_mlist); 29 | REDIT (redit_olist); 30 | REDIT (redit_mshow); 31 | REDIT (redit_oshow); 32 | REDIT (redit_show); 33 | REDIT (redit_north); 34 | REDIT (redit_south); 35 | REDIT (redit_east); 36 | REDIT (redit_west); 37 | REDIT (redit_up); 38 | REDIT (redit_down); 39 | REDIT (redit_ed); 40 | REDIT (redit_create); 41 | REDIT (redit_name); 42 | REDIT (redit_desc); 43 | REDIT (redit_heal); 44 | REDIT (redit_mana); 45 | REDIT (redit_clan); 46 | REDIT (redit_format); 47 | REDIT (redit_mreset); 48 | REDIT (redit_oreset); 49 | REDIT (redit_owner); 50 | REDIT (redit_room); 51 | REDIT (redit_sector); 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /src/olc_save.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: olc_save.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_OLC_SAVE_H 15 | #define __ROM_OLC_SAVE_H 16 | 17 | #include "merc.h" 18 | 19 | #define DIF(a,b) (~((~a)|(b))) 20 | 21 | /* Function prototypes. */ 22 | char *fix_string (const char *str); 23 | void save_area_list (); 24 | char *fwrite_flag (long flags, char buf[]); 25 | void save_mobprogs (FILE * fp, AREA_DATA * pArea); 26 | void save_mobile (FILE * fp, MOB_INDEX_DATA * pMobIndex); 27 | void save_mobiles (FILE * fp, AREA_DATA * pArea); 28 | void save_object (FILE * fp, OBJ_INDEX_DATA * pObjIndex); 29 | void save_objects (FILE * fp, AREA_DATA * pArea); 30 | void save_room (FILE * fp, ROOM_INDEX_DATA * pRoomIndex); 31 | void save_rooms (FILE * fp, AREA_DATA * pArea); 32 | void save_specials (FILE * fp, AREA_DATA * pArea); 33 | void save_door_resets (FILE * fp, AREA_DATA * pArea); 34 | void save_resets (FILE * fp, AREA_DATA * pArea); 35 | void save_shops (FILE * fp, AREA_DATA * pArea); 36 | void save_helps (FILE * fp, HELP_AREA * ha); 37 | int save_other_helps (CHAR_DATA * ch); 38 | void save_area (AREA_DATA * pArea); 39 | char *fix_string (const char *str); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/portals.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_PORTALS_H 29 | #define __ROM_PORTALS_H 30 | 31 | #include "merc.h" 32 | 33 | /* Function prototypes. */ 34 | PORTAL_EXIT_TYPE *portal_exit_new_from_room (ROOM_INDEX_DATA *room, int dir); 35 | void portal_assign (PORTAL_TYPE *portal, PORTAL_EXIT_TYPE *pex_from, 36 | PORTAL_EXIT_TYPE *pex_to); 37 | bool portal_link_opposites (PORTAL_TYPE *portal); 38 | void portal_create_missing (void); 39 | void portal_shuffle_all (void); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/rooms.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_ROOMS_H 29 | #define __ROM_ROOMS_H 30 | 31 | #include "merc.h" 32 | 33 | /* Room functions. */ 34 | bool room_is_dark (ROOM_INDEX_DATA * pRoomIndex); 35 | bool room_is_private (ROOM_INDEX_DATA * pRoomIndex); 36 | char room_colour_char (ROOM_INDEX_DATA * room); 37 | void room_add_money (ROOM_INDEX_DATA *room, int gold, int silver); 38 | bool room_is_owner (ROOM_INDEX_DATA *room, CHAR_DATA *ch); 39 | EXIT_DATA *room_get_opposite_exit (ROOM_INDEX_DATA *from_room, int dir, 40 | ROOM_INDEX_DATA **out_room); 41 | 42 | /* Utilities. */ 43 | char *door_keyword_to_name (const char *keyword, char *out_buf, size_t size); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /src/save.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SAVE_H 29 | #define __ROM_SAVE_H 30 | 31 | #include "merc.h" 32 | 33 | /* Function prototypes. */ 34 | char *print_flags (flag_t flags); 35 | void save_char_obj (CHAR_DATA * ch); 36 | void fwrite_char (CHAR_DATA * ch, FILE * fp); 37 | void fwrite_pet (CHAR_DATA * pet, FILE * fp); 38 | void fwrite_obj (CHAR_DATA * ch, OBJ_DATA * obj, FILE * fp, int iNest); 39 | bool load_char_obj (DESCRIPTOR_DATA * d, char *name); 40 | void load_old_colour (CHAR_DATA * ch, FILE * fp, char *name); 41 | void fread_char (CHAR_DATA * ch, FILE * fp); 42 | void fread_pet (CHAR_DATA * ch, FILE * fp); 43 | void fread_obj (CHAR_DATA * ch, FILE * fp); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /src/sha256.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright 2005 Colin Percival 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 | * SUCH DAMAGE. 25 | * 26 | * $FreeBSD: src/lib/libmd/sha256.h,v 1.1 2005/03/09 19:23:04 cperciva Exp $ 27 | */ 28 | 29 | #ifndef __ROM_SHA256_H 30 | #define __ROM_SHA256_H 31 | 32 | #include 33 | 34 | typedef struct sha256_context { 35 | int state[8]; 36 | int count[2]; 37 | unsigned char buf[64]; 38 | } sha256_ctx; 39 | 40 | void sha256_init (sha256_ctx *); 41 | void sha256_update (sha256_ctx *, const unsigned char *, size_t); 42 | void sha256_final (unsigned char [32], sha256_ctx *); 43 | char *sha256_end (sha256_ctx *, char *); 44 | char *sha256_file (const char *, char *); 45 | char *sha256_file_chunk (const char *, char *, off_t, off_t); 46 | char *sha256_data (const unsigned char *, unsigned int, char *); 47 | char *sha256_crypt (const char *pwd); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /src/signal.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Thanks to abaddon for proof-reading our comm.c and pointing out bugs. * 14 | * Any remaining bugs are, of course, our work, not his. :) * 15 | * * 16 | * Much time and thought has gone into this software and you are * 17 | * benefitting. We hope that you share your changes too. What goes * 18 | * around, comes around. * 19 | ***************************************************************************/ 20 | 21 | /*************************************************************************** 22 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 23 | * ROM has been brought to you by the ROM consortium * 24 | * Russ Taylor (rtaylor@hypercube.org) * 25 | * Gabrielle Taylor (gtaylor@hypercube.org) * 26 | * Brian Moore (zump@rom.org) * 27 | * By using this code, you have agreed to follow the terms of the * 28 | * ROM license, in the file Rom24/doc/rom.license * 29 | ****************************************************************************/ 30 | 31 | #include 32 | #include 33 | 34 | #include "signal.h" 35 | 36 | void handle_sigint (int sig) { 37 | exit (128 + sig); /* UNIX convention. */ 38 | } 39 | 40 | void init_signal_handlers (void) { 41 | signal (SIGINT, handle_sigint); 42 | } 43 | -------------------------------------------------------------------------------- /src/signal.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Thanks to abaddon for proof-reading our comm.c and pointing out bugs. * 14 | * Any remaining bugs are, of course, our work, not his. :) * 15 | * * 16 | * Much time and thought has gone into this software and you are * 17 | * benefitting. We hope that you share your changes too. What goes * 18 | * around, comes around. * 19 | ***************************************************************************/ 20 | 21 | /*************************************************************************** 22 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 23 | * ROM has been brought to you by the ROM consortium * 24 | * Russ Taylor (rtaylor@hypercube.org) * 25 | * Gabrielle Taylor (gtaylor@hypercube.org) * 26 | * Brian Moore (zump@rom.org) * 27 | * By using this code, you have agreed to follow the terms of the * 28 | * ROM license, in the file Rom24/doc/rom.license * 29 | ****************************************************************************/ 30 | 31 | #ifndef __ROM_SIGNAL_H 32 | #define __ROM_SIGNAL_H 33 | 34 | #include "merc.h" 35 | 36 | /* Function prototypes. */ 37 | void handle_sigint (int sig); 38 | void init_signal_handlers (void); 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /src/special.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPECIAL_H 29 | #define __ROM_SPECIAL_H 30 | 31 | #include "merc.h" 32 | 33 | /* The following special functions are available for mobiles. */ 34 | DECLARE_SPEC_FUN (spec_breath_any); 35 | DECLARE_SPEC_FUN (spec_breath_acid); 36 | DECLARE_SPEC_FUN (spec_breath_fire); 37 | DECLARE_SPEC_FUN (spec_breath_frost); 38 | DECLARE_SPEC_FUN (spec_breath_gas); 39 | DECLARE_SPEC_FUN (spec_breath_lightning); 40 | DECLARE_SPEC_FUN (spec_cast_adept); 41 | DECLARE_SPEC_FUN (spec_cast_cleric); 42 | DECLARE_SPEC_FUN (spec_cast_judge); 43 | DECLARE_SPEC_FUN (spec_cast_mage); 44 | DECLARE_SPEC_FUN (spec_cast_undead); 45 | DECLARE_SPEC_FUN (spec_executioner); 46 | DECLARE_SPEC_FUN (spec_fido); 47 | DECLARE_SPEC_FUN (spec_guard); 48 | DECLARE_SPEC_FUN (spec_janitor); 49 | DECLARE_SPEC_FUN (spec_mayor); 50 | DECLARE_SPEC_FUN (spec_poison); 51 | DECLARE_SPEC_FUN (spec_thief); 52 | DECLARE_SPEC_FUN (spec_nasty); 53 | DECLARE_SPEC_FUN (spec_troll_member); 54 | DECLARE_SPEC_FUN (spec_ogre_member); 55 | DECLARE_SPEC_FUN (spec_patrolman); 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /src/spell_create.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPELL_CREATE_H 29 | #define __ROM_SPELL_CREATE_H 30 | 31 | #include "merc.h" 32 | 33 | DECLARE_SPELL_FUN (spell_continual_light); 34 | DECLARE_SPELL_FUN (spell_create_food); 35 | DECLARE_SPELL_FUN (spell_create_rose); 36 | DECLARE_SPELL_FUN (spell_create_spring); 37 | DECLARE_SPELL_FUN (spell_create_water); 38 | DECLARE_SPELL_FUN (spell_floating_disc); 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /src/spell_cure.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_CURE_H 29 | #define __ROM_CURE_H 30 | 31 | #include "merc.h" 32 | 33 | DECLARE_SPELL_FUN (spell_cure_blindness); 34 | DECLARE_SPELL_FUN (spell_cure_critical); 35 | DECLARE_SPELL_FUN (spell_cure_disease); 36 | DECLARE_SPELL_FUN (spell_cure_light); 37 | DECLARE_SPELL_FUN (spell_cure_poison); 38 | DECLARE_SPELL_FUN (spell_cure_serious); 39 | DECLARE_SPELL_FUN (spell_heal); 40 | DECLARE_SPELL_FUN (spell_mass_healing); 41 | DECLARE_SPELL_FUN (spell_refresh); 42 | DECLARE_SPELL_FUN (spell_remove_curse_object); 43 | DECLARE_SPELL_FUN (spell_remove_curse_char); 44 | DECLARE_SPELL_FUN (spell_remove_curse); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /src/spell_info.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPELL_INFO_H 29 | #define __ROM_SPELL_INFO_H 30 | 31 | #include "merc.h" 32 | 33 | /* Helper functions. */ 34 | long int spell_identify_seed (CHAR_DATA * ch, OBJ_DATA * obj); 35 | int spell_identify_know_check (CHAR_DATA * ch, OBJ_DATA * obj, int pos, 36 | int skill, int *know_count); 37 | void spell_identify_perform (CHAR_DATA * ch, OBJ_DATA * obj, int power); 38 | void spell_identify_perform_seeded (CHAR_DATA * ch, OBJ_DATA * obj, int power); 39 | const char *spell_identify_know_message (int percent); 40 | 41 | /* Spell declarations. */ 42 | DECLARE_SPELL_FUN (spell_detect_poison); 43 | DECLARE_SPELL_FUN (spell_identify); 44 | DECLARE_SPELL_FUN (spell_know_alignment); 45 | DECLARE_SPELL_FUN (spell_locate_object); 46 | DECLARE_SPELL_FUN (spell_farsight); 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /src/spell_misc.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPELL_MISC_H 29 | #define __ROM_SPELL_MISC_H 30 | 31 | #include "merc.h" 32 | 33 | DECLARE_SPELL_FUN (spell_cancellation); 34 | DECLARE_SPELL_FUN (spell_control_weather); 35 | DECLARE_SPELL_FUN (spell_dispel_magic); 36 | DECLARE_SPELL_FUN (spell_recharge); 37 | DECLARE_SPELL_FUN (spell_ventriloquate); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/spell_move.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPELL_MOVE_H 29 | #define __ROM_SPELL_MOVE_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | bool spell_filter_can_go_to (CHAR_DATA *ch, CHAR_DATA *victim, 35 | int level, flag_t res_type, flag_t dam_type); 36 | bool spell_filter_use_warp_stone (CHAR_DATA *ch); 37 | OBJ_DATA *spell_sub_create_portal (ROOM_INDEX_DATA *from_room, 38 | ROOM_INDEX_DATA *to_room, int duration); 39 | 40 | /* Spells. */ 41 | DECLARE_SPELL_FUN (spell_gate); 42 | DECLARE_SPELL_FUN (spell_summon); 43 | DECLARE_SPELL_FUN (spell_teleport); 44 | DECLARE_SPELL_FUN (spell_word_of_recall); 45 | DECLARE_SPELL_FUN (spell_portal); 46 | DECLARE_SPELL_FUN (spell_nexus); 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /src/spell_npc.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPELL_NPC_H 29 | #define __ROM_SPELL_NPC_H 30 | 31 | #include "merc.h" 32 | 33 | DECLARE_SPELL_FUN (spell_acid_breath); 34 | DECLARE_SPELL_FUN (spell_fire_breath); 35 | DECLARE_SPELL_FUN (spell_frost_breath); 36 | DECLARE_SPELL_FUN (spell_gas_breath); 37 | DECLARE_SPELL_FUN (spell_lightning_breath); 38 | DECLARE_SPELL_FUN (spell_general_purpose); 39 | DECLARE_SPELL_FUN (spell_high_explosive); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/spell_off.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_SPELL_OFF_H 29 | #define __ROM_SPELL_OFF_H 30 | 31 | #include "merc.h" 32 | 33 | DECLARE_SPELL_FUN (spell_acid_blast); 34 | DECLARE_SPELL_FUN (spell_burning_hands); 35 | DECLARE_SPELL_FUN (spell_call_lightning); 36 | DECLARE_SPELL_FUN (spell_cause_light); 37 | DECLARE_SPELL_FUN (spell_cause_serious); 38 | DECLARE_SPELL_FUN (spell_cause_critical); 39 | DECLARE_SPELL_FUN (spell_chain_lightning); 40 | DECLARE_SPELL_FUN (spell_chill_touch); 41 | DECLARE_SPELL_FUN (spell_colour_spray); 42 | DECLARE_SPELL_FUN (spell_demonfire); 43 | DECLARE_SPELL_FUN (spell_dispel_evil); 44 | DECLARE_SPELL_FUN (spell_dispel_good); 45 | DECLARE_SPELL_FUN (spell_earthquake); 46 | DECLARE_SPELL_FUN (spell_energy_drain); 47 | DECLARE_SPELL_FUN (spell_fireball); 48 | DECLARE_SPELL_FUN (spell_flamestrike); 49 | DECLARE_SPELL_FUN (spell_harm); 50 | DECLARE_SPELL_FUN (spell_heat_metal); 51 | DECLARE_SPELL_FUN (spell_holy_word); 52 | DECLARE_SPELL_FUN (spell_lightning_bolt); 53 | DECLARE_SPELL_FUN (spell_magic_missile); 54 | DECLARE_SPELL_FUN (spell_ray_of_truth); 55 | DECLARE_SPELL_FUN (spell_shocking_grasp); 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /src/string.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * File: string.h * 3 | * * 4 | * Much time and thought has gone into this software and you are * 5 | * benefitting. We hope that you share your changes too. What goes * 6 | * around, comes around. * 7 | * * 8 | * This code was freely distributed with the The Isles 1.1 source code, * 9 | * and has been used here for OLC - OLC would not be what it is without * 10 | * all the previous coders who released their source code. * 11 | * * 12 | ***************************************************************************/ 13 | 14 | #ifndef __ROM_STRING_H 15 | #define __ROM_STRING_H 16 | 17 | #include "merc.h" 18 | 19 | /* Function prototypes. */ 20 | void string_edit (CHAR_DATA * ch, char **pString); 21 | void string_append (CHAR_DATA * ch, char **pString); 22 | char *string_replace (char *orig, char *old, char *new); 23 | void string_add (CHAR_DATA * ch, char *argument); 24 | char *format_string (char *oldstring /*, bool fSpace */ ); 25 | char *first_arg (char *argument, char *arg_first, bool fCase); 26 | char *string_unpad (char *argument); 27 | char *string_proper (char *argument); 28 | char *string_linedel (char *string, int line); 29 | char *string_lineadd (char *string, char *newstr, int line); 30 | char *merc_getline (char *str, char *buf); 31 | char *numlines (char *string); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /src/update.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | ***************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | ***************************************************************************/ 27 | 28 | #ifndef __ROM_UPDATE_H 29 | #define __ROM_UPDATE_H 30 | 31 | /* Function prototypes. */ 32 | int recovery_in_position (int gain, int position); 33 | int hit_gain (CHAR_DATA * ch, bool apply_learning); 34 | int mana_gain (CHAR_DATA * ch, bool apply_learning); 35 | int move_gain (CHAR_DATA * ch, bool apply_learning); 36 | void gain_condition (CHAR_DATA * ch, int iCond, int value); 37 | void area_update (void); 38 | void mobile_update (void); 39 | void weather_update (void); 40 | void health_update (void); 41 | void health_update_ch (CHAR_DATA *ch); 42 | void health_update_ch_stat (CHAR_DATA *ch, sh_int *cur, sh_int *max, 43 | sh_int *rem, int (*func) (CHAR_DATA *, bool)); 44 | void char_update (void); 45 | void obj_update (void); 46 | void aggr_update (void); 47 | void violence_update (void); 48 | void pulse_update (void); 49 | void update_handler (void); 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /src/wiz_im.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_IM_H 29 | #define __ROM_WIZ_IM_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_wizhelp); 38 | DECLARE_DO_FUN (do_holylight); 39 | DECLARE_DO_FUN (do_incognito); 40 | DECLARE_DO_FUN (do_invis); 41 | DECLARE_DO_FUN (do_memory); 42 | DECLARE_DO_FUN (do_mwhere); 43 | DECLARE_DO_FUN (do_owhere); 44 | DECLARE_DO_FUN (do_stat); 45 | DECLARE_DO_FUN (do_rstat); 46 | DECLARE_DO_FUN (do_ostat); 47 | DECLARE_DO_FUN (do_mstat); 48 | DECLARE_DO_FUN (do_wiznet); 49 | DECLARE_DO_FUN (do_immtalk); 50 | DECLARE_DO_FUN (do_imotd); 51 | DECLARE_DO_FUN (do_smote); 52 | DECLARE_DO_FUN (do_prefi); 53 | DECLARE_DO_FUN (do_prefix); 54 | DECLARE_DO_FUN (do_mpdump); 55 | DECLARE_DO_FUN (do_mpstat); 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /src/wiz_l1.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L1_H 29 | #define __ROM_WIZ_L1_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_deny); 38 | DECLARE_DO_FUN (do_permban); 39 | DECLARE_DO_FUN (do_protect); 40 | DECLARE_DO_FUN (do_reboo); 41 | DECLARE_DO_FUN (do_reboot); 42 | DECLARE_DO_FUN (do_shutdow); 43 | DECLARE_DO_FUN (do_shutdown); 44 | DECLARE_DO_FUN (do_log); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /src/wiz_l2.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L2_H 29 | #define __ROM_WIZ_L2_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_allow); 38 | DECLARE_DO_FUN (do_ban); 39 | DECLARE_DO_FUN (do_set); 40 | DECLARE_DO_FUN (do_sset); 41 | DECLARE_DO_FUN (do_mset); 42 | DECLARE_DO_FUN (do_oset); 43 | DECLARE_DO_FUN (do_rset); 44 | DECLARE_DO_FUN (do_wizlock); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /src/wiz_l3.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L3_H 29 | #define __ROM_WIZ_L3_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_disconnect); 38 | DECLARE_DO_FUN (do_pardon); 39 | DECLARE_DO_FUN (do_sla); 40 | DECLARE_DO_FUN (do_slay); 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /src/wiz_l4.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L4_H 29 | #define __ROM_WIZ_L4_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | void do_restore_single (CHAR_DATA *ch, CHAR_DATA *vch); 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_guild); 38 | DECLARE_DO_FUN (do_sockets); 39 | DECLARE_DO_FUN (do_flag); 40 | DECLARE_DO_FUN (do_freeze); 41 | DECLARE_DO_FUN (do_load); 42 | DECLARE_DO_FUN (do_mload); 43 | DECLARE_DO_FUN (do_oload); 44 | DECLARE_DO_FUN (do_pecho); 45 | DECLARE_DO_FUN (do_purge); 46 | DECLARE_DO_FUN (do_restore); 47 | DECLARE_DO_FUN (do_echo); 48 | DECLARE_DO_FUN (do_vnum); 49 | DECLARE_DO_FUN (do_slookup); 50 | DECLARE_DO_FUN (do_mfind); 51 | DECLARE_DO_FUN (do_ofind); 52 | DECLARE_DO_FUN (do_zecho); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /src/wiz_l5.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L5_H 29 | #define __ROM_WIZ_L5_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | bool do_obj_load_check (CHAR_DATA * ch, OBJ_DATA * obj); 35 | void do_clone_recurse (CHAR_DATA * ch, OBJ_DATA * obj, OBJ_DATA * clone); 36 | 37 | /* Commands. */ 38 | DECLARE_DO_FUN (do_nochannels); 39 | DECLARE_DO_FUN (do_noemote); 40 | DECLARE_DO_FUN (do_noshout); 41 | DECLARE_DO_FUN (do_notell); 42 | DECLARE_DO_FUN (do_transfer); 43 | DECLARE_DO_FUN (do_peace); 44 | DECLARE_DO_FUN (do_snoop); 45 | DECLARE_DO_FUN (do_string); 46 | DECLARE_DO_FUN (do_clone); 47 | DECLARE_DO_FUN (do_newlock); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /src/wiz_l6.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L6_H 29 | #define __ROM_WIZ_L6_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-commands and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_at); 38 | DECLARE_DO_FUN (do_recho); 39 | DECLARE_DO_FUN (do_return); 40 | DECLARE_DO_FUN (do_switch); 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /src/wiz_l7.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L7_H 29 | #define __ROM_WIZ_L7_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_force); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/wiz_l8.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_L8_H 29 | #define __ROM_WIZ_L8_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_goto); 38 | DECLARE_DO_FUN (do_bamfin); 39 | DECLARE_DO_FUN (do_bamfout); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/wiz_ml.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 3 | * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 4 | * * 5 | * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 6 | * Chastain, Michael Quan, and Mitchell Tse. * 7 | * * 8 | * In order to use any part of this Merc Diku Mud, you must comply with * 9 | * both the original Diku license in 'license.doc' as well the Merc * 10 | * license in 'license.txt'. In particular, you may not remove either of * 11 | * these copyright notices. * 12 | * * 13 | * Much time and thought has gone into this software and you are * 14 | * benefitting. We hope that you share your changes too. What goes * 15 | * around, comes around. * 16 | **************************************************************************/ 17 | 18 | /*************************************************************************** 19 | * ROM 2.4 is copyright 1993-1998 Russ Taylor * 20 | * ROM has been brought to you by the ROM consortium * 21 | * Russ Taylor (rtaylor@hypercube.org) * 22 | * Gabrielle Taylor (gtaylor@hypercube.org) * 23 | * Brian Moore (zump@rom.org) * 24 | * By using this code, you have agreed to follow the terms of the * 25 | * ROM license, in the file Rom24/doc/rom.license * 26 | **************************************************************************/ 27 | 28 | #ifndef __ROM_WIZ_ML_H 29 | #define __ROM_WIZ_ML_H 30 | 31 | #include "merc.h" 32 | 33 | /* Sub-routines and filters. */ 34 | /* (none) */ 35 | 36 | /* Commands. */ 37 | DECLARE_DO_FUN (do_advance); 38 | DECLARE_DO_FUN (do_copyover); 39 | DECLARE_DO_FUN (do_trust); 40 | DECLARE_DO_FUN (do_dump); 41 | DECLARE_DO_FUN (do_violate); 42 | DECLARE_DO_FUN (do_qmconfig); 43 | 44 | #endif 45 | --------------------------------------------------------------------------------