Jump to content

Recommended Posts

Posted (edited)

Hello , one guy requested me in PM a top pvp/pk mod for aCis ( dont know if already exist , also didn't search.. ) and I did one simple but different.

What's the different? It only connects to database only once (while others connect every time a players wanna see the status ) , on server's beggining , and this just to retrieve data into maps , so as Tryskell told me , it's more efficient and more secured to avoid to call database , so it's better (?). So you know...you can use this one if you want :)  Main reason was to practice my skills on maps,etc. 

coded in acis, tested. I didn't give sense to html ofc , you can edit it however you want. It's done by a command now ( /top ) , but you can change it into everything you want(npc , etc ).

 

Code : http://codecrap.com/content/1232/

 

commandname-e.dat

115 114 top

11cdpuh.gif

Edited by Lioy
Posted

On server startup is kinda bad. What if I rr my server only one time per week, huh? :dat:

 

Just add a threadpool to refresh each x hours :P

Posted (edited)

On server startup is kinda bad. What if I rr my server only one time per week, huh? :dat:

 

Just add a threadpool to refresh each x hours :P

You didn't understand , it refreshes in every pvp/pk kill automatically, it's real time ,there is not such a problem :)

Edited by Lioy
Posted

lol dude, SQL has ORDER command

 

just use "SELECT name, pvpkills FROM characters ORDER BY pvpkills DESC 0,10;"

Posted (edited)

lol dude, SQL has ORDER command

 

just use "SELECT name, pvpkills FROM characters ORDER BY pvpkills DESC 0,10;"

you lol dude, you didn't understand the point.

the point was to avoid sql connections -.-

Edited by Lioy
Posted (edited)

you lol dude, you didn't understand the point.

the point was to avoid sql connections -.-

 

so its better to use some crap code like this shit

+   protected static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map)
+   {
+       List<Map.Entry<K, V>> list = new LinkedList<>(map.entrySet());
+       Collections.sort(list, new Comparator<Map.Entry<K, V>>() {
+           @Override
+           public int compare(Map.Entry<K, V> o1, Map.Entry<K, V> o2) {
+               return (o1.getValue()).compareTo(o2.getValue());
+           }
+       });
+
+       Map<K, V> result = new LinkedHashMap<>();
+       for (Map.Entry<K, V> entry : list) {
+           result.put(entry.getKey(), entry.getValue());
+       }
+       return result;
+   }

instead of adding ORDER BY on your SQLCommand? i dont think so.

Edited by xdem
Posted

 

so its better to use some crap code like this shit

+   protected static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map)
+   {
+       List<Map.Entry<K, V>> list = new LinkedList<>(map.entrySet());
+       Collections.sort(list, new Comparator<Map.Entry<K, V>>() {
+           @Override
+           public int compare(Map.Entry<K, V> o1, Map.Entry<K, V> o2) {
+               return (o1.getValue()).compareTo(o2.getValue());
+           }
+       });
+
+       Map<K, V> result = new LinkedHashMap<>();
+       for (Map.Entry<K, V> entry : list) {
+           result.put(entry.getKey(), entry.getValue());
+       }
+       return result;
+   }

 

maybe yes or maybe no, that's what I am asking as you read in my main topic, if it's better and I am waiting for friendly answers to this.

Anyway i didn't judge you to use it , mainly for practice.

Posted

maybe yes or maybe no, that's what I am asking as you read in my main topic, if it's better and I am waiting for friendly answers to this.

Anyway i didn't judge you to use it , mainly for practice.

 

Your code doesnt refresh itself, make it to refresh itself with threadpoolmanager.

Order pvpkills with SQL and not with java

If you insist ordering with java do it with the classic ordering algorithm and not with that crapcode 

Posted (edited)

Your code doesnt refresh itself, make it to refresh itself with threadpoolmanager.

Order pvpkills with SQL and not with java

If you insist ordering with java do it with the classic ordering algorithm and not with that crapcode 

Top.addDataPvp(getName(),getPvpKills());

 

of course it refresh itself lol i tested it.

Edited by Lioy
Posted (edited)

if it does refresh itself dude then it makes db connections since I see no task here >.>

read the code and think better how it works , it doesn't make any db connection , only one.

Edited by Lioy
Posted

read the code and think better how it works , it doesn't make any db connection , only one.

 

don't insist mate, I 've spent my life on these stuff

Posted

I insist, read better the code.

 

It does refresh itself and makes DB connections 

OR

it doenst refresh itself and makes the connection once

 

choose dude

Posted

It does refresh itself and makes DB connections 

OR

it doenst refresh itself and makes the connection once

 

choose dude

 

it doesn't sort the database pvp kills

it just sorts a map's values.

It's simple.

Guest
This topic is now closed to further replies.



  • Posts

    • I ended up sorting a similar mess by working with a team that handled everything from discovery to launch and kept things super clear. Their business website design approach made it easy for me to get a site that actually fit my goals, plus I kept full ownership of everything. The long-term support and simple pricing structure saved me a ton of headaches down the road.
    • Interface sources for P447 (7s update) for Classic/Essence   NWindow + InterfaceClassic + L2Editor + L2ClientDat Mobius + XDat Editor   Download
    • Hey there, welcome to the community – no worries about being new, we all started exactly where you are. Let me break this down based on what you’re trying to achieve with your Interlude‑Classic idea.   What you’re describing is actually a pretty popular concept: basically Interlude gameplay and balance, but with Classic‑style UI and a cleaner overall user experience. A “hybrid client”, not a full chronicle change.   Projects that have done something similar or are worth studying:   Lucera 2 – You’re right about this one. They use a custom client that blends Interlude gameplay with a more modern/Classic‑like interface. Their UI work (inventory, skill bar, lobby, etc.) is a good reference point.   L2J Mobius – Not exactly your target, but it’s very flexible and has a lot of examples of customizations and adaptations between chronicles.   Smaller custom projects – There are (or were) a few hybrid attempts using Interlude server files with heavily modified clients, but most are private or closed‑source, so you mainly get ideas, not ready‑to-use files.   Where the real challenge is (the client side):   What you want is possible, but the heavy lifting is on the client, not the server. The main pain points usually are:   Making sure interface files are compatible between chronicles (UI textures, layouts, systemmsg, etc.).   L2Font and localization edits: titles, chat, system messages – a small mistake here can break visuals or cause weird text issues.   Character selection / lobby screens: if you take them from another chronicle, you have to adapt them carefully so they don’t conflict with Interlude data.   Inventory, status bars and shortcuts: they must still work with Interlude’s item/skill structure and packet format, or you’ll get visual desyncs and client errors.   About multi‑protocol:   You’re correct that multi‑protocol is often used by projects that want to support different client versions or custom blends. In your case, it can help “talk” properly with a customized client while keeping an Interlude base server. It doesn’t magically fix everything, but it gives you more flexibility on how client and server exchange data.   Quick chronicle breakdown (relevant for your idea):   2.0–2.6: Early, simpler mechanics, good base for old‑school vibes.   2.7: More skills and better balance, often used as a base for custom projects.   2.9.5: A “bridge” between old and new, very common choice for hybrid or heavily modded setups.   3.0+: Adds Kamael and systems you said you don’t want, so you’d mainly use it as a reference, not as a direct base.   My honest recommendation:   Start from a solid Interlude base (files you understand and can actually maintain). Interlude still has the most support, tools and community knowledge.   Focus first on UI/interface modifications instead of trying to change core mechanics. Use Lucera‑style clients and similar projects as visual/technical reference.   Consider a multi‑protocol setup only after you’re comfortable with a normal Interlude client; otherwise you’ll just stack complexity.   Join active L2J / client‑mod Discords and forums. There are specific channels for interface, system edits and client reverse‑engineering where people share tips and tools.   What I would avoid at the beginning:   No intentar mezclar tres o cuatro chronicles a la vez; con uno bien entendido + UI custom ya tienes más que suficiente trabajo.   No subestimar la parte de cliente; muchas veces es más complicada y más frágil que el lado del servidor.   No saltarte el testeo en entorno local; los híbridos rompen cosas pequeñas (tooltips raros, skills que crashean el cliente, UI bugueada) si no pruebas bien.   Resources worth checking:   L2J forums and old MaxCheaters threads about faction/hybrid servers and client mods.   GitHub repos with client tools and interface mods (even si no son exactamente tu chronicle, te sirven como ejemplo).   Discord communities focused on L2 client development; ahí es donde se mueve hoy la parte “seria” del modding.   The good news: what you want is achievable, just not “plug & play”. It will require patience, testing and a bit of learning on both server and client sides. If you share exactly which files/pack you’re planning to use and what you want your UI to look like, people here (me included) can give you more concrete, step‑by‑step advice.
    • I’m done with Lineage 2. Not because I “grew up”, not because I “don’t have time for games” anymore, but because this game has slowly turned into everything it was supposed to be against.   Let’s be honest: most people are not playing Lineage 2 anymore. They are running 5–10 boxes, macros and scripts, setting up their characters and going to watch Netflix. The core loop isn’t PvP, clan wars or raids – it’s AFK grinding and praying your gear upgrades don’t fail.   The game used to be about outplaying your enemy with positioning, timing and coordination. Now it’s about:   Who has more boxes logged in.   Who is willing to swipe the credit card harder.   Who abuses the most broken script, cheat or exploit before it gets “patched”.   And let’s talk about pay‑to‑win. You can pretend it’s “supporting the server” all you want, but when someone can buy power that takes others months (or is literally impossible) to reach, that’s not support, that’s buying victories. When top players are just walking credit cards with epics, donations and event gear, you don’t have competition, you have a spending contest.   The community? It’s just as bad. Most “friends” are temporary party members until they find a better CP, clan or donation package. Drama, backstabbing, ninja looting, clan leaders selling clan resources, spies in Discord – it’s more like a cheap political simulator than an MMO. People talk about “honor” and “fair play”, then log their 10th box, run radar and target through walls.   And private servers… So many promises: “long‑term project”, “no corruption”, “no over‑enchant items”, “balanced gameplay”. Then after a few weeks you see:   Admin friends with full gear “testing”.   Hidden donations or “special offers” for “supporters”.   GMs closing their eyes to obvious abuse because it’s their buddies or biggest donors. Every wipe and every “fresh start” is just another cycle of the same lie, and we all pretend “this time will be different”.   The saddest part? Most of us know all this and still keep coming back because Lineage 2 has an insane core – the world, the classes, the adrenaline of real PvP, the politics, the sieges. But that core is buried under layers of greed, abuse, bots, scripts, egos and fake promises.   So here is the brutal truth: Lineage 2 is not a hardcore competitive MMORPG anymore. It’s a casino disguised as nostalgia, kept alive by whales, box armies and people too addicted or too hopeful to finally let go.   If you’re still playing, ask yourself honestly: Are you having fun, or are you just grinding, coping and praying that “next server” will finally be the one that isn’t corrupt, pay‑to‑win or dead in three months?   For me, I’m out. Flame me, defend the game, call me salty – I don’t care. But deep down, most of you know I’m not lying.
  • 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..