Jump to content

cyta5

Members
  • Posts

    61
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by cyta5

  1. but does not want and one check ...if the votes is <=999 or >999 ? because the votes until the 999 its ok but when goes 1000 and over the website write it 1,000
  2. Hello guys i have one problem with the vote manager at l2network, when the votes are until 999 the vote manager work but when goes 1000 and up i got error because the website write the votes 1,000 with a comma. maybe someone can help me to work this ? ERROR RequestByPassToServer.runImpl : invalid number format java.lang.NumberFormatException: For input string: "19,474" the code is this public static int getL2NetworkVotes() { int votes = 0; boolean lineFound = false; try { URL url = new URL(Config.VOTES_SITE_L2NETWORK_URL); InputStream is = url.openStream(); try ( BufferedReader br = new BufferedReader(new InputStreamReader(is))) { String line; while ((line = br.readLine()) != null) { if (line.contains("color:#e7ebf2")) votes = Integer.parseInt(line.split(">")[2].split("<")[0]); lineFound = true; } } } catch (IOException e) { e.printStackTrace(); System.out.println("NetWork is offline. We will check reward as it will be online again."); } if (!lineFound) System.out.println("The line wasn't found in Network, check site in case they updated."); return votes; }
  3. i use the link with my api and i got that messege Forbiden Please contact l2topzone.com administrator to get access
  4. what is the correct url? and i think is want some changes at the code :/
  5. Hello guys i have one vote manager for l2jfrozen and stopped to give reward for topzone maybe someone can tell me what happen and how i can fix it ? Topzone Url = https://l2topzone.com/totalvotes.php?id=6150 public static int getTopZoneVotes() { int votes = 0; boolean lineFound = false; try { URL url = new URL(Config.VOTES_SITE_TOPZONE_URL); InputStream is = url.openStream(); try ( BufferedReader br = new BufferedReader(new InputStreamReader(is))) { String line; while ((line = br.readLine()) != null) { if (line.contains("Votes:<br>")) { votes = Integer.parseInt(line.split("<br>")[1].split("<")[0]); lineFound = true; } } } } catch (IOException e) { System.out.println("TOPZONE is offline. We will check reward as it will be online again."); e.printStackTrace(); } if (!lineFound) System.out.println("The line wasn't found in TopZone, check site in case they updated."); return votes; }
  6. i know black = transparent but look that :/
  7. what do you mean by using alpha channel ?
  8. maybe you can upload it somewhere else ?
  9. maybe someone can tell me if is possible to make icon with transparent background like a png ? if yes how i can do it ?
  10. ok thats work thanks!!! but i have problem and with the umodel when i tried to extract utx file does not do anything maybe you know why ? Current umodel version umodel -export -all blablabla.utx
  11. for some reason does not create the enc-blablabla.utx file :/ l2encdec -e 121 blablabla.utx
  12. Hello im looking for l2encdec.exe Program but all links are dead maybe someone can upload it ?
  13. Hello guyes maybe someone can tell me where i can found this npc chat border ?
  14. Hello guys i want a little help, i want to make hp & mp potion to dont consume ... mpId = 728 / hpId = 1539 with that check mp potion does not consume, the same with hp id. final L2ItemInstance item = activeChar.getInventory().getItemByItemId(potion); final int itemId = item.getItemId(); if (itemId != 728) { activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false); } but when i used mp and hp potion together it doesn't work and consume them, i'm confused why happened that ? final L2ItemInstance item = activeChar.getInventory().getItemByItemId(potion); final int itemId = item.getItemId(); if (itemId != 728 || itemId != 1539) { activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false); } and maybe someone can tell me what is this ? <set name="itemConsumeIdOT" val="2131"/> <set name="itemConsumeCountOT" val="70"/>
  15. you are right but i have some errors when i compile it...
  16. Hello guys i have make at the multisell to give the weapons +10, its works but does not appear the enchant level!!! Maybe someone can give me the interface.u for interlude? i want it like this
  17. I have already found that, but its different again
  18. Hello i tried to import this code ... but im stack at l2pcinstance i used l2jfrozen and there the code is different maybe someone can help me to make that code to work ?
×
×
  • Create New...