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. i think you can change it from database...
  14. thanks
  15. thanks
  16. Hello guyes maybe someone can tell me where i can found this npc chat border ?
  17. 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"/>
  18. Thanks again lock topic!!!
  19. you are right but i have some errors when i compile it...
  20. Thats Cool Thanks !!!
  21. 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
  22. no one can help me ?
  23. I have already found that, but its different again
  24. 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 ?
  25. maybe you know which file ?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock