Good afternoon mxc I found this mod in a forum, where it updates the ranking of the olympiadas daily, I wanted to modify it so that it updates every 1 hour during the period of the olympiads, how would it have to stay?
-privatestatic final String GET_EACH_CLASS_LEADER ="SELECT characters.char_name from olympiad_nobles_eom, characters WHERE characters.obj_Id = olympiad_nobles_eom.char_id AND olympiad_nobles_eom.class_id = ? AND olympiad_nobles_eom.competitions_done >= "+Config.ALT_OLY_MIN_MATCHES +" ORDER BY olympiad_nobles_eom.olympiad_points DESC, olympiad_nobles_eom.competitions_done DESC, olympiad_nobles_eom.competitions_won DESC LIMIT 10";
+privatestatic final String GET_EACH_CLASS_LEADER_CURRENT ="SELECT characters.char_name from olympiad_nobles, characters " "WHERE characters.obj_Id = olympiad_nobles.char_id AND olympiad_nobles.class_id = ? " "AND olympiad_nobles.competitions_done >= 9 " "ORDER BY olympiad_nobles.olympiad_points DESC, olympiad_nobles.competitions_done DESC LIMIT 10";
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Question
nortim
Good afternoon mxc I found this mod in a forum, where it updates the ranking of the olympiadas daily, I wanted to modify it so that it updates every 1 hour during the period of the olympiads, how would it have to stay?
- private static final String GET_EACH_CLASS_LEADER = "SELECT characters.char_name from olympiad_nobles_eom, characters WHERE characters.obj_Id = olympiad_nobles_eom.char_id AND olympiad_nobles_eom.class_id = ? AND olympiad_nobles_eom.competitions_done >= " + Config.ALT_OLY_MIN_MATCHES + " ORDER BY olympiad_nobles_eom.olympiad_points DESC, olympiad_nobles_eom.competitions_done DESC, olympiad_nobles_eom.competitions_won DESC LIMIT 10";
+ private static final String GET_EACH_CLASS_LEADER_CURRENT = "SELECT characters.char_name from olympiad_nobles, characters "
"WHERE characters.obj_Id = olympiad_nobles.char_id AND olympiad_nobles.class_id = ? "
"AND olympiad_nobles.competitions_done >= 9 "
"ORDER BY olympiad_nobles.olympiad_points DESC, olympiad_nobles.competitions_done DESC LIMIT 10";
- PreparedStatement statement = con.prepareStatement(GET_EACH_CLASS_LEADER);
+ PreparedStatement statement = con.prepareStatement(GET_EACH_CLASS_LEADER_CURRENT);
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.