Jump to content

Spidey*

Members
  • Posts

    1,468
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Spidey*

  1. Good Lookin L2J Account Manager with email verification and Paypal Donation. Features Register new account Login Email verification Character Select Donate via Paypal Log file sql table donations Prepared statements to avoid some sql injections for more info add me at skype : spideyoriginal21 It's not something special so I trade it almost for free. some pics
  2. Paypal IPN just informs you if somebody paid you.. So it's very simple , if payment is completed just reward him with mysql queries . Use prepared statements to avoid sql injections
  3. Anybody knows how to fix this bug? they pause the l2 process while using hacker-process tool and then the player can't be targeted!
  4. I just removed the whole if , I think it's useless and it's ok! thank you for your help
  5. sorry for double post . I tried //pledge setlevel 1 and it works fine //pledge setlevel 2-5 is not! java.lang.NullPointerException at net.sf.l2j.gameserver.model.L2Clan.setLevel(L2Clan.java:805) at net.sf.l2j.gameserver.model.L2Clan.changeLevel(L2Clan.java:2385) at net.sf.l2j.gameserver.handler.admincommandhandlers.AdminPledge.useAd minCommand(AdminPledge.java:120) at net.sf.l2j.gameserver.network.clientpackets.SendBypassBuildCmd.runIm pl(SendBypassBuildCmd.java:68) at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L 2GameClientPacket.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
  6. public void setLevel(int level) { _level = level; if(_forum == null) { if(_level >= 2) { _forum = ForumsBBSManager.getInstance().getForumByName("ClanRoot").getChildByName(_name); if(_forum == null) // Line 806 { _forum = ForumsBBSManager.getInstance().createNewForum(_name,ForumsBBSManager.getInstance().getForumByName("ClanRoot"),Forum.CLAN,Forum.CLANMEMBERONLY,getClanId()); } } } } I see it's ok ( I never modified this file , and it was working fine)
  7. the error is not saved in the error log. just another one coming from clans java.lang.NullPointerException at net.sf.l2j.gameserver.model.L2Clan.setLevel(L2Clan.java:805) at net.sf.l2j.gameserver.model.L2Clan.changeLevel(L2Clan.java:2385) at net.sf.l2j.gameserver.model.L2Clan.levelUpClan(L2Clan.java:2359) at net.sf.l2j.gameserver.model.actor.instance.L2VillageMasterInstance.onBypassFeedback(L2VillageMasterInstance.java:155) at net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:350) at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 7 Ìáú 2015 2:52:25 ìì net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer runImpl pack is old based in L2jteon as far I remember
  8. Hello everybody ! After every server restart clans can't be restored. The error is : Error while restoring clan : java.lang.NullPointerException (This error is repeated for every clan) the next line is : Restored 8 clans from database clan exists in clan_data but is like there is not! It comes from net.sf.l2j.gameserver.model.L2Clan.java and the file is 100% unmodified! I am sure I was using this pack in the past without problems. Now I just re-compiled the source! I was thinking if it's the problem comes from jdk version but I tried to run the server and compile the source with jdk6 , jdk7 and jdk8 Any idea? thank you in advance
  9. Ο συγκεκριμένος πωλητής δεν πρέπει να είχε άλλη επιλογή οσο για το άρθρο στο insomnia δεν νομίζω να ισχυουν ολα όσα γραφει , για το usps άλλοι γράφουν οτι ειναι η καλύτερη λύση άλλοι γράφουν οτι ειναι η χειρότερη , άντε βγάλε άκρη .
  10. I downloaded this shit and I can say its one of the worst paid pack!
  11. WTB Valiance L2J-Pack with source.
  12. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/custom/VoteRewardHopzone.java =================================================================== --- java/net/sf/l2j/custom/VoteRewardHopzone.java (revision 0) +++ java/net/sf/l2j/custom/VoteRewardHopzone.java (revision 0) @@ -0,0 +1,317 @@ +/* + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <http://www.gnu.org/licenses/>. + */ +package net.sf.l2j.custom; + +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.net.URL; +import java.net.URLConnection; +import java.util.Collection; +import java.util.HashMap; + +import net.sf.l2j.Config; +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.ThreadPoolManager; +import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +/** + * @author Anarchy + * + */ +public class VoteRewardHopzone +{ + // Configurations. + private static String hopzoneUrl = Config.HOPZONE_SERVER_LINK; + private static String page1Url = Config.HOPZONE_FIRST_PAGE_LINK; + private static int voteRewardVotesDifference = Config.HOPZONE_VOTES_DIFFERENCE; + private static int firstPageRankNeeded = Config.HOPZONE_FIRST_PAGE_RANK_NEEDED; + private static int checkTime = 60*1000*Config.HOPZONE_REWARD_CHECK_TIME; + + // Don't-touch variables. + private static int lastVotes = 0; + private static HashMap<String, Integer> playerIps = new HashMap<>(); + + public static void updateConfigurations() + { + hopzoneUrl = Config.HOPZONE_SERVER_LINK; + page1Url = Config.HOPZONE_FIRST_PAGE_LINK; + voteRewardVotesDifference = Config.HOPZONE_VOTES_DIFFERENCE; + firstPageRankNeeded = Config.HOPZONE_FIRST_PAGE_RANK_NEEDED; + checkTime = 60*1000*Config.HOPZONE_REWARD_CHECK_TIME; + } + + public static void getInstance() + { + System.out.println("Hopzone - Vote reward system initialized."); + ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable() + { + @Override + public void run() + { + if (Config.ALLOW_HOPZONE_VOTE_REWARD) + { + reward(); + } + else + { + return; + } + } + }, checkTime/2, checkTime); + } + + static void reward() + { + int firstPageVotes = getFirstPageRankVotes(); + int currentVotes = getVotes(); + + if (firstPageVotes == -1 || currentVotes == -1) + { + if (firstPageVotes == -1) + { + System.out.println("There was a problem on getting Hopzone votes from server with rank "+firstPageRankNeeded+"."); + } + if (currentVotes == -1) + { + System.out.println("There was a problem on getting Hopzone server votes."); + } + + return; + } + + if (lastVotes == 0) + { + lastVotes = currentVotes; + Announcements.announceToAll("Hopzone: Vote count is "+currentVotes+"."); + Announcements.announceToAll("Hopzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for reward."); + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on hopzone: "+currentVotes); + System.out.println("Votes needed for reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes)); + } + if (firstPageVotes-lastVotes <= 0) + { + Announcements.announceToAll("Hopzone: We are in the top "+firstPageRankNeeded+", so the reward will be big."); + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server is on the top "+firstPageRankNeeded+" of hopzone."); + } + } + else + { + Announcements.announceToAll("Hopzone: We need "+(firstPageVotes-lastVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of Hopzone for big reward."); + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes)); + } + } + return; + } + + if (currentVotes >= lastVotes+voteRewardVotesDifference) + { + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); + if (firstPageVotes-currentVotes <= 0) + { + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on hopzone: "+currentVotes); + System.out.println("Server is on the first page of hopzone."); + System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Hopzone: Everyone has been rewarded with big reward."); + Announcements.announceToAll("Hopzone: Current vote count is "+currentVotes+"."); + for (L2PcInstance p : pls) + { + boolean canReward = false; + String pIp = p.getClient().getConnection().getInetAddress().getHostAddress(); + if (playerIps.containsKey(pIp)) + { + int count = playerIps.get(pIp); + if (count < Config.HOPZONE_DUALBOXES_ALLOWED) + { + playerIps.remove(pIp); + playerIps.put(pIp, count+1); + canReward = true; + } + } + else + { + canReward = true; + playerIps.put(pIp, 1); + } + if (canReward) + { + for (int i = 0; i < Config.HOPZONE_BIG_REWARD.length; i++) + { + p.addItem("Vote reward.", Config.HOPZONE_BIG_REWARD[i][0], Config.HOPZONE_BIG_REWARD[i][1], p, true); + } + } + else + { + p.sendMessage("Already "+Config.HOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded."); + } + } + playerIps.clear(); + } + else + { + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on hopzone: "+currentVotes); + System.out.println("Server votes needed for first page: "+(firstPageVotes-lastVotes)); + System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Hopzone: Everyone has been rewarded with small reward."); + Announcements.announceToAll("Hopzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Hopzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of Hopzone for big reward."); + for (L2PcInstance p : pls) + { + boolean canReward = false; + String pIp = p.getClient().getConnection().getInetAddress().getHostAddress(); + if (playerIps.containsKey(pIp)) + { + int count = playerIps.get(pIp); + if (count < Config.HOPZONE_DUALBOXES_ALLOWED) + { + playerIps.remove(pIp); + playerIps.put(pIp, count+1); + canReward = true; + } + } + else + { + canReward = true; + playerIps.put(pIp, 1); + } + if (canReward) + { + for (int i = 0; i < Config.HOPZONE_SMALL_REWARD.length; i++) + { + p.addItem("Vote reward.", Config.HOPZONE_SMALL_REWARD[i][0], Config.HOPZONE_SMALL_REWARD[i][1], p, true); + } + } + else + { + p.sendMessage("Already "+Config.HOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded."); + } + } + playerIps.clear(); + } + + lastVotes = currentVotes; + } + else + { + if (firstPageVotes-currentVotes <= 0) + { + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on hopzone: "+currentVotes); + System.out.println("Server is on the first page of hopzone."); + System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Hopzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Hopzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for big reward."); + } + else + { + if (Config.ALLOW_HOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on hopzone: "+currentVotes); + System.out.println("Server votes needed for first page: "+(firstPageVotes-lastVotes)); + System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Hopzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Hopzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for small reward."); + Announcements.announceToAll("Hopzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of Hopzone for big reward."); + } + } + } + + private static int getFirstPageRankVotes() + { + InputStreamReader isr = null; + BufferedReader br = null; + + try + { + URLConnection con = new URL(page1Url).openConnection(); + con.addRequestProperty("User-Agent", "Mozilla/4.76"); + isr = new InputStreamReader(con.getInputStream()); + br = new BufferedReader(isr); + + String line; + int i = 0; + while ((line = br.readLine()) != null) + { + if (line.contains("<span class=\"no\">"+firstPageRankNeeded+"</span>")) + { + i++; + } + if (line.contains("<span class=\"rank anonymous tooltip\"") && i == 1) + { + i = 0; + int votes = Integer.valueOf(line.replaceAll("[^\\d]", "")); + return votes; + } + } + + br.close(); + isr.close(); + } + catch (Exception e) + { + System.out.println(e); + System.out.println("Error while getting Hopzone server vote count."); + } + + return -1; + } + + private static int getVotes() + { + InputStreamReader isr = null; + BufferedReader br = null; + + try + { + URLConnection con = new URL(hopzoneUrl).openConnection(); + con.addRequestProperty("User-Agent", "Mozilla/4.76"); + isr = new InputStreamReader(con.getInputStream()); + br = new BufferedReader(isr); + + String line; + while ((line = br.readLine()) != null) + { + if (line.contains("no steal make love")||line.contains("no votes here")||line.contains("bang, you don't have votes")|| line.contains("la vita e bella")) + { + int votes = Integer.valueOf(line.split(">")[2].replace("</span", "")); + return votes; + } + } + + br.close(); + isr.close(); + } + catch (Exception e) + { + System.out.println(e); + System.out.println("Error while getting server vote count."); + } + + return -1; + } +} \ No newline at end of file Index: java/net/sf/l2j/custom/VoteRewardTopzone.java =================================================================== --- java/net/sf/l2j/custom/VoteRewardTopzone.java (revision 0) +++ java/net/sf/l2j/custom/VoteRewardTopzone.java (revision 0) @@ -0,0 +1,314 @@ +/* + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <http://www.gnu.org/licenses/>. + */ +package net.sf.l2j.custom; + +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.net.URL; +import java.net.URLConnection; +import java.util.Collection; +import java.util.HashMap; + +import net.sf.l2j.Config; +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.ThreadPoolManager; +import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +/** + * @author Anarchy + * + */ +public class VoteRewardTopzone +{ + // Configurations. + private static String topzoneUrl = Config.TOPZONE_SERVER_LINK; + private static String page1Url = Config.TOPZONE_FIRST_PAGE_LINK; + private static int voteRewardVotesDifference = Config.TOPZONE_VOTES_DIFFERENCE; + private static int firstPageRankNeeded = Config.TOPZONE_FIRST_PAGE_RANK_NEEDED; + private static int checkTime = 60*1000*Config.TOPZONE_REWARD_CHECK_TIME; + + // Don't-touch variables. + private static int lastVotes = 0; + private static HashMap<String, Integer> playerIps = new HashMap<>(); + + public static void updateConfigurations() + { + topzoneUrl = Config.TOPZONE_SERVER_LINK; + page1Url = Config.TOPZONE_FIRST_PAGE_LINK; + voteRewardVotesDifference = Config.TOPZONE_VOTES_DIFFERENCE; + firstPageRankNeeded = Config.TOPZONE_FIRST_PAGE_RANK_NEEDED; + checkTime = 60*1000*Config.TOPZONE_REWARD_CHECK_TIME; + } + + public static void getInstance() + { + System.out.println("Topzone - Vote reward system initialized."); + ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable() + { + @Override + public void run() + { + if (Config.ALLOW_TOPZONE_VOTE_REWARD) + { + reward(); + } + else + { + return; + } + } + }, checkTime/2, checkTime); + } + + static void reward() + { + int firstPageVotes = getFirstPageRankVotes(); + int currentVotes = getVotes(); + + if (firstPageVotes == -1 || currentVotes == -1) + { + if (firstPageVotes == -1) + { + System.out.println("There was a problem on getting Topzone votes from server with rank "+firstPageRankNeeded+"."); + } + if (currentVotes == -1) + { + System.out.println("There was a problem on getting Topzone server votes."); + } + + return; + } + + if (lastVotes == 0) + { + lastVotes = currentVotes; + Announcements.announceToAll("Topzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for reward."); + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on topzone: "+currentVotes); + System.out.println("Votes needed for reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes)); + } + if (firstPageVotes-lastVotes <= 0) + { + Announcements.announceToAll("Topzone: We are in the top "+firstPageRankNeeded+" of topzone, so the reward will be big."); + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone."); + } + } + else + { + Announcements.announceToAll("Topzone: We need "+(firstPageVotes-lastVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward."); + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes)); + } + } + return; + } + + if (currentVotes >= lastVotes+voteRewardVotesDifference) + { + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); + if (firstPageVotes-currentVotes <= 0) + { + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on topzone: "+currentVotes); + System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone."); + System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Topzone: Everyone has been rewarded with big reward."); + Announcements.announceToAll("Topzone: Current vote count is "+currentVotes+"."); + for (L2PcInstance p : pls) + { + boolean canReward = false; + String pIp = p.getClient().getConnection().getInetAddress().getHostAddress(); + if (playerIps.containsKey(pIp)) + { + int count = playerIps.get(pIp); + if (count < Config.TOPZONE_DUALBOXES_ALLOWED) + { + playerIps.remove(pIp); + playerIps.put(pIp, count+1); + canReward = true; + } + } + else + { + canReward = true; + playerIps.put(pIp, 1); + } + if (canReward) + { + for (int i = 0; i < Config.TOPZONE_BIG_REWARD.length; i++) + { + p.addItem("Vote reward.", Config.TOPZONE_BIG_REWARD[i][0], Config.TOPZONE_BIG_REWARD[i][1], p, true); + } + } + else + { + p.sendMessage("Already "+Config.TOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded."); + } + } + playerIps.clear(); + } + else + { + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on topzone: "+currentVotes); + System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes)); + System.out.println("Votes needed for next reward: "+((currentVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Topzone: Everyone has been rewarded with small reward."); + Announcements.announceToAll("Topzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Topzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward."); + for (L2PcInstance p : pls) + { + boolean canReward = false; + String pIp = p.getClient().getConnection().getInetAddress().getHostAddress(); + if (playerIps.containsKey(pIp)) + { + int count = playerIps.get(pIp); + if (count < Config.TOPZONE_DUALBOXES_ALLOWED) + { + playerIps.remove(pIp); + playerIps.put(pIp, count+1); + canReward = true; + } + } + else + { + canReward = true; + playerIps.put(pIp, 1); + } + if (canReward) + { + for (int i = 0; i < Config.TOPZONE_SMALL_REWARD.length; i++) + { + p.addItem("Vote reward.", Config.TOPZONE_SMALL_REWARD[i][0], Config.TOPZONE_SMALL_REWARD[i][1], p, true); + } + } + else + { + p.sendMessage("Already "+Config.TOPZONE_DUALBOXES_ALLOWED+" character(s) of your ip have been rewarded, so this character won't be rewarded."); + } + } + playerIps.clear(); + } + + lastVotes = currentVotes; + } + else + { + if (firstPageVotes-currentVotes <= 0) + { + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on topzone: "+currentVotes); + System.out.println("Server is on the top "+firstPageRankNeeded+" of topzone."); + System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Topzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for big reward."); + } + else + { + if (Config.ALLOW_TOPZONE_GAME_SERVER_REPORT) + { + System.out.println("Server votes on topzone: "+currentVotes); + System.out.println("Server votes needed for top "+firstPageRankNeeded+": "+(firstPageVotes-lastVotes)); + System.out.println("Votes needed for next reward: "+((lastVotes+voteRewardVotesDifference)-currentVotes)); + } + Announcements.announceToAll("Topzone: Current vote count is "+currentVotes+"."); + Announcements.announceToAll("Topzone: We need "+((lastVotes+voteRewardVotesDifference)-currentVotes)+" vote(s) for small reward."); + Announcements.announceToAll("Topzone: We need "+(firstPageVotes-currentVotes)+" vote(s) to get to the top "+firstPageRankNeeded+" of topzone for big reward."); + } + } + } + + private static int getFirstPageRankVotes() + { + InputStreamReader isr = null; + BufferedReader br = null; + + try + { + URLConnection con = new URL(page1Url).openConnection(); + con.addRequestProperty("User-Agent", "L2TopZone"); + isr = new InputStreamReader(con.getInputStream()); + br = new BufferedReader(isr); + + String line; + while ((line = br.readLine()) != null) + { + if(line.contains("<div class=\"slr\">"+firstPageRankNeeded)) + { + int votes = Integer.valueOf(line.split(">")[4].replace("</span", "")); + return votes; + } + } + + br.close(); + isr.close(); + } + catch (Exception e) + { + System.out.println(e); + System.out.println("Error while getting server vote count."); + } + + return -1; + } + + private static int getVotes() + { + InputStreamReader isr = null; + BufferedReader br = null; + + try + { + URLConnection con = new URL(topzoneUrl).openConnection(); + con.addRequestProperty("User-Agent", "L2TopZone"); + isr = new InputStreamReader(con.getInputStream()); + br = new BufferedReader(isr); + + boolean got = false; + + String line; + while ((line = br.readLine()) != null) + { + if (line.contains("<div class=\"rank\"><div class=\"votes2\">Votes:<br>") && !got) + { + got = true; + int votes = Integer.valueOf(line.split("<div class=\"rank\"><div class=\"votes2\">Votes:<br>")[1].replace("</div></div>", "")); + return votes; + } + } + + br.close(); + isr.close(); + } + catch (Exception e) + { + System.out.println(e); + System.out.println("Error while getting server vote count."); + } + + return -1; + } +} \ No newline at end of file I just fixed the code cause Topzone changed some things , its for aCis 300 , working 100%
  13. Φίλε σε ευχαριστώ πολυ για την απάντηση , πήγα στα ελτα και ήταν εκεί το πακέτο απο 9 Δεκεμβρίου !! δεν μου ήρθε καμία ειδοποίηση στο σπίτι πάντως ...
  14. Είχα κανει μια παραγγελία απο ebay πριν τις γιορτές αλλα δεν μου ήρθε ποτε σπίτι , ο πωλητής μου έδωσε τον tracking αριθμό και στο site του ελτα μου βγάζει αυτό : Τ εννοεί με το κλείσιμο .... Ειναι ακόμα εδώ το αντικείμενο η τα γυρνάνε πίσω αν καθυστερήσεις ; Ξέρει κανεις ; Ευχαριστώ
  15. I want to trade 8,2 euro to paypal for a 10 Euro paysafecard.. Exchange WILL BE INSTANT!! PM me I need the paysafe ASAP for a betting company that's why I want this trade :) Thank you In advance! PS. Paypal has a little fee I want first the PIN
  16. Ah lol Ofc It cant find it.. It's not a Thomson Router.. I have to use aircrack/airodump to crack it ;) btw I think I found a way to create a hex list from 00 00 00 00 00 - FF FF FF FF FF so request for lock
  17. Hello I want to hack a WPA wifi network (it's Greek Forthnet) and as far I know the code is about 8 or 10 characters ( a hex number ) for example : A9B8343331 I have backtrack 5 r3 but I dont have the correct wordlist.. Somebody help me :) thx in advance
×
×
  • Create New...