Jump to content

LordOfDarkness

Members
  • Posts

    149
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by LordOfDarkness

  1. http://l2.hopzone.net/lineage2/moreinfo/YourServer/ID.html thats the old link for hopzone, theres a new template in hopzone is it going to work with the new link hopzone has? EDIT:I got error with the values what do i do?
  2. hello. since you all notice that hopzone have a new update (template) the hopzone votereward system doesn't work if anyone has a fixed vote reward system or any update ffor an available one. please do a reply with it! ps: free only no spamming please. BEST REGARDS! LordOfDarkness PS2 : here is my vote reward if some one want to rework it. package net.sf.l2j.gameserver.model.entity.event; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.util.Collection; import java.net.URLConnection; import net.sf.l2j.gameserver.model.entity.Announcements; import net.sf.l2j.gameserver.thread.ThreadPoolManager; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; public class vote { private int initialCheck = 60 * 1000; // 60 seconds = 1 minutes private int delayForCheck = 600 * 1000; // 300 seconds = 10 minutes private String HOPZONE = "http://l2.hopzone.net(server link deleted due to protection."; private int HopZonereward1Id = 7570; private int HopZonereward1Count = 5; private int HopZonereward2Id = 8752; private int HopZonereward2Count = 2; private int HopZonevotesForReward = 4; private int HopZonemaxRewardStack = 5000; private int HopZonelastVoteCount = 0; private vote() { System.out.println("---------------------------------"); System.out.println("Vote Reward System Initiated."); System.out.println("---------------------------------"); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } private class AutoReward implements Runnable { public void run() { System.out.println("Vote Count Check."); HopzoneCheck(); } private void HopzoneCheck() { int hopZone = getHopZoneVotes(); System.out.println("Hopzone Votes:" + hopZone); if (hopZone != 0 && getLastHopzoneVoteCount() != 0 && hopZone >= getLastHopzoneVoteCount() + HopZonevotesForReward) { Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); for (L2PcInstance player : pls) { if (player != null &&!player._fake) { L2ItemInstance item1 = player.getInventory().getItemByItemId(HopZonereward1Id); if (item1 == null || item1.getCount() < HopZonemaxRewardStack) { player.addItem("reward", HopZonereward1Id, HopZonereward1Count, player, true); } L2ItemInstance item2 = player.getInventory().getItemByItemId(HopZonereward2Id); if (item2 == null || item2.getCount() < HopZonemaxRewardStack) { player.addItem("reward", HopZonereward2Id, HopZonereward2Count, player, true); } } } setLastHopzoneVoteCount(getLastHopzoneVoteCount() + HopZonevotesForReward); } Announcements.getInstance().announceToAll("Lineage 2 Senior current hopzone votes: " + hopZone + "."); Announcements.getInstance().announceToAll("Next reward will be given at: " + (getLastHopzoneVoteCount() + HopZonevotesForReward) + " votes."); if (getLastHopzoneVoteCount() == 0) { setLastHopzoneVoteCount(hopZone); } } } private int getHopZoneVotes() { URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(HOPZONE); URLConnection con = url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(con.getInputStream()); in = new BufferedReader(isr); String inputLine; int voteCount = 0; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("moreinfo_total_rank_text")) { voteCount = Integer.valueOf(inputLine.split(">")[2].replace("</div", "")); break; } } return voteCount; } catch (IOException e) { e.printStackTrace(); return 0; } finally { try { in.close(); } catch (IOException e) {} try { isr.close(); } catch (IOException e) {} } } private void setLastHopzoneVoteCount(int voteCount) { HopZonelastVoteCount = voteCount; } private int getLastHopzoneVoteCount() { return HopZonelastVoteCount; } public static vote getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final vote _instance = new vote(); } }
  3. the change was made in hopzone.com not in topzone we need a vote reward for the new hopzone update!!!
  4. OWNED. Does it work for interlude?
  5. * @author Leandro Cândido
  6. you didnt answer the question will it open the browser?
  7. fakers are all over the internet do not trust this guy..
  8. I got eclipse error and I dont know how to fix it <terminated> Trunk build.xml [ant build] c:\program fukes\java\jre6\bin\javaw.exe anyone would like to help me? it would be greatful best regards
  9. Hi, I have a problem with the olympiad My game server keep having this following errors. Exception in thread "Thread-332" java.lang.NullPointerException at javolution.util.FastMap.getEntry(FastMap.java:418) at javolution.util.FastMap.get(FastMap.java:406) at com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad.saveNobleData (Olympiad.java:1151) at com.l2jfrozen.gameserver.model.entity.olympiad.OlympiadGameTask.run(O lympiadGameTask.java:368) at java.lang.Thread.run(Unknown Source) Exception in thread "Thread-331" java.lang.NullPointerException at javolution.util.FastMap.getEntry(FastMap.java:418) at javolution.util.FastMap.get(FastMap.java:406) at com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad.saveNobleData (Olympiad.java:1151) at com.l2jfrozen.gameserver.model.entity.olympiad.OlympiadGameTask.run(O lympiadGameTask.java:368) at java.lang.Thread.run(Unknown Source) Exception in thread "Thread-330" java.lang.NullPointerException at javolution.util.FastMap.getEntry(FastMap.java:418) at javolution.util.FastMap.get(FastMap.java:406) at com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad.saveNobleData (Olympiad.java:1151) at com.l2jfrozen.gameserver.model.entity.olympiad.OlympiadGameTask.run(O lympiadGameTask.java:368) at java.lang.Thread.run(Unknown Source) if anyone may help me to solve it..? best rewards
  10. all the information you need is given in our site you know... and what information? safe 5 max 20 blessed 100% easy farm? wow so you dont have to play any server. just quit l2 or play and dont vote
  11. I've got ACP but the first auto clicker is omg great job m8 thanks for sharing
  12. it has password whats the Rar password?
  13. I did but I still get the same error
  14. Hi! I have got a problem when I am trying to run my server from eclipse Iam gettin' this problem 'setgame.bat' is not recognized as an internal or external command, operable program or batch file. Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/l2j/gameserver /GameServer Caused by: java.lang.ClassNotFoundException: net.sf.l2j.gameserver.GameServer at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: net.sf.l2j.gameserver.GameServer. Program will e xit. Server terminated abnormaly server terminated Restart(r) or Quit(q) and it same apears when I try to run login server 'setlog.bat' is not recognized as an internal or external command, operable program or batch file. Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/l2j/loginserve r/L2LoginServer Caused by: java.lang.ClassNotFoundException: net.sf.l2j.loginserver.L2LoginServe r at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: net.sf.l2j.loginserver.L2LoginServer. Program wi ll exit. LoginServer terminated abnormaly LoginServer terminated Restart(r) or Quit(q) if any one would help me it will be awsome thanks
  15. server such it has the cat buff lvl 13 - archers/daggers pwn
  16. one word dude. If it works - AMAZING!!!! good job peace
  17. about 1 or two weeks ago
  18. omg thats a very good server its not hard as its looks like!! you guys should join it I play it my self..
  19. someone lock topic server is dead..
  20. I was not agaisnt you, please get some brain... I follow my own rules where do you see that I didnt respect you?please read before you say smth
×
×
  • Create New...