Selling interface source for newest client update rose vain p520 + wolf p509 (LAST UPDATE)
600$ (P520)
400$ (P509)
includes:
- NWindow
- L2 Editor
- DAT Editor
- Client+System clean
- Interface sources
- XDat Editor
ALL FEATURES ARE ONLY AVAILABLE IN THE P520 INTERFACE SOURCE
The P509 interface is retail.
ALL FEATURES ON P520
AUTOHUNT IMPROVED
GUARANTEED SYSTEM
AUTO-COMPOUND
MASS ENCHANT IMPROVED
ALL AVAILABLE SKILL LEARN
AUTO RANDOM CRAFT
SHORTCUT IMPROVED
It is, kind of. Only invited participants have the links. Sorry but not sorry, this forum is dead for ages, so blame whoever you wish to blame. Cheers.
have played many years ago excited to play again on launch. i have seen wonderful things about the server it looks how it should be theres hard work and it shows. it lives up to the glory days of l2 elixir.
I wish the best of luck for the project i will be playing actively!
Question
LordOfDarkness
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(); } }2 answers to this question
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