Jump to content

sotid

Members
  • Posts

    345
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by sotid

  1. Sure API is better and I will use it on the vote manager, plus I dont have links for api to test if its working. https://ibb.co/VgqGMNZ Got an error
  2. I think it is, not anyone know what imports are.
  3. l2jfrozen ,Rev:1004, interlude . So hopzone and topzone work ok, network doesnt . I tried to fix it but I cant . What I used for core are these lines No Console errors. Just logger that says network is offline. First try: protected int getL2NetworkVotes() { int votes = -1; try { { final URL obj = new URL(PowerPakConfig.VOTES_SITE_L2NETWORK_URL); final HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.addRequestProperty("User-Agent", "L2Network"); con.setConnectTimeout(5000); final int responseCode = con.getResponseCode(); if (responseCode == 200) { try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()))) { String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("color:#e7ebf2")) { votes = Integer.valueOf(inputLine.split(">")[2].replace("</b", "")); break; } } } } } } catch (final Exception e) { _log.info("[NETWORK] offline!!!!!!!"); Broadcast.toAllOnlinePlayers(new CreatureSay(2, Say2.HERO_VOICE,"[Network]", "Offline!")); // e.printStackTrace(); } return votes; } Second try: protected int getL2NetworkVotes() { int votes = -1; URL url = null; URLConnection con = null; InputStream is = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(PowerPakConfig.VOTES_SITE_L2NETWORK_URL); con = url.openConnection(); con.addRequestProperty("User-Agent", "L2Network"); is = con.getInputStream(); isr = new InputStreamReader(is); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("color:#e7ebf2")) { votes = Integer.valueOf(inputLine.split(">")[2].replace("</b", "")); break; } } } catch (final Exception e) { _log.info("[NETWORK] offline!!!!!!!"); Broadcast.toAllOnlinePlayers(new CreatureSay(2, Say2.HERO_VOICE,"[Network]", "Offline!")); Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.HERO_VOICE,"[Server Site]", PowerPakConfig.SERVER_WEB_SITE)); // e.printStackTrace(); } finally { if (in != null) try { in.close(); } catch (final IOException e1) { e1.printStackTrace(); } if (isr != null) try { isr.close(); } catch (final IOException e1) { e1.printStackTrace(); } if (is != null) try { is.close(); } catch (final IOException e1) { e1.printStackTrace(); } } return votes; } HTML ,powerpack # Do you want enable powerpack? PowerPakEnabled = True # Automatic Vote Reward System VoteRewardSystem= True VotesRequiredForReward = 1 VotesSystemInitialDelay= 60000 VotesSystemStepDelay= 5000 VotesRewards= 1851,20; What is wrong? Searched everywhere for many hours .. cant figure it out.
  4. import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; under import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; I cant edit code to my prev reply so there.
  5. Thanks , reason is that many things appear on the upper window and they may miss it but I guess but at the end noone cares, we all want the reward. By the way for anyone who may use this make sure you add these lines at the beggining import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;
  6. https://ibb.co/T8P510f Only down not possible?
  7. How can I make it show in the bottom window without checking system from filtering? https://ibb.co/n775kg0
  8. Thanks @wongerlt I will try it.
  9. you showed me how to move it , I already know how to do that . Is there a way to delete it?
  10. Hello, l2jfrozen, 1004 , interlude I recently changed the stats from Char_templates in database for all fighters to have same CON/STR etc. Same for mages. So right now they have all the stats the same except HP/CP . Where in core I change this so they can have the same hp/cp?
  11. Thanks for the help! Works just fine! You can lock the topic.
  12. Sent you a message.
  13. That doesnt work as I want , because I want to change other rows that they dont have : in them. I want to remove it not move it.
  14. how can I delete hot-world.ru from weapons? https://ibb.co/Pm8GhvX These are the files I have: https://ibb.co/5nyTfTW What program do I need and where I have to look?
  15. l2jfrozen 1004 interlude Broadcast.toAllOnlinePlayers(new CreatureSay(2, Say2.HERO_VOICE, "[Hopzone]", "Current Votes: " + hopzone_votes)); "[Hopzone]", "Current Votes: " Here where the coma is appears an extra " : " how can I fix that?
  16. Thanks I fixed it , works fine!
  17. Thanks for the share , does the bow exists?
  18. oh yea I already figured it out:) thanks sweets!
  19. No I dont really want to cause my knowledge on java is minimal and dont want to break something but in every interlude server when it comes to pvp the higher def is always better than highter m attack. I will make it more balance like that. Also frozen has a ton of damage modifiers so its gonna be piece of cake:) I took my time , thank stinkymadness and you . This is the line I need/will need to modify , I did some random changes for test and it works. double damage = 91 * Math.sqrt(mAtk) / mDef * skill.getPower(attacker) * calcSkillVulnerability(target, skill); Thanks you can lock it.
  20. l2jfrozen 1004 |interlude. Hello , happy new year. Example , if I have 4k m attack , I do 1000 damage. If I have 8k m attack I do 1500 damage instead of 2000. How can I fix the magical damage being increased or decreased 100% from m attack. Right now its 50%.
  21. Hello , go to gameserver/data/stats/experience.xml, best to edit with notepad. Change the values on the first line. <table maxLevel="85" maxPetLevel="85" after these lines <experience level="80" tolevel="4200000000" /> <experience level="81" tolevel="6299994999" /> may be another value,a little bit different , its not a problem. Add these <experience level="82" tolevel="10499905559" /> <experience level="83" tolevel="16800005559" /> <experience level="84" tolevel="27299995559" /> <experience level="85" tolevel="44100005559" /> <experience level="86" tolevel="71400000000" /> Then go to gameserver/data/xsd/experience.xsd And change every line thats is like this.. <element name="experience" minOccurs="1" maxOccurs="80"> or <maxInclusive value="80" /> to 85 <element name="experience" minOccurs="1" maxOccurs="85"> or <maxInclusive value="85" />
  22. So I think this is the code for the anti-buff skill. https://pastebin.com/6eQ72f52 So can someone guide me to make this for example anti-windwalk, if possible.
  23. Sinister I want to replace the buffs I dont want a different stacktype. Thanks sweets , dont lock the topic maybe someone will give a different answer.
  24. If there is a single stacktype how will it replace all three buffs with different stacktypes, it wont work unless you mean something else?
×
×
  • Create New...