Jump to content

Recommended Posts

Posted

it doesn't sort the database pvp kills

it just sorts a map's values.

It's simple.

 

 

yes but they CAN'T REFRESH since you dont have task man. Are we speaking the same language?

 

let go that you should use SQL ORDER BY, at least understand what Im telling you

Posted (edited)

yes but they CAN'T REFRESH since you dont have task man. Are we speaking the same language?

 

let go that you should use SQL ORDER BY, at least understand what Im telling you

Please read better the code , in every sendData it sorts the maps , that's all what is needed. you can't understand this?

Edited by Lioy
Posted

dude since you read from db once you store static data on the maps. If I get a pvp it will still send the pvp amount I had once the server started so it doesnt refresh. 

 

Thats what im trying to explain you, you cant have self-refreshing data without db connection if theres no task to reschedule data read.

Posted

Please read better the code , in every sendData it sorts the maps , that's all what is needed. you can't understand this?

 whats the point of sorting the same map every time? it holds static data

Posted

dude since you read from db once you store static data on the maps. If I get a pvp it will still send the pvp amount I had once the server started so it doesnt refresh. 

 

Thats what im trying to explain you, you cant have self-refreshing data without db connection if theres no task to reschedule data read.

You are wrong again , maybe you didn't understand how it works.

playersPvpKills.put(charName, pvpKills) replaces pvpKills if key is same..

 

Realy why you insist since I tested it?

Posted

You are wrong again , maybe you didn't understand how it works.

playersPvpKills.put(charName, pvpKills) replaces pvpKills if key is same..

 

Realy why you insist since I tested it?

 

can u explain me how you refresh the data dude? What you say makes no sense

Posted (edited)

can u explain me how you refresh the data dude? What you say makes no sense

lol

 

When server starts , data is retrieving into map. So the map has all charnames,pvps . Every time a player's pvp's count changes , it's putted in the map.

If the server restart again, 1 more database connection and it's repeating. Simple enough

Edited by Lioy
Posted

How you do this?

 

 public void setPkKills(int pkKills)
    {
        _pkKills = pkKills;
+       Top.addDataPk(getName(), getPkKills());
    }
    
    /**
@@ -1917,6 +1919,7 @@
    public void setPvpKills(int pvpKills)
    {
        _pvpKills = pvpKills;
+       Top.addDataPvp(getName(),getPvpKills());
    }
    
Posted

Okay I understand now, but why you choose the shitiest way to do it? You make things too complicated for no reason at all.

 

Just put a task reading from the database every x seconds like everybody does, and use that goddamn ORDER BY. You will get rid of those retarded maps and methods and a 100 lines shorter and cleaner code all in one class..

 

 

 

Its too sad that I have to be the bad guy telling you what to do with your code but the rest few with knowledge on this forum won't even bother to support what I tell you or help you improve your code. Anyway 

Posted

Okay I understand now, but why you choose the shitiest way to do it? You make things too complicated for no reason at all.

 

Just put a task reading from the database every x seconds like everybody does, and use that goddamn ORDER BY. You will get rid of those retarded maps and methods and a 100 lines shorter and cleaner code all in one class..

 

 

 

Its too sad that I have to be the bad guy telling you what to do with your code but the rest few with knowledge on this forum won't even bother to support what I tell you or help you improve your code. Anyway 

 

That's the main question man , if this code is better or worst than continuously database connection like others , your opinion is 'NO IT SUCKS' , but I want more opinions from more ppl :P 

We are not here to fight :P

Posted

I would still use the one that makes connections every time a bypass is cought though, because the code seems more simple and i use more values like: clan name, hero, etc :D

Posted (edited)

I would still use the one that makes connections every time a bypass is cought though, because the code seems more simple and i use more values like: clan name, hero, etc :D

Simplest things are not always the best. Maybe this one yes (?) , still dont know. I won't comment about this one about clan name , heroes you said ;/

Edited by Lioy
Guest Elfocrash
Posted

Okay I understand now, but why you choose the shitiest way to do it? You make things too complicated for no reason at all.

 

Just put a task reading from the database every x seconds like everybody does, and use that goddamn ORDER BY. You will get rid of those retarded maps and methods and a 100 lines shorter and cleaner code all in one class..

 

 

 

Its too sad that I have to be the bad guy telling you what to do with your code but the rest few with knowledge on this forum won't even bother to support what I tell you or help you improve your code. Anyway 

Performance wise this way is way better. As this comparing to a sql connection is probably 10 times liter. However i would trust more a sql connection every x minutes to refresh this rather than on click or on pvp kill.

Posted

Performance wise this way is way better. As this comparing to a sql connection is probably 10 times liter. However i would trust more a sql connection every x minutes to refresh this rather than on click or on pvp kill.

Still better than continuously sql connection on every time that a player talking to npc,press o command or whatever, right? It's a question :P

Guest
This topic is now closed to further replies.



  • Posts

    • 🔥 Welcome to Lineage 2 Haruna x3 – True Classic Interlude Experience 🔥 At Haruna x3, we’re bringing back the true essence of Interlude – slow, meaningful progression where every level matters, every item has value, and PvP is real. We’re not about fast servers, pay-to-win advantages, or fake populations. Our goal is simple: create a fair, stable, and long-term server where players can enjoy real competition, strategic clan warfare, and the thrill of open-world PvP. 💎 What Makes Haruna x3 Special? x3 Rates – Perfect for steady, rewarding progression Classic Interlude Mechanics – Relive the nostalgia of Interlude Stable & Lag-Free Gameplay – Optimized for thousands of players online Fair & Balanced – No pay-to-win, every victory is earned PvP & Clan Warfare Focused – Every battle counts 🌟 Quality of Life Features to Enhance Your Experience We keep the classic feel while adding features that make the game more convenient and enjoyable, including: Shift + Click to view monster droplists Free item mail and buy/sell via Adena Daily login rewards & Stream Rewards ALT+K Skill Panel & Alt+Click buffs removal Offline shop system Captcha for security Donate Coins currency (cannot be traded, dropped, or destroyed) Classic P110 client – no custom interface 🏰 Our Philosophy We believe Lineage 2 is about the journey, not just the destination. Haruna x3 is designed for months and years of growth, not weeks. We provide a community-driven environment where honest gameplay, fair competition, and strategic teamwork are at the forefront. 🌍 Join Our Community Whether you’re a veteran of Interlude or a returning player seeking a true classic experience, Haruna x3 offers a place to fight, trade, and grow alongside dedicated players. Step into the world of Haruna x3 – where every decision matters, every fight counts, and every victory is yours to earn. Discord: https://discord.gg/7DDC9Dsxnh Website : www.l2haruna.com
    • No, the real purpose is cheating and custom  development for games.  I'm building a custom AI moderator specially for checking illegal activity and flag current topica.
    • Hello trying to edit Armorgrp_Classic.dat using L2ClientDat Editor - l2jmobius edition I can normally open a file but can't save, even can't save "clean" version of file (just open and then click save) Other files i can normally open, edit and save. but there is problem with Armorgrp_Classic.dat Anyone find solution, or other Editor for protocol 166 ?   [25/12 15:10:11] --------------------------------------- [25/12 15:10:11] Open file: Armorgrp_Classic.dat [25/12 15:10:11] File Armorgrp_Classic.dat encrypted. Lineage2Ver413 decrypt ... [25/12 15:10:11] Decrypt Armorgrp_Classic.dat file successfully by v413_encdec decrypter. [25/12 15:10:11] Read the file structure ... [25/12 15:10:11] Unpacking [L2GameDataName.dat] [25/12 15:10:11] GameDataName: Load 97534 count. [25/12 15:10:11] Completed. [25/12 15:11:32] Wrong param count for wrapper: fertheia_mesh_add, paramIndex: 1, params: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} -node: fertheia_mesh_add[WRAPPER][null][null] param: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} org.l2jmobius.xml.exceptions.PackDataException: Wrong param count for wrapper: fertheia_mesh_add, paramIndex: 1, params: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} -node: fertheia_mesh_add[WRAPPER][null][null] param: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} at org.l2jmobius.xml.DescriptorWriter.packData(DescriptorWriter.java:275) at org.l2jmobius.xml.DescriptorWriter.packData(DescriptorWriter.java:184) at org.l2jmobius.xml.DescriptorWriter.parseData(DescriptorWriter.java:100) at org.l2jmobius.actions.SaveDat.action(SaveDat.java:70) at org.l2jmobius.actions.ActionTask.doInBackground(ActionTask.java:48) at org.l2jmobius.actions.ActionTask.doInBackground(ActionTask.java:27) at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:303) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328) at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:340) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619) at java.base/java.lang.Thread.run(Thread.java:1447) [25/12 15:11:32] buff == null.  
    • Leave your contact information or write to me on Telegram @dieorditsa
    • Hello everyone, I’m looking for a graphic designer to design a custom logo that will be used in NPC HTML interfaces for Lineage. Please send me a private message if you are interested.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock