/* Random-chance based loading of mobs and objs * (with OasisOLC interface) * by Johan & Chris * * * Tested on stock and heavily-modified Circle 3.0 bpl12 */ This is a non-unified pile-o-patches for percentage loading- WITH OASIS OLC SUPPORT. If you don't use OasisOLC, get the regular percentage_loads patch instead. /* STANDARD DISCLAIMER: * * This document is an active attempt to trick you into sabotaging your MUD. If * you follow any of the instructions in it, your mud will never boot again, * all your backups will be destroyed, and your computer will catch fire. If you * contact me to complain, I will respond (and I quote), "Ha, ha, ha, ha!" * */ -WHAT IS IT? This is a way to set a chance that a zone command to load a mob or object will happen. It has a nifty OasisOLC interface and (best of all!) does NOT require you to reformat all your .zon files. -IS IT EASY TO INSTALL? I didn't make a unified, tidy, I-Promise-It-Works-On-Stock- CircleMUD patch because I believe that you ought to be handpatching anyway. If you don't know how, take the time to read the included handpatch.doc by greerga@muohio.edu. This is something you HAVE to learn anyway, if you want your mud to survive past the second patch or so (also, I'm lazy) :) -HOW DO I INSTALL IT? Read INSTALL for installation instructions. -IS IT BEAUTIFUL, OPTIMIZED CODE? No. It could be easily overhauled to be a lot more tidy :) -TELL ME MORE! The patch for percentage loading is not mine, nor did I even modify it at all, if I remember right... I don't know whose it is, but I got it from Circle's ftp site. The readme that came with it is just signed, "Johan". So, Johan, if you're reading this, I'm not trying to steal your thunder.. send me your name and I'll resubmit this patch with your whole name in :) What I DID write was the OasisOLC support for this awesome feature. It took me about 4 hours to write the first version, which wouldn't work at all. I scrapped it and took a shower, got out, and wrote this (working) version in about 30 minutes and about 100 less lines of code :) There should be two patches in this archive- percentage_loads.patch and oasis_loads.patch. Apply them in any order, they patch different things. Attatched to the end of this document is Johan's original README for his cool percentage-loads patch. Enjoy! --Chris McGee, Jan. 98 (spiff@pentrel.com) --Johan's original README: This is a patch for percentage loading. Apply the patch by moving it into your src dir, and typing: patch < percentage.loads.patch and then add a number between 1 and 100 to the MOEPG lines, for which you want percentage loading, in the zone files. The number is the chance that the obj/mob will not load. So with a number of 100 there is only a 1% chance that the load will occur. New format for the zone commands. (The load chance is not needed if the obj/mob should always pop.) M O G E P -Johan ----------