Tryskell Posted April 20, 2015 Share Posted April 20, 2015 Maybe it will help someone to adapt it is vote reward system with command (.getreward) is working 100% on H5 servers and its for L2Network.eu https://github.com/L2TopNetwork/TopNetowrk As SweeTs told me on Skype, you don't need DbUtils, as you can use try-with-ressources feature since Java 7. https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html Quote Link to comment Share on other sites More sharing options...
SweeTs Posted April 20, 2015 Share Posted April 20, 2015 Leave him/them, NeverMore knows what he is doing.. I lol'ed :happyforever: Quote Link to comment Share on other sites More sharing options...
Vagrancy™ Posted April 20, 2015 Share Posted April 20, 2015 If you have something better to provide us and help the code/L2network.eu i will be glad to see it Quote Link to comment Share on other sites More sharing options...
SweeTs Posted April 20, 2015 Share Posted April 20, 2015 Yeah, even small rework for acual code would be enough (using java 7 features, at least). Quote Link to comment Share on other sites More sharing options...
Nightw0lf Posted April 21, 2015 Share Posted April 21, 2015 Maybe it will help someone to adapt it is vote reward system with command (.getreward) is working 100% on H5 servers and its for L2Network.eu https://github.com/L2TopNetwork/TopNetowrk what tha f**k is this? he should be banned from git solutions has been told many times simple and easy dont confuze ppl with this monsters Quote Link to comment Share on other sites More sharing options...
Vagrancy™ Posted April 21, 2015 Share Posted April 21, 2015 (edited) Yeah, even small rework for acual code would be enough (using java 7 features, at least). Actually you can help us because we dont have any clue with Java if you know how to build it better add me here: Skype: sat1on Edited April 21, 2015 by Vagrancy™ Quote Link to comment Share on other sites More sharing options...
disorder25 Posted April 22, 2015 Share Posted April 22, 2015 Why this is not working? This is from the Vortex Engine, Topzone is working but Hopzone is not. I tried to use the same method from the AutoVoteManager witch is working but on this code did not work, so I need to fix this one> Thank you f\to anyone that help. protected static int getHopZoneVotes() { int votes = -1; URL url = null; URLConnection con = null; InputStream is = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(Config.VOTE_LINK_HOPZONE); con = url.openConnection(); con.addRequestProperty("User-L2Hopzone", "Mozilla/4.76"); is = con.getInputStream(); isr = new InputStreamReader(is); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("no steal make love") || inputLine.contains("no votes here") || inputLine.contains("bang, you don't have votes") || inputLine.contains("la vita e bella")) { votes = Integer.valueOf(inputLine.split(">")[2].replace("</div", "")); break; } } } catch (Exception e) { e.printStackTrace(); } return votes; } Quote Link to comment Share on other sites More sharing options...
L2 Dev Posted May 16, 2015 Share Posted May 16, 2015 I tested your code and is broken, not working at all, please fix your code before share because you waste people time, everyone is trying to make it and after they find out it's not working. Quote Link to comment Share on other sites More sharing options...
Kelrzher Posted May 16, 2015 Share Posted May 16, 2015 I tested your code and is broken, not working at all, please fix your code before share because you waste people time, everyone is trying to make it and after they find out it's not working. [GR] Den ftanei pou sas kanei share exete kai parapono mazepse ton kwlo sou kai skepsou pws na to ftiakseis , den ftaiei o author an to hopzone/topzone allazei methods sto vote kathe mera kai oute einai ipoxrewmenos kathe mera na sou ftiaxnei ta problimata, user name exeis L2Dev ante ti perimeneis lipon? [EN]sorry for the greeks but sometimes people are really stupid Quote Link to comment Share on other sites More sharing options...
L2 Dev Posted May 21, 2015 Share Posted May 21, 2015 [GR] Den ftanei pou sas kanei share exete kai parapono mazepse ton kwlo sou kai skepsou pws na to ftiakseis , den ftaiei o author an to hopzone/topzone allazei methods sto vote kathe mera kai oute einai ipoxrewmenos kathe mera na sou ftiaxnei ta problimata, user name exeis L2Dev ante ti perimeneis lipon? [EN]sorry for the greeks but sometimes people are really stupid I cannot understand what you have said to me, maybe try google translate? :D Quote Link to comment Share on other sites More sharing options...
Attila Posted June 2, 2015 Share Posted June 2, 2015 Maybe it will help someone to adapt it is vote reward system with command (.getreward) is working 100% on H5 servers and its for L2Network.eu https://github.com/L2TopNetwork/TopNetowrk wath is the html code to put on to get it work somewon can help me please thanks Quote Link to comment Share on other sites More sharing options...
iAlreadyExist Posted June 30, 2015 Share Posted June 30, 2015 can someone make it to npc? Quote Link to comment Share on other sites More sharing options...
brianxx55 Posted July 16, 2015 Share Posted July 16, 2015 (edited) :D Edited July 20, 2015 by brianxx55 Quote Link to comment Share on other sites More sharing options...
Skunkk Posted October 21, 2015 Share Posted October 21, 2015 it does not work Quote Link to comment Share on other sites More sharing options...
disorder25 Posted December 29, 2015 Share Posted December 29, 2015 I get an error on gameserver when I click on the button and nothing happen. "Sent not handled RequestBypassToServer: [vote-hopzone]" "Sent not handled RequestBypassToServer: [vote-topzone]" How do we fix that? Quote Link to comment Share on other sites More sharing options...
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.