README.clan
README.clan · 1.8 KB
From the archive clanguards.zip
Download the archive « Back to the archive contents
This clan code for mobiles was written by Feydrex. Feel free to distribute this code as long as you keep this document file in the archive without any changes, and keep my name in the comments in the code. Hopefully this will only be the first of many code snippets that I plan to release to the public. What these patches do is install the ability for #MOBILES from area files to be in a clan. A new optional field can be read from the mobile section of an area file that has C <clan>~ in it. An example portion would be: #21000 guardian clan~ A clan guardian~ A mobile is here with a blank look. ~ Yep, this is a mobile alright. ~ human~ ABF DFZ 1000 0 80 40 1d100+3999 1d100+799 5d4+60 stab -25 -25 -25 -25 0 0 CD 0 stand stand either 0 0 0 medium 0 C chaos~ #21001 next mob~ (etc etc) In the above example the #21000 mobile would be in the chaos clan. The purpose of allowing a mob to be in a clan is so that players may obtain a guardian mobile for their clan hall. It would be aggressive to all but the members of the clan it is in. To make changes to the area files much easier, patches have also been included to update Ivan's Rom 2.4 version of OLC. All the patches here are for stock code in order to make it more portable. The following patches should be included in this archive: db.c.patch db2.c.patch merc.h.patch olc.c.patch olc.h.patch olc_act.c.patch olc_save.c.patch update.c.patch I ask that you please keep all comments from the patches in your code to help you know what the code is for, and to give credit where due. If you encounter any problems with the code please leave me email to feydrex@kapow.loop.com or feydrex@xcalibur.intnet.net. If you use the code and it works just fine I'd like to please receive an email just to let me know that the code is actually useful to others. Thanks. - Feydrex