Jump to content

kreis

Premium Member
  • Posts

    40
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by kreis

  1. Custom High Five server L2insolence will open 2023-08-24 21:00 GMT+2 ! ! ! Web page: http://l2insolence.eu/ Rates XP, SP: 25x Spoil and Drop: 10x Adena: 20x Server Hard Farm Enchantment Safe enchant Weapon: +20099 Safe enchant Armor: +20099 Max enchant Weapon: +20099 Max enchant Armor: +20099 Normal scrolls: 100% Blessed scrolls: 100% In server you will find armors: Zubei's Upgraded > Ixion > Poseidon > Scarlet > Chaos > Ferrum > Heaven > Gold > Seraph > Eternal and Elite Elegia. Weapons: Elegia > Ixion > Black > Dragon > Raid Boss 1lvl/2lvl/3lvl > Balrog > Legend. Jewels: Vesper > Vorpal > Elegia > Ferrum > Tauti. Cloaks: Icion > Stark > Poseidon > Heaven > Scarlet > Heroes > Cold Darknes > Radian Light > Bloody Maiden > Wild Corsair. And mutch mutch more, hope in server and look in all stuff. Server is hard farm so you can use farming bots etc.
  2. Custom High Five server L2insolence will open 2023-08-24 21:00 GMT+2 ! ! ! Web page: http://l2insolence.eu/ Rates XP, SP: 25x Spoil and Drop: 10x Adena: 20x Server Hard Farm Enchantment Safe enchant Weapon: +20099 Safe enchant Armor: +20099 Max enchant Weapon: +20099 Max enchant Armor: +20099 Normal scrolls: 100% Blessed scrolls: 100% In server you will find armors: Zubei's Upgraded > Ixion > Poseidon > Scarlet > Chaos > Ferrum > Heaven > Gold > Seraph > Eternal and Elite Elegia. Weapons: Elegia > Ixion > Black > Dragon > Raid Boss 1lvl/2lvl/3lvl > Balrog > Legend. Jewels: Vesper > Vorpal > Elegia > Ferrum > Tauti. Cloaks: Icion > Stark > Poseidon > Heaven > Scarlet > Heroes > Cold Darknes > Radian Light > Bloody Maiden > Wild Corsair. And mutch mutch more, hope in server and look in all stuff. Server is hard farm so you can use farming bots etc. https://discord.gg/FASrvBECe
  3. And where i can find that index file , bcs i dont cnow, im still learning never used eclipse or somthing, tryed looking some guides but in those guides there is no errors or somthing
  4. [javac] error: error reading C:\Users\xxx\Desktop\l2sorce\L2J_SunriseProject_Core\dist\libs\mmocore.jar; java.net.URISyntaxException: Illegal character in path at index 70: file:/C:/Users/xxx/Desktop/l2sorce/L2J_SunriseProject_Core/dist/libs/${manifest.libs} this error i geting when i try to compile, maybe some one can help to solve this?
  5. Hello im still learning and tryed use google for problem but cant find maybe some one can help me? warning: [options] bootstrap class path not set in conjunction with -source 8 this problem
  6. Website: http://l2insolence.eu Client High Five Server It's full custom server, armors, weapons, jewels and many more on game. Server Started 31 July GMT+2 20:00 Rates Experience (EXP): x25 Skill Points (SP): x25 Adena: x10 Drop Items: x10 Spoil: x10 Weight Limit: unlimited Enchant Rates: Safe Enchant: +20099 Maximum Enchant: +20099 Normal Scroll Chance: 100% Blessed Scroll Chance: 100% Buffs, Dances and Songs Duraction: 2h Buffs, Dances and Songs Slots: 24/12 RAID BOSS Boss: Glakias Respawn Delay: 10 sec. Boss: Freya Respawn Delay: 10 sec. Boss: Sailren Respawn Delay: 10 sec. Boss: KING Respawn Delay: 10 sec. Boss: Beghemoth Leader Respawn Delay: 10 sec. Boss: Skylancer Respawn Delay: 10 sec. Boss: Gordon Respawn Delay: 10 sec. Boss: Golkonda Respawn Delay: 10 sec. Boss: Frintezza Respawn Delay: 10 sec. Boss: Mutant Respawn Delay: 10 sec. Boss: Darion Respawn Delay: 10 sec. Boss: Ekimus Respawn Delay: 10 sec. Boss: Ember Respawn Delay: 10 sec. OTHER FEATURES Report System Subclass free without Quest Subclass Maximum Level: 85 Class Master Offline Shop Mode Auto Learn Skills Auto Loot Vitality System Community Board Drop-list Shift+clik Champion System Wedding System
  7. Sory for forgot add this its for l2j server h5
  8. Hello SailFpO maybe you can help and tell me how can i make empti scroll thets convert my sp to a full sp scroll and then later can sell to some other player? i meen to make player sell they own sp. Sory for my english.
  9. Hello i have two questios how i can make to convert sp to scroll like using sp scroll and its taking yurs sp into scroll and later you can sell thet scroll to some one? Other thing is how can i make into item drop chance or rate bonus add like making this <set order="0x08" stat="pAtk" val="135" /> but im looking for add bonus drop rate or chance? I meen how i can convert sp to item?
  10. Hello im looing to buy good web payment/donation system. Somthing like buy online coins and auto send to character in game.
  11. Hello just tryed to start game server and got this error, loginserver started normal. but gameserver nothing. Im using java 8
  12. Hello sinc i saw other post not saw any of it who shered etc. Can some one help me whith link or java i need l2j high five rebirth system like makeing character back to 0lvl and add some item for exaple rebirt scroll etc. Sory for me english.
  13. Hello im looking for some dev who can help me make registration in web where peaple can regster in web and just then log in game, vote on web and get reward in account panel, make donation etc, ofc its not free im willing to pay monay if need. Sory for me english im not good on it.
  14. maybe can you help me , how to disable Quiz event on l2jmythras files its shered here [15:23:48] INFO Dress me system: Load 27 Big Sword(s). [15:23:48] INFO Dress me system: Load 4 Rod(s). [15:23:48] INFO Dress me system: Load 44 Big Blunt(s). [15:23:48] INFO Dress me system: Load 20 Crossbow(s). [15:23:48] INFO Dress me system: Load 21 Rapier(s). [15:23:48] INFO Dress me system: Load 21 Ancient Sword(s). [15:23:48] INFO Dress me system: Load 9 Dual Dagger(s). Loading Quiz.java [15:23:51] INFO Loaded Service: ScripsConfig [15:23:51] INFO Loaded Service: SellPcService [15:23:51] INFO CommunityBoard: Manage Career service loaded. [15:23:51] INFO CommunityBoard: Auction System Service loaded. [15:23:51] INFO CommunityBoard: service loaded. [15:23:51] INFO CommunityBoard: Bosses loaded. [15:23:51] INFO CommunityBoard: Clan Community service loaded. [15:23:51] INFO CommunityBoard: Drop Calculator service loaded. im tring to find where i can turn it off but cant. can you help?
  15. Hello all how can i disable Quiz event [15:23:48] INFO Dress me system: Load 44 Big Blunt(s). [15:23:48] INFO Dress me system: Load 20 Crossbow(s). [15:23:48] INFO Dress me system: Load 21 Rapier(s). [15:23:48] INFO Dress me system: Load 21 Ancient Sword(s). [15:23:48] INFO Dress me system: Load 9 Dual Dagger(s). Loading Quiz.java [15:23:51] INFO Loaded Service: ScripsConfig [15:23:51] INFO Loaded Service: SellPcService [15:23:51] INFO CommunityBoard: Manage Career service loaded. [15:23:51] INFO CommunityBoard: Auction System Service loaded. [15:23:51] INFO CommunityBoard: service loaded. in what file i can turn it off , can some one give some info/help, thx you.
  16. final boolean is83 = InstanceManager.getInstance().getPlayerWorld(player).getTemplateId() == TEMPLATE_ID_83 ? true : false; and whant can by wrong whith this line? i need to chose true or false?
  17. [21:28:25] ERROR: /root/game/data/scripts/handlers/InstanceLoader.java java.lang.NullPointerException at instances.CavernOfThePirateCaptain.CavernOfThePirateCaptain.checkConditions(CavernOfThePirateCaptain.java:220) at instances.AbstractInstance.enterInstance(AbstractInstance.java:76) at instances.CavernOfThePirateCaptain.CavernOfThePirateCaptain.onAdvEvent(CavernOfThePirateCaptain.java:290) at l2r.gameserver.model.quest.Quest.notifyEvent(Quest.java:550) at l2r.gameserver.model.actor.instance.L2PcInstance.processQuestEvent(L2PcInstance.java:1544) at handlers.bypasshandlers.QuestLink.useBypass(QuestLink.java:76) at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:296) at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:73) at l2r.gameserver.network.L2GameClient.run(L2GameClient.java:1124) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [21:28:25] ERROR: CavernOfThePirateCaptain: java.lang.NullPointerException at instances.CavernOfThePirateCaptain.CavernOfThePirateCaptain.checkConditions(CavernOfThePirateCaptain.java:220) at instances.AbstractInstance.enterInstance(AbstractInstance.java:76) at instances.CavernOfThePirateCaptain.CavernOfThePirateCaptain.onAdvEvent(CavernOfThePirateCaptain.java:290) at l2r.gameserver.model.quest.Quest.notifyEvent(Quest.java:550) at l2r.gameserver.model.actor.instance.L2PcInstance.processQuestEvent(L2PcInstance.java:1544) at handlers.bypasshandlers.QuestLink.useBypass(QuestLink.java:76) at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:296) at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:73) at l2r.gameserver.network.L2GameClient.run(L2GameClient.java:1124) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) i cant find whats is wrong can some one help me? using high five files l2j
  18. not mythras files.... and its not same server.
  19. L2DragonLand Hello all new opened High Five server. Website: http://l2dragonland.eu Server Information - Rate: 20 xp 20 sp 20 adena - Boss: 1x - Enchant: 85% - Blessed Scroll Enchant: 85% - Safe: +10 - Wepon safe: +14 - Max. Enchant: +100 - Buff Time: 2h - Offline Trade 100% Automatic Events - Team vs Team, Capture the Flag, Domination, Mass Domination, Deathmatch, Last Man Standing, TvT Advanced, Single Players Fight, Party Fights, Korean Style, Mini TvT. Important Notes - Inactive accounts to 3 months, will be deleted. Features and basic principles Our administrators, try to keep the server as fair and balanced as possible. With everything we are against any change in skills and classes, to preserve as much of the original game, however, added a few methods needed for a PvP server. Preserve much to stay and satisfaction of our players on the server. Forum You can use our forum to take your questions and also report errors, bugs, suggestions, etc... Make good use of our forum, read the rules. Vote Reward You can vote for our server, and be rewarded! Every 12 hours and get a Vote Rune (add +8% P.def/M.def/P.atk/M.atk) 50kk Adena x1 fir for use on enchant npc and Vote Coinwhere you can exchange it for special items and gain entry to special areas. Remember above all, your vote is always very important for the proper development of the population and popularity of the server. Donations All donations are to maintain the optimal structure of the server. The rewards available to donors are the same as any player can get without giving. Our server does not have any intent to benefit donors with unusual advantages, this is totally against the principles of ethics of our server. Structure Our server is hosted in Lithuanian. Server opened The server officially launched on 21/08/2017.
  20. package handler.voicecommands; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import l2f.commons.util.Rnd; import l2f.gameserver.Config; import l2f.gameserver.ThreadPoolManager; import l2f.gameserver.database.DatabaseFactory; import l2f.gameserver.handler.voicecommands.IVoicedCommandHandler; import l2f.gameserver.handler.voicecommands.VoicedCommandHandler; import l2f.gameserver.model.GameObjectsStorage; import l2f.gameserver.model.Player; import l2f.gameserver.network.serverpackets.Say2; import l2f.gameserver.network.serverpackets.components.ChatType; import l2f.gameserver.scripts.Functions; import l2f.gameserver.scripts.ScriptFile; import l2f.gameserver.utils.BatchStatement; import l2f.gameserver.vote.VoteRead; public class RewardVote implements IVoicedCommandHandler, ScriptFile { private static enum ValueType { ACCOUNT_NAME, IP_ADRESS, HWID } private static final String[] COMMANDS_LIST = new String[] { "vote", "getreward", "getvote", "votereward", "voteme", "fuckvote", "rewardget", "reward", "votereward"}; // Rewards private static final int[][] BLESSED_ENCHANTS_CATEGORY = { { 6673, 1 } }; private static final int[] PERMANENT_CATEGORY = { 37004, // Vote Rune 1 }; private static final int[][] MISC_CATEGORY = { { 37007, 1 }, { 37007, 2 }, { 37007, 3 } }; private static final double[][] RANDOM_CATEGORY = { { 6577,// 1 Blessed Enchant Weapon S 1, 0.05 }, { 6578,// 1 Blessed Enchant Armor S 1, 0.05 }, { 13071,// 1 Red Soul Crystal - Stage 16 1, 0.05 }, { 13072,// 1 Blue Soul Crystal - Stage 16 1, 0.05 }, { 13073,// 1 Green Soul Crystal - Stage 16 1, 0.155 }, { 10480,// 1 Red Soul Crystal - Stage 15 1, 0.155 }, { 10481,// 1 Blue Soul Crystal - Stage 15 1, 0.155 }, { 10482,// 1 Green Soul Crystal - Stage 15 1, 0.566 }, { 14169,// 1 Top Life Stone Level 84 1, 1.25 }, { 14168,// 1 High Life Stone Level 84 1, 2.0 }, { 13073,// 1 Giant's Codex - Mastery 1, 3.333 }, { 959,// 1 Enchant Weapon S 1, 3.0 }, { 6622,// 1 Giant's Codex 3, 8.0 }, { 960,// 1 Enchant Armor S 1, 8.0 }, { 9552,// 1 Fire Crystal 1, 8.0 }, { 9553,// 1 Water Crystal 1, 8.0 }, { 9556,// 1 Dark Crystal 1, 8.0 }, { 9557,// 1 Holy Crystal 1, 8.0 }, { 9554,// 1 Earth Crystal 1, 8.0 }, { 9555,// 1 Wind Crystal 1, 8.0 }, { 9546,// 1 Fire Stone 2, 20.0 }, { 9547,// 1 Water Stone 2, 20.0 }, { 9548,// 1 Earth Stone 2, 20.0 }, { 9549,// 1 Wind Stone 2, 20.0 }, { 9550,// 1 Dark Stone 2, 20.0 }, { 9551,// 1 Holy Stone 2, 100.0 }, }; private static final long VOTE_COMMAND_REUSE = 5 * 60 * 1000L; // 5 Minutes private static final long VOTE_PENALTY = 12 * 60 * 60 * 1000L; // 12 Hours public static final Map<Integer, Long> _votePlayerReuses = new ConcurrentHashMap<Integer, Long>(); public static final Map<String, Long> _accountPenalties = new ConcurrentHashMap<String, Long>(); public static final Map<String, Long> _ipPenalties = new ConcurrentHashMap<String, Long>(); public static final Map<String, Long> _hwidPenalties = new ConcurrentHashMap<String, Long>(); public RewardVote() { // If there is a set vote reward message, schedule it if(!Config.VOTE_REWARD_MSG.isEmpty()) ThreadPoolManager.getInstance().scheduleAtFixedRate(new VoteAnnounceTask(), 5 * 60 * 1000, Config.ANNOUNCE_VOTE_DELAY * 1000); // Restore from the db all the penalties of the votes, it doesn't matter if its 0. So we can do it only once at start Connection con = null; PreparedStatement statement = null; ResultSet rset = null; try { con = DatabaseFactory.getInstance().getConnection(); statement = con.prepareStatement("SELECT * FROM vote_system"); rset = statement.executeQuery(); while(rset.next()) { final String value = rset.getString("value"); final long time = rset.getLong("penalty_time"); switch(rset.getInt("value_type")) { // Account Name case 0: { _accountPenalties.put(value, time); break; } // Ip Address case 1: { _ipPenalties.put(value, time); break; } // Hwid case 2: { _hwidPenalties.put(value, time); break; } } } } catch(Exception e) {} } @Override public boolean useVoicedCommand(String command, Player activeChar, String params) { if(command.equalsIgnoreCase("vote")) { try { // No connection, no vote if(activeChar.getNetConnection() == null) return false; if(!Config.ENABLE_VOTE) { activeChar.sendMessage("Voting is currently disabled!"); return false; } // Min lvl 40 if(activeChar.getLevel() < 40) { activeChar.sendMessage("You need to be at least level 40 to use this command."); return false; } final long currentTime = System.currentTimeMillis(); // Synerge - Check if voting is not blocked. If a web connection ocurrs, then the vote will be block for everyone for 15 minutes if(VoteRead._siteBlockTime >= currentTime) { activeChar.sendMessage("There are problems with the connection to the vote site, so it has been disabled for some minutes. Try again later"); return false; } // Check player vote reuse if(activeChar.getAccessLevel() < 1 && _votePlayerReuses.containsKey(activeChar.getObjectId())) { if(_votePlayerReuses.get(activeChar.getObjectId()) > currentTime) { activeChar.sendMessage("You can use this command only once every 5 minutes."); return false; } } _votePlayerReuses.put(activeChar.getObjectId(), currentTime + VOTE_COMMAND_REUSE); // Getting IP of client, here we will have to check for HWID when we have LAMEGUARD final String IPClient = activeChar.getIP(); final String HWID = (activeChar.getHWID() != null ? activeChar.getHWID() : ""); // Check the penalties of the player to see if he can vote again if(!checkPlayerPenalties(activeChar, IPClient, HWID, true)) return false; // Return 0 if he didnt voted. Date when he voted on website /*final long dateHeVotedOnWebsite = VoteRead.checkVotedIP(IPClient); if(dateHeVotedOnWebsite < 1) { activeChar.sendMessage("To claim reward, you need to vote on all banners!"); return false; }*/ if (!hasVoted(activeChar)) { activeChar.sendMessage("To claim reward, you need to vote!"); return false; } // Add the vote penalty to the player addNewPlayerPenalty(activeChar, IPClient, HWID); // Give the rewards giveRewards(activeChar); activeChar.sendMessage("Successfully rewarded."); return true; } catch(Exception e) { e.printStackTrace(); } } return false; } // Thread to send to all players that didn't voted yet to vote for the server protected static class VoteAnnounceTask implements Runnable { @Override public void run() { if(Config.VOTE_REWARD_MSG.isEmpty()) return; final Say2 announce = new Say2(0, ChatType.ANNOUNCEMENT, "", Config.VOTE_REWARD_MSG); final Iterable<Player> world = GameObjectsStorage.getAllPlayersForIterate(); for(Player player : world) { if(player == null || player.getNetConnection() == null) continue; // No offline or store mode if(player.isInStoreMode()) continue; // If the player has an active penalty means that he already voted if(!checkPlayerPenalties(player, player.getIP(), player.getHWID(), false)) continue; player.sendPacket(announce); } } } /** * Gives to the player all the vote rewards * * @param player */ protected static void giveRewards(Player player) { // First give the permanent item Functions.addItem(player, PERMANENT_CATEGORY[0], PERMANENT_CATEGORY[1], "VoteReward Permanent"); // First give the vote main random reward final int[] reward = getReward(); Functions.addItem(player, reward[0], reward[1], "VoteReward Main"); // Then give some random rewards for(double[] item : RANDOM_CATEGORY) { if(Rnd.chance(item[2])) { Functions.addItem(player, (int) item[0], (long) item[1], "Vote Random Reward"); return; } } } /** * Puts new penalties for the account name, ip and hwid of the player after he succesfully voted * * @param activeChar * @param IPClient * @param HWID */ protected static void addNewPlayerPenalty(Player activeChar, String IPClient, String HWID) { final long newPenalty = System.currentTimeMillis() + VOTE_PENALTY; _accountPenalties.put(activeChar.getAccountName(), newPenalty); _ipPenalties.put(IPClient, newPenalty); _hwidPenalties.put(HWID, newPenalty); // Also store the penalties in the db Connection con = null; PreparedStatement statement = null; try { con = DatabaseFactory.getInstance().getConnection(); statement = BatchStatement.createPreparedStatement(con, "REPLACE INTO vote_system(value_type, value, penalty_time) VALUES (?, ?, ?)"); final String[] values = new String[] { activeChar.getAccountName(), IPClient, HWID }; for(ValueType type : ValueType.values()) { statement.setInt(1, type.ordinal()); statement.setString(2, values[type.ordinal()]); statement.setLong(3, newPenalty); statement.addBatch(); } statement.executeBatch(); } catch(Exception e) {} } /** * @param activeChar * @param IPClient * @param HwID * @param sendMessage * @return Returns true if the player doesn't have an active penalty after voting */ protected static boolean checkPlayerPenalties(Player activeChar, String IPClient, String HwID, boolean sendMessage) { final long accountPenalty = checkPenalty(ValueType.ACCOUNT_NAME, activeChar.getAccountName()); final long ipPenalty = checkPenalty(ValueType.IP_ADRESS, IPClient); final long hwidPenalty = checkPenalty(ValueType.HWID, HwID); final int penalty = (int) ((Math.max(accountPenalty, Math.max(ipPenalty, hwidPenalty)) - System.currentTimeMillis()) / (60 * 1000L)); if(penalty > 0) { if(sendMessage) { if(penalty > 60) { activeChar.sendMessage("You can vote only once every 12 hours. You still have to wait " + (penalty / 60) + " hours " + (penalty % 60) + " minutes."); } else { activeChar.sendMessage("You can vote only once every 12 hours. You still have to wait " + penalty + " minutes."); } } return false; } return true; } /** * @param type * @param value * @return Returns the penalty of a particular type and value if it exists */ private static long checkPenalty(ValueType type, String value) { switch(type) { case ACCOUNT_NAME: { if(_accountPenalties.containsKey(value)) return _accountPenalties.get(value); break; } case IP_ADRESS: { if(_ipPenalties.containsKey(value)) return _ipPenalties.get(value); break; } case HWID: { if(_hwidPenalties.containsKey(value)) return _hwidPenalties.get(value); break; } } return 0; } public static int[] getReward() { return MISC_CATEGORY[Rnd.get(MISC_CATEGORY.length)]; } @Override public void onLoad() { VoicedCommandHandler.getInstance().registerVoicedCommandHandler(this); } @Override public void onReload() { // } @Override public void onShutdown() { // } @Override public String[] getVoicedCommandList() { return COMMANDS_LIST; } // New Topzone Vote Reward System (API) public String getApiEndpoint(Player player) { return String.format("https://api.l2topzone.com/v1/vote?token=%s&ip=%s", Config.VOTE_TOPZONE_APIKEY, player.getIP()); } public boolean hasVoted(Player player) { try { String endpoint = getApiEndpoint(player); if (endpoint.startsWith("err")) return false; String voted = grabValue(getApiResponse(endpoint), "\"isVoted\":", ",\"serverTime\""); return tryParseBool(voted); } catch (Exception e) { player.sendMessage("Something went wrong. Please try again later."); e.printStackTrace(); } return false; } public boolean tryParseBool(String bool) { if (bool.startsWith("1")) return true; CharSequence cs = "voteTime"; if (bool.contains(cs)) { //System.out.println("Contains \"voteTime\""); String newbool = bool.substring(0, 4); //System.out.println("Bool to pass: " + newbool); return Boolean.parseBoolean(newbool); } return Boolean.parseBoolean(bool.trim()); } public String getApiResponse(String endpoint) { StringBuilder stringBuilder = new StringBuilder(); try { URL url = new URL(endpoint); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.addRequestProperty("User-Agent", "Mozilla/4.76"); connection.setRequestMethod("GET"); connection.setReadTimeout(5 * 1000); connection.connect(); try (BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()))) { String line = null; while ((line = reader.readLine()) != null) { stringBuilder.append(line + "\n"); } } connection.disconnect(); System.out.println(stringBuilder.toString());// return stringBuilder.toString(); } catch (Exception e) { System.out.println("Something went wrong in VoteBase::getApiResponse"); e.printStackTrace(); return "err"; } } private static String grabValue(String str, String open, String close) { final int INDEX_NOT_FOUND = -1; if (str == null || open == null || close == null) { return null; } int start = str.indexOf(open); if (start != INDEX_NOT_FOUND) { int end = str.indexOf(close, start + open.length()); if (end != INDEX_NOT_FOUND) { return str.substring(start + open.length(), end); } } return null; } } its this file for votes
  21. its from l2mythras shered files i raplaced API from topzone and vote dosint working its HighFive
  22. Something went wrong in VoteBase::getApiResponse java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.l2topzone.com/v1/vote?token=5e14bd08d6ef4a9f42fed190db6f27b2&ip=85.206.147.64 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at handler.voicecommands.RewardVote.getApiResponse(RewardVote.java:472) at handler.voicecommands.RewardVote.hasVoted(RewardVote.java:436) at handler.voicecommands.RewardVote.useVoicedCommand(RewardVote.java:217) at l2f.gameserver.network.clientpackets.Say2C.runImpl(Say2C.java:154) at l2f.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:49) at l2f.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.java:39) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) java.lang.NullPointerException at handler.voicecommands.RewardVote.tryParseBool(RewardVote.java:446) at handler.voicecommands.RewardVote.hasVoted(RewardVote.java:437) at handler.voicecommands.RewardVote.useVoicedCommand(RewardVote.java:217) at l2f.gameserver.network.clientpackets.Say2C.runImpl(Say2C.java:154) at l2f.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:49) at l2f.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.java:39) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) its full error , i tryed google iit but i cant solve it.... can u help me?
  23. Something went wrong in VoteBase::getApiResponse can some one help me solve this? every time i write .vote comand its says somthing whent wrong need to vote again. and in logs i see this Something went wrong in VoteBase::getApiResponse can some one help?
×
×
  • Create New...