Jump to content

Recommended Posts

Posted (edited)

Replace this part of the code :

    private void ReloadData()
        {
        try (Connection con = L2DatabaseFactory.getInstance().getConnection())
            {
            PreparedStatement statement = con.prepareStatement("SELECT char_name, pvpkills, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY pvpkills DESC, char_name ASC LIMIT 10");
            ResultSet result = statement.executeQuery();
            
            //refreshing top pvp list
            int i = 0; //index of array
            
            while (result.next())
                {
                topPvPList[i] = new PlayerInfo(i+1,result.getString("char_name"),result.getInt("pvpkills"),0,0,result.getBoolean("online"));
                i++;
                }
                    
            //refreshing top pk list
            statement = con.prepareStatement("SELECT char_name, pkkills, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY pkkills DESC, char_name ASC LIMIT 10");
            result = statement.executeQuery();
            
            i = 0; //index of array
            while (result.next())
                {
                topPkList[i] = new PlayerInfo(i+1,result.getString("char_name"),0,result.getInt("pkkills"),0,result.getBoolean("online"));
                i++;
                }
            
            //refreshing top online list
            statement = con.prepareStatement("SELECT char_name, onlinetime, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY onlinetime DESC, char_name ASC LIMIT 10");
            result = statement.executeQuery();
            
            i = 0; //index of array

and it will exclude entries with accesslevel >0

Edited by StaticX
  • 5 weeks later...
  • 1 year later...
Posted (edited)

anyone help me to fix on frozen?

wtf.png

i add one password changer and work perfect.

LOGGER.warn( i add this to ranking and not fixed. how can i fix?

edit* fixed

Edited by PaRaNoiC*
  • 2 weeks later...
Posted (edited)
2 minutes ago, PaRaNoiC* said:

anyone know how to fix this error in ThreadPoolManager?

ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new RefreshAllLists(), 10000, delayForCheck * 60000);

http://prntscr.com/hlpod9

 

ThreadPool.scheduleAtFixedRate

 

 

Edited by Zacapa
Posted (edited)
8 minutes ago, Zacapa said:

ThreadPool.scheduleAtFixedRate

http://prntscr.com/hlpqpc

 

http://prntscr.com/hlpqt9 what import press here?

 

 

edit 

fixed. thanks you and melron for help me i add import net.sf.l2j.commons.concurrent.ThreadPool; and fixed

Edited by PaRaNoiC*
Posted
6 minutes ago, PaRaNoiC* said:


 

import net.sf.l2j.commons.concurrent.ThreadPool;
ThreadPool.scheduleAtFixedRate(new RefreshAllLists(), 10000, delayForCheck * 60000);

 

 

  • 4 weeks later...
  • Vision locked this topic
Guest
This topic is now closed to further replies.



  • Posts

    • L2 Editor is a desktop tool for editing Lineage 2 server and client data side by side. It opens L2J Mobius server XML (NPCs, skills, classes, zones, drops, experience), reads and writes the encrypted client data files for skills, NPC names, hunting zones, the minimap, and more, and renders the world map by stitching the client's radar textures and overlaying real zone polygons and NPC spawn points — both of which you can edit by dragging on the map. The NPC editor exposes every field as a structured form with enum dropdowns and includes a 3D point-cloud viewer of the NPC's model decoded straight from the client. The editor is chronicle-aware across 42 builds from Prelude to Orc Village: it decrypts every supported client format, derives which client files exist per chronicle at runtime, and shows a structured drift indicator that names exactly which fields disagree when server and client data drift apart. Built with Tauri, Rust, and React.   I am open to adding support for other server packs as well, if you are interested, send me a message on discord and send me the xml & xsd files   https://github.com/RumDum3/l2-editor    
    • I tried it, very neat work. Just keep improving it, there's potential.
    • 🔥 Grand Opening: 29 May 2026 – 19:00 Germany Time Website: https://l2-lorena.com/ Discord: https://discord.gg/TYZ88Tgx4b ━━━━━━━━━━━━━━━━━━━━━━ General Information • Chronicle: Interlude • Server Type: PvP Rates • EXP/SP: x5000 • Adena: x500 • Drop: x500 Premium Account • 2x EXP / Drop / Adena ━━━━━━━━━━━━━━━━━━━━━━ Starting Setup • Starting Town: Aden • Starting Level: 76 • Starting Gear: S-Grade ━━━━━━━━━━━━━━━━━━━━━━ Enchant System • Safe Enchant: +4 • Normal Scroll: 50% • Blessed Scroll: 70% • Crystal Scroll: 100% ━━━━━━━━━━━━━━━━━━━━━━ Subclass System • All classes available • Dominator subclass enabled • Dominator subclass cost: 20 Donate Coins ━━━━━━━━━━━━━━━━━━━━━━ Items Balance • Custom items • Elegia Armor added as Custom Set • Rare S-Grade items with boosted stats • Balanced PvP gameplay ━━━━━━━━━━━━━━━━━━━━━━ Siege & PvP Rewards • Aden Castle special reward: 200 Donate Coins • Competitive PvP and siege-focused gameplay ━━━━━━━━━━━━━━━━━━━━━━ Epic Bosses • All Epic Bosses available up to Valakas ━━━━━━━━━━━━━━━━━━━━━━ Augmentation Rates • Top LS: 100% skill chance • High LS: 7% skill chance • Mid LS: 3% skill chance ━━━━━━━━━━━━━━━━━━━━━━ Perfect For Players Who Want ✔ Fast progression ✔ Clean Interlude gameplay without custom chaos ✔ Active PvP action ✔ Competitive sieges ✔ Long-term fun
  • 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..