MarGaZeaS Posted October 29, 2016 Share Posted October 29, 2016 (edited) thanks for share:D Edited October 29, 2016 by PaRaNoiC* Link to comment Share on other sites More sharing options...
xNostradamus Posted October 30, 2016 Share 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:// ? Link to comment Share on other sites More sharing options...
Reborn12 Posted October 30, 2016 Author Share Posted October 30, 2016 Https link yes but need some rework on get method too i will update it soon Link to comment Share on other sites More sharing options...
xNostradamus Posted October 30, 2016 Share 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 Link to comment Share on other sites More sharing options...
SweeTs Posted October 30, 2016 Share 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 Link to comment Share on other sites More sharing options...
xNostradamus Posted October 30, 2016 Share 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? Link to comment Share on other sites More sharing options...
Reborn12 Posted October 31, 2016 Author Share 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; } Link to comment Share on other sites More sharing options...
xSko0tosX Posted November 1, 2016 Share Posted November 1, 2016 command for open this Votemanager? its like .vote ? or smtg? Link to comment Share on other sites More sharing options...
xSko0tosX Posted November 1, 2016 Share Posted November 1, 2016 wtf is that, i cant compile voteHandler.java ? 999999 erorrs someone can help me ? Link to comment Share on other sites More sharing options...
Reborn12 Posted November 1, 2016 Author Share Posted November 1, 2016 Lol...thats npc if you can see in the screen.. Link to comment Share on other sites More sharing options...
xSko0tosX Posted November 1, 2016 Share 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 Link to comment Share on other sites More sharing options...
Reborn12 Posted November 1, 2016 Author Share Posted November 1, 2016 Huh can you show the error please? 259 line votehandler.java Link to comment Share on other sites More sharing options...
SweeTs Posted November 1, 2016 Share 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); Link to comment Share on other sites More sharing options...
xSko0tosX Posted November 1, 2016 Share 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 Link to comment Share on other sites More sharing options...
Reborn12 Posted November 1, 2016 Author Share Posted November 1, 2016 Did you add the instance? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now