Jump to content

Recommended Posts

Posted

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.

Posted

:O very cool idea

 

So my suggestions:

You could make leaders of religions like pope :P, i dont have idea how they would have to be choosen but for what they would have to be: i think maybe special chat for them to speak to whole relegion, also maybe they would be able to buy skills that every player in his religion would have.

 

Also you could make something like setting challange to other religion(this leader maybe could set date or something) so not admin will choose when this war have to be but it will be in date setted before.

 

Ok i dont have more ideas for now :P

 

Edited after a minute :P

i have got 1 more idea, you could make something like religion score, it would be increased by kills in war, this leader would be able to buy skills for that poionts

 

ok i will edit this post later :)

Posted

:O very cool idea

 

So my suggestions:

You could make leaders of religions like pope :P, i dont have idea how they would have to be choosen but for what they would have to be: i think maybe special chat for them to speak to whole relegion, also maybe they would be able to buy skills that every player in his religion would have.

 

Also you could make something like setting challange to other religion(this leader maybe could set date or something) so not admin will choose when this war have to be but it will be in date setted before.

 

Ok i dont have more ideas for now :P

Thanks vampir, i loved the first idea. The second is not bad too, but maybe in the feature, because it's sth like making the whole engine automatic(and i don't really like automatic engines :P). But still, it's not a bad idea. Maybe i will add different challenges, not religion wars, like 1vs1 pvp religion leader vs religion leader o.O :P For now, i have to make some corrections, improvements to the main code, and after these, i have to think how the religion leader will be chosen.

 

Thanks again.

Posted

thx :P

 

You also could make religion treasury so this leader could spend it to make religion grow, also make clans pay tithe :D

If they dont want to pay, leader is making war with them :P

but better dont make it, too big power in 1 man :P

 

Anyway u can make a lot of things to improve it, w8ing for updates :)

 

Posted

thx :P

 

You also could make religion treasury so this leader could spend it to make religion grow, also make clans pay tithe :D

If they dont want to pay, leader is making war with them :P

but better dont make it, too big power in 1 man :P

 

Anyway u can make a lot of things to improve it, w8ing for updates :)

 

Thx again. I have 1 question, should i add configs, or is it useless?

Posted

hm

You can add config for things that can be changed often so ppl wont have to change them in code but i am never making configs coz i dont rly need them, if some1 wants, he can make it by himself since its very easy

Posted

This game turned in wars with cruciades and faith involved ? :))

I like the unique ideea a +1 to that.

Imagine if i add vampire's idea about the pope axaaxaxa. :D

Posted

(Bump?)

 

Updated:

 

- 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.

Posted

(Bump?)

 

Updated:

 

- 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.

very unique, awesome man!
Posted

Add 2 massive creatures which would be sort of NPC gods, and you will have to protect them. You can call them "avatars" if you prefer.

 

Gain "fervour" (ferveur in french) praying your gods (skill to use everyday). Once going to some states, you can unleash the power of your God.

 

The NPC/god/avatar could act from itself. Need IA rework, + L2NPCWalker stuff.

 

You can change of religion, but you become heretic during a short time, and can be hunt by anyone. But in another hand, you can hunt anyone aswell.

 

Hunt others religions launching crusades. Crusades have to been approved by the majority of clans (voting system). During crusades, a counter is launched, and you can steal chests (recycled treasures boxes) stored in enemy town.

 

I got a lot like that :D.

 

If you need help aswell, you can contact me by msn :).

Posted

Add 2 massive creatures which would be sort of NPC gods, and you will have to protect them. You can call them "avatars" if you prefer.

 

Gain "fervour" (ferveur in french) praying your gods (skill to use everyday). Once going to some states, you can unleash the power of your God.

 

The NPC/god/avatar could act from itself. Need IA rework, + L2NPCWalker stuff.

 

You can change of religion, but you become heretic during a short time, and can be hunt by anyone. But in another hand, you can hunt anyone aswell.

 

Hunt others religions launching crusades. Crusades have to been approved by the majority of clans (voting system). During crusades, a counter is launched, and you can steal chests (recycled treasures boxes) stored in enemy town.

 

I got a lot like that :D.

 

If you need help aswell, you can contact me by msn :).

Thanks a lot Tryskell, after my current update(preparing it), i will start thinking of your ideas.

 

Btw for my next update, the ability to challenge the opposite religion's leader to 1vs1 match. I haven't thought of the rewards yet, you can reply here to give me ideas.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • I can see that the admins arent taking any action, yet they still seem willing to share information about various other people names and IP addresses. But when it comes to scams, no one reacts.      
    • Server Info Chronicle:  Interlude                                                                                                                                    XP: 100x | SP: 100x | Drop: 50x | Adena: 75x Enchant: Safe +3 |  Max +21 Website: Website Link Discord: Discord Link   WHY? When I was a teenager I had this idea. Build my own Lineage 2 server. My own rules. My own world. I wasn't a programmer. I had no idea how any of it worked. I tried, hit a wall, and quit. But the idea never left. I came back years later. Got further. Quit again. Watched friends try similar things. The idea stayed stuck in my head for fifteen years. I'm a developer now. I finally finished it. Not because I suddenly had more time - I have a full-time job and real responsibilities. An hour before bed if I'm lucky. That's actually exactly why I finished it.   The problem I kept running into I still love this game. But every server I tried as an adult made that one hour feel worthless. Log in, kill a few mobs, make no real progress, log out frustrated. The game was designed for someone with unlimited time. That person doesn't exist in my life anymore. I looked around. Everyone I used to play with has the same problem. Same love for the game. Same lack of time. Jobs, families, maybe an hour late at night. So I stopped waiting for someone else to build it.           WHAT? Custom starting zone in Gludin (up until 2nd profession start) Talent system - rebirth at level 80 and choose your talents Bounty hunter system - daily tasks to kill random monsters to receive great reward! Potion crafting system - custom HP/MP potions and recipes Custom 1st & 2nd class quests (shorter) Scheme buffer Shop until C grade   Visit our website to get more info: Website Link   The philosophy 95% of the game is completely soloable. No clan required. No raid schedules. No guilt when you have to log off. You are the solo director of your own session. Log in, pursue your goal for an hour, log out on your own terms. When you've conquered what you wanted - you stop naturally. A new season drops with fresh Talent Tree changes and you come back to build something completely different. No endless stretched grind. No pay-to-win. No shady admin decisions. No surprise wipes. I'm one developer who built this because I love it.                                          This is the server I needed fifteen years ago. Glad I finally had the skills to build it. Come see what I made. [Forever Lineage]
    • Hello MaxCheaters community! We’ve all been there: you spend months customizing your NPCs, balancing classes, and setting up the perfect farm zones. You launch your server, the hype is real, and suddenly you hit 200 players—and the "delay" starts. The mobs stop reacting, the Olympiad matches stutter, and your players start complaining on Discord. Many "newbie" admins think the solution is just throwing more RAM at the VPS. While hardware matters, Java is a finicky beast. If you don't tune your JVM (Java Virtual Machine) and your core code, you’ll lag even on a NASA supercomputer. Today, I’m sharing a deep dive into optimizing your L2 server for maximum performance. 1. The Myth of "More RAM" The biggest mistake people make is assigning 32GB of RAM to a server that only needs 8GB. In Java, if your Heap size is too large, the "Garbage Collector" (GC) has to work much harder. When the GC runs a "Full GC" cycle on a massive heap, it performs a "Stop-the-World" event. This literally freezes your server threads for 1–3 seconds to clear memory. Recommendation: For a mid-rate server with 500 players, 6GB to 8GB of Xmx (Max Heap) is usually the sweet spot. Use G1GC (Garbage First Garbage Collector) instead of the old ParallelGC. It handles large heaps much more gracefully by breaking memory into regions. 2. JVM Startup Flags (The Secret Sauce) Don't just run java -jar l2jserver.jar. You need specific flags to ensure the CPU prioritizes the right tasks. Try adding these to your start.sh or start.bat: Bash   -Xms6G -Xmx6G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+TieredCompilation MaxGCPauseMillis=50: This tells Java, "Try not to freeze the server for more than 50ms at a time." It makes the gameplay feel much smoother for the end-user. 3. Geodata and Pathfinding Optimization Geodata is the biggest CPU killer in Lineage 2. Every time a mob moves or a player clicks, the server calculates "Can I see this target?" and "Is there a wall in the way?". The Fix: Use a "Pathfinding Cache." If 100 players are running from the Giran Gate to the Luxury Shop, the server shouldn't calculate that path 100 times. Check your Geodata format: Ensure you are using the .l2j or .dat formats optimized for your specific core. If your console is flooded with "Pathfind node limit reached," increase your node limit in the geo.properties file, but be prepared for higher RAM usage. 4. Database Pooling (HikariCP vs. C3P0) If your server freezes for a split second every time someone saves their character or buys an item, your Database Connection Pool is the bottleneck. Most old L2J cores use C3P0, which is outdated and slow. Switch to HikariCP: It is significantly faster and handles "dead" connections much better. Also, ensure your characters and items tables are indexed correctly in MySQL. Running a VACUUM or OPTIMIZE TABLE once a week can prevent those annoying "saving player data" spikes. 5. Network Threading In your server settings, look for "Network" or "Thread" configurations. Usually, you’ll see SelectorThreads and WorkerThreads. Selector Threads: Should be equal to the number of physical CPU cores. Worker Threads: This is where the logic happens (skills, movement). If this is too low, actions will "queue up," creating a delay even if your ping is low. 6. Community Board (BBS) Optimization On MaxCheaters, we love fancy Community Boards. However, if your Buffer or Shop script is poorly coded, it might be reloading the entire HTML from the hard drive every time a player clicks a button. The Fix: Ensure your scripts cache the HTML in the RAM. Reading from an SSD is fast, but reading from RAM is thousands of times faster. Conclusion Optimization isn't a "one-click" fix; it’s about finding the balance between your hardware and your software. Start with your JVM flags, clean up your Geodata settings, and make sure your Database isn't choking on old logs. If you found this helpful, leave a comment or a "Thank You" below! If you have specific lag issues with a certain core (aCis, L2Emu, etc.), post your server.properties and I’ll try to help you tune it.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..