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

    • What is the reason for this new behavior where people criticize other users' posts? Do they think people are naive? Here everyone understands and everyone knows who's who. Focus on your work and be happy!    Lately, all they do is criticize anyone who posts anything; it's pure spam. Are they just looking for fame?  
    • Of course, bro So he writes to the admin: “Remove reactions because Skylord talks too much and says things that will make me lose clients.” And boom.. Maxor removes the reactions. Then he says: “Close my topics because too much nonsense is being written on my server.” And boom... the topics get closed. Bro, what century are we living in? People are not stupid. Just think for a second. Of course I won’t be able to fix anything like this. But at the same time, everyone here acts like they’re so great. They write their projects here, selling things for $5k–$10k  but in reality these fools just can’t find clients, so they spam nonsense and pretend they’re some huge professionals selling “super professional” files. From this point on, I can confirm that I will no longer be writing comments, replying to topics, or saying anything about anyone here. Honestly, I no longer care about the people on this forum who are trying to sell things, make a quick $100, and pretend to be something they are not. Many of these so-called “projects” and “official files” turn out to be fake, copied, or misleading. And let’s be honest this is not something new. There have been situations in the past where people asked me for help, copied things from my test servers, took my scripts or folders, and then tried to present them as their own official work. This kind of behavior should be visible to everyone. I am addressing the administration of this forum directly: these things should not be hidden. You should not be deleting posts, closing topics, removing replies, or covering up the truth just because someone is exposing what is actually happening. What kind of community are you building if the truth is constantly being hidden? For years, posts have been removed, topics have been closed, and replies have disappeared just because people said something uncomfortable. That is honestly sad. This is my final message. I no longer care what happens with this forum. Ban me if you want, remove my posts if you want, do whatever you want. I am done here.   I said what I had to say. @Maxtor    
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • 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..