Hi guys, I decided to share sth new I created. I got the idea from the old, shared religion system, but i created a new, completely different(actually the old one is almost same to GvsE, just changed names) one, and extend it with an unique feature. Now it's not VERY beta phase, and i suggest you not to use it in a live server. I posted it on beta phase, so you can suggest me ideas. It is coded on aCis rev. 76. Let me explain how it works:
Every new character, can choose between 2 religions (you set the names in html included in data/html/religion/npcid.html) with an npc with type L2ReligionManager (i have created a html file with 65535 as name, so i suggest you to create a npc with id 65535, or rename the 65535.html file to your npc's id). He can't change religion in the feature. When admin wants, he can press //warnreligionwar, to warn with 2 announces the players that a religion war is about to begin. After he presses //startreligionwar, the players that are in religion 1 are teleported to their base, and the same happens with religion 2 players. They also get a name color. The default base is set to coliseum. When a religion war is active, all religion players can fight each other(if they kill same religion player, they don't get reward), and get as reward 2 pvps at each kill(instead of 1) and sth else(item, default is set to 1 gold bar). They don't get karma, only flag, even if case is pk(ofc if they hit players that are not in a religion they get karma). After admin presses //stopreligionwar, the war ends, and every player is teleported back to where he was before the war starts.
Here:
http://pastebin.com/gvgqDbFJ - CORE
http://pastebin.com/eY5G9u42 - DP
Credits are 100% mine.
Btw it's tested...
Have fun!
Updates:
- All characters that are in a religion have as title their religion name(you must change this). Fixed some stuff at pvps. New feature, religion leaders. One leader for each religion, he is auto-chosen every 24 hours, also he can be chosen by admin, //setreligionsleaders. Religion leaders have a custom skill, super haste lvl 1 default. Also religion leaders have always as color name the color all the other religion members have while they are in war. If religion leaders are in war, they get black color name. Every time a religion member dies in a religion war, he is auto revived after 1 second, gets auto noblessed and if he is religion leader gets auto super haste lvl 1. Also after players are teleported to their base, they get nobless too and religion leaders super haste lvl 1 (just to avoid losing buffs). Religion wars have been (kinda) reworked, since i had many errors after i added religion leaders.