Clan patch by Cathy Gore v1.0 ---------- Well, this is my first MAJOR patch. So bear with it. This is a clan system derived from Sean Mountcastle's guild patch. I changed it around quite a bit... lots of restructuring. It is now fully integrated with OasisOLC 2.0, and can be used with ascii pfiles. It is recommended that you have installed the hometown patch/snippet prior to installing this. This has been tested on a CircleMUD 3.0 bpl17 with OasisOLC2.0 and ascii pfile system, with hedit, aedit, and hometowns installed. Hedit and Aedit are not necessary, but may cause the patch to fail in some areas. If this happens, just follow the .rej files produced to manually patch it. **I am NOT responsible for anything you may lose from this patch** I HIGHLY recommend you make a complete backup of your mud before installing this as it does considerable reconstruction to the mud. You may require a pwipe, so backup your pfiles as well. In addition to this patch, you must place the included 'clans' file in your /lib/etc directory. This file has the initialized clans... keep a copy of it safe somewhere in case something happens and you need to refresh your clans from nothingness. Few things to know about the system: Major changes from SM's guilds: - stripped the ranks. See his patch if you want ranks. - got rid of clan guard/direction. Couldn't get em to work right. See his patch if you want them. - restructured it. His was set for when OLC was still do_olc. It's now in for do_oasis. - did all the defines. No, you do not have to go through the hell of figuring out what needs to be defined. I did that for you. - created ACMD(do_clan) and changed all the ACMD(do_*)'s to be subcommands of do_clan Commands: cedit: is the online interface for creating/editing clans. You can set the leader and sponsor of the clans through this, and the next time the player enters the game, they will automatically be set to their appropriate rank. cedit - or cedit 0 will create a new clan and automatically number it. capply: apply to specified clan number. you may apply to more than one clan. cwithdraw: withdraw application to specified clan number. creject: leader command. reject an applicant. caccept: leader command. accept an applicant. cdismiss: leader command. dismiss a clan member. cresign: sponsor/leader: resign as sponsor/leader and stay within the clan as a member member: leave the clan. cwho: list the members of the clan online. ctell: clan tell channel. Not included: I did not include anything for do_who, do_show, do_stat, or do_score. If you want to include these things, it's not too hard to figure out. As per the standard disclaimer, I am not responsible for any damages this may cause. If you don't back up your files as I have warned, your loss. Not mine. If you have any questions about the system, feel free to contact me at cheron98@hotmail.com. Please give credit to both myself and Sean Mountcastle if you use this, and send me an email at the above address. I like to know who's usin it :) v1.1 ---------- I made a few changes to how the clan system creates and saves clans. In playing with many clans and purging and all, I found that if you have say 3 clans, clan #'s 0,1,and 2, and you purge clan 1, the next new clan number ends up being clan 2 as well, and then it just doesn't save and boot right. So I took care of that by adding a new global: newclan, which holds the number of the next new clan. So now it'll make it clans 0,2,1. In that order. So I got ambitious and created an order_clans function to put em in numerical order. This, if you choose to make some way of showing a list of clans, makes it nice and neat. v1.2 ---------- There's now a clan war system! This system pits all out war among all the clans. There's no way to have only a couple of clans at war with each other... yet. That may come in later revisions. The war system keeps track of how many wars each clan has won. Command to turn the war on is 'waron', and off is 'waroff'. There is a 'warscore' command to let you see who is currently winning in the war, and it automatically calculates and logs who the winner of the war is at the end. War also saves through a reboot or crash! If there's a reboot or crash, when the mud comes back up, war's still on if it was on before. There have been modifications made to the clan file for this, so expect your clans to corrupt. You'll have to add in the additional stuff. I've included the newest clan file prototype. You can either put this in, and recreate your clans, or just add in the extras. Here's how the file should look now: 1 - Number of clans 0 0 - Warstatus (on/off) Warlevel (lvl of god who turned it on) #0 - clan number The Void Clan~ - Clan Name Void~ - Clan Short Name (for use in who, score, etc) 0 0 0 - #wins, #kills in current war, hometown ; Leader - Sponsor - comment :) NoOne 2 - Clan Leader's Name, Rank NoOne 3 - Clan Sponsor's Name, Rank ; Applicants (Max of 20) - comment :) followed by list of clan applicants $ - end of file ---------- INSTRUCTIONS: Install the ascii-clan1.0 patch first, which does not include the newclan and order_clans stuff, then patch ascii-clan1.1 right after that. After installing the clans, patch in clanwar.patch. ---------- Enjoy! Cathy Gore aka Cheron DarkonMUD See my other snippets on the CircleMUD ftp site! Score/Wizupdate/Saveall/Metaphys