Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. Thanks I'll take a look at it Thanks for the report I'll take a look at it
  2. Nevermind. I'm a fucking idiot, ignore me. That update was pushed, sorry, apparently I can't read times.
  3. I don't know what is going on, I am trying to get hold of the developers to find out.
  4. Unfortunately not, this script is for VIP users only (at least for the time being).
  5. I have, you have to wait for the SDN to update which is out of my control
  6. Already aware of, and have fixed this issue. See the comments above
  7. Unfortunately it looks like my script has not been updated yet. Last compile time was 2016-06-26 17:09:55 I will let you guys know when the script has been recompiled. Thank you for your patience.
  8. It's a HashMap. You would just do: getStats(playerName).get(Skill.ATTACK.toString()).getLevel(); Why wouldn't you just use a HashMap? This seems like a weird solution xD
  9. No problem, thanks for the bug report
  10. I am already aware of this as someone has previously posted it. I have fixed the issue, when the SDN is next updated (some time today) it will be resolved.
  11. Runescape has an official Highscores API that you can make use of Here is an example of how you could use it: public final Map<String, Stat> getStats(final String playerName) { final Map<String, Stat> stats = new HashMap<>(24); try { URL url = new URL("http://services.runescape.com/m=hiscore_oldschool/index_lite.ws?player=" + playerName); URLConnection con = url.openConnection(); con.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"); con.setUseCaches(true); try(InputStreamReader inputStreamReader = new InputStreamReader(con.getInputStream()); BufferedReader br = new BufferedReader(inputStreamReader)) { String[] splitVals = br.readLine().split(","); Stat overallStat = new Stat(Integer.parseInt(splitVals[0]), Integer.parseInt(splitVals[1]), Integer.parseInt(splitVals[2])); stats.put("Overall", overallStat); for (final Skill skill : Skill.values()) { splitVals = br.readLine().split(","); stats.put(skill.toString(), new Stat(Integer.parseInt(splitVals[0]), Integer.parseInt(splitVals[1]), Integer.parseInt(splitVals[2]))); } } } catch(final Exception e){ e.printStackTrace(); } return stats; } Where Stat is: public final class Stat { private final int rank, level, xp; public Stat(final int rank, final int level, final int xp) { this.rank = rank; this.level = level; this.xp = xp; } public final int getRank() { return rank; } public final int getLevel() { return level; } public final int getXp() { return xp; } @Override public final String toString() { return String.format("Rank: %d, Level: %d, XP: %d", rank, level, xp); } } Testing: getStats("zezima").forEach((s, stat) -> System.out.println(s + " " + stat.toString())); Output: Overall Rank: 1044122, Level: 263, XP: 171029 Hunter Rank: 469487, Level: 1, XP: 0 Thieving Rank: 727948, Level: 13, XP: 1872 Construction Rank: 379600, Level: 1, XP: 0 Cooking Rank: 729252, Level: 31, XP: 14890 Magic Rank: 1254581, Level: 2, XP: 110 Fletching Rank: 409758, Level: 37, XP: 27502 Herblore Rank: 619712, Level: 1, XP: 0 Firemaking Rank: 370103, Level: 43, XP: 50460 Attack Rank: 1488162, Level: 7, XP: 652 Fishing Rank: 800753, Level: 24, XP: 7030 Crafting Rank: 961015, Level: 3, XP: 230 Hitpoints Rank: 1623703, Level: 13, XP: 1989 Ranged Rank: -1, Level: 1, XP: 4 Mining Rank: 1002037, Level: 13, XP: 2047 Runecrafting Rank: 511420, Level: 1, XP: 0 Smithing Rank: 1455957, Level: 1, XP: 18 Agility Rank: 829188, Level: 1, XP: 0 Woodcutting Rank: 596579, Level: 44, XP: 61130 Slayer Rank: 786552, Level: 1, XP: 10 Defence Rank: 1391507, Level: 1, XP: 36 Strength Rank: 1382147, Level: 13, XP: 1848 Prayer Rank: 1097298, Level: 10, XP: 1201 Farming Rank: 487599, Level: 1, XP: 0
  12. There is a bug so it won't start, will be fixed for tomorrow though.
  13. No, I will be adding abyss in the future though.
  14. Will fix that today, expect the script to be operational tomorrow. Thanks
  15. ?? I am helping you. If you learn Java Swing, and understand what all the different components / layout managers and their options are, then you will be able to use any GUI builder without issue. You can already find WBP tutorials online, but I don't think that they will help as you will get stuck when it comes to integrating the GUI code with your script code.It would be more effort for someone to make you a tutorial, than it would be for you to learn Swing
  16. Maybe you should learn some Java Swing without WBP so you understand what it is doing first. You shouldn't really need a tutorial for a drag and drop interface.
  17. I don't mean all leave voters fit that demographic, just most. I'm sure there are some valid reasons to leave, but it's still a shitty decision.
  18. It was just the combined elderly / lower class / uneducated population that caused this. It's almost as if they think that immigration is actually hindering their current quality of life. They actually believe that money will be redirected into the NHS. The irony is, it will be those people that will be most severely impacted by their own decision. There should be an age limit / minimum education requirement for such significant votes imo. GG
  19. What you need to do is to create your own WebWalkEvent and set a break condition so that it will stop executing the walking code when you need to drink a potion: final WebWalkEvent webWalkEvent = new WebWalkEvent(area); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return needToDrinkPotion(); } }); execute(webWalkEvent);
  20. Please provide your actual source code for us to review, and provide it in all future posts to the scripting help section. Having a weird diagram is not helpful to anyone other than yourself, it is a lot easier and faster for us to tell you what you are doing wrong by reading your code.
  21. If you just call Area[] banks = { ... }; getWalking().webWalk(banks); It would walk to the closest one.
×
×
  • Create New...