MarGaZeaS Posted October 29, 2016 Posted October 29, 2016 (edited) thanks for share:D Edited October 29, 2016 by PaRaNoiC*
xNostradamus Posted October 30, 2016 Posted October 30, 2016 Topzone doesnt work L2J Frozen last rev can you explain me why( No errors) what link shoud i add maybe there i do a mistake cause of https:// ?
Reborn12 Posted October 30, 2016 Author Posted October 30, 2016 Https link yes but need some rework on get method too i will update it soon
xNostradamus Posted October 30, 2016 Posted October 30, 2016 Ok i will wait! if you can send m via message when you update! You will late much? Cause i set up my server and this is the part i have missing topzone reward :D
SweeTs Posted October 30, 2016 Posted October 30, 2016 (edited) You should not using this npc on live server.. But at least we can segregate crappy servers by vote manager ^_^ Edited October 30, 2016 by SweeTs
xNostradamus Posted October 30, 2016 Posted October 30, 2016 When i finish with my server, you can give it a try! This npc works fine. Topzone works with API what is that?
Reborn12 Posted October 31, 2016 Author Posted October 31, 2016 i use this on my server and works like i want...all works fine here is the fix for topzone use this link but change id https://l2topzone.com/tv.php?id=12609 public static int getTopZoneVotes() { int votes = -1; try { final URL obj = new URL(Config.VOTES_SITE_TOPZONE_URL); final HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.addRequestProperty("User-Agent", "L2TopZone"); con.setConnectTimeout(5000); final int responseCode = con.getResponseCode(); if (responseCode == 200) { try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()))) { String inputLine; while ((inputLine = in.readLine()) != null) { votes = Integer.valueOf(inputLine); break; } } } } catch (Exception e) { e.printStackTrace(); System.out.println("TOPZONE is offline. We will check reward as it will be online again."); } return votes; }
xSko0tosX Posted November 1, 2016 Posted November 1, 2016 command for open this Votemanager? its like .vote ? or smtg?
xSko0tosX Posted November 1, 2016 Posted November 1, 2016 wtf is that, i cant compile voteHandler.java ? 999999 erorrs someone can help me ?
Reborn12 Posted November 1, 2016 Author Posted November 1, 2016 Lol...thats npc if you can see in the screen..
xSko0tosX Posted November 1, 2016 Posted November 1, 2016 (edited) C:\Users\root\Desktop\NeWorksplace\L2Interlude\gameserver\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\VoteHandler.java:259: error: cannot find symbol [javac] try (Connection con = L2DatabaseFactory.getInstance().getConnection()) [javac] ^ [javac] symbol: variable L2DatabaseFactory [javac] location: class VoteHandler any idea?? Edited November 1, 2016 by xSko0tosX
Reborn12 Posted November 1, 2016 Author Posted November 1, 2016 Huh can you show the error please? 259 line votehandler.java
SweeTs Posted November 1, 2016 Posted November 1, 2016 Frozen is so old that it's using 'old school' way of db connection and the imports are another. You don't need "259 line", as the warning/error said what the issue is.. Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false);
xSko0tosX Posted November 1, 2016 Posted November 1, 2016 thanks Fixed. now one more problem i have, i compilled all . all works (i think) but.. i create the npc with Type L2VoteManager1 and i cant spawn this npc ? X_X dunno what.s wrong ;x
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now