Jump to content

Kenneh

Members
  • Posts

    218
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Kenneh

  1. Yeah, I don't have a shot at this one.
  2. To be fair that's extremely easy to do and it makes me wonder why something like this hasn't already been implemented.
  3. if it's an enum, you can loop thru it like this for(AntiBan antiban : AntiBan.values()) { script.bot.getAntiBan().unregisterBehaviour(antiban); }
  4. Kenneh

    My RS Loader

    There is only one class that even uses a GUI builder and it's not even implemented yet and you had to pick that out. It's a c# program my friend made that is being ported over and I just can't be bothered to make the gui by hand.
  5. Kenneh

    My RS Loader

    This app is compiled with Java 8. If you wish to run it, you need to install java 8 from here! Kenneh's RuneScape Loader This loader was made for ease of use when playing RuneScape. This client does not break the rules and does not have any illegal tools. It simply allows you to choose what game mode you want to play when it launches. Click the corresponding button to play that mode. There is a TrayIcon that will appear in your task bar once you start the client. Right clicking it will give options such as screenshot, a stats checker, and a ge item checker. The screenshot function can also be used by pressing f12. By default, screenshots upload to imgur and the link will get pasted to your clipboard. ## How to get the loader Navigate to https://github.com/kennehisftw/runescape-loader/releases/ Credits: Sven Olderaan (Crystal Mare) for assisting me with the Imgur api and allowing the integration of RuneLog.
  6. Kenneh

    Drink Best Potion

    I'll post another way in a bit.
  7. Kenneh

    Drink Best Potion

    No it's not. Your script instance will always be null. You'd have to instantiate the class to use it since the method is public and not static. It WOULD be perfectly functional if you passed and assigned the script instance in the class constructor.
  8. Kenneh

    Drink Best Potion

    I really hope this is a joke. You spelled snippets wrong, you have a null script instance and the code is just laughable. PS: If something looks overly complicated, there's probably an easier way to do it.
  9. Kenneh

    client.blahblah

    God, osbot 2 is worse than I thought. Not a huge improvement.
  10. ssf is still a thing? I thought the admins told you no
  11. There are some good 1150 boards out there.
  12. shit/10. Don't go with old technology. Get an i7-4k series. Save yourself some hassle.
  13. You don't even have a signature.
  14. don't care I don't have either pips
  15. It's an 8mb file, so it might take some time on slower connections.
  16. Cleaner, easier to understand, not making un-needed objects. etc. The second method is cooler, but keep in mind it's more resource heavy.
  17. excuse syntax errors, I don't have the client downloaded. private NPC getClosestNPC(String name, String action) { // not as pretty but less heavy method NPC closest = null; double lowest = Double.MAX_VALUE; for(NPC npc : getNpcs().getAll()) { final List<String> actions = Arrays.asList(npc.getDefinition().getActions()); final double distance = npc.getPosition().distance(myPosition()); if(actions.contains(action) && distance < lowest) { closest = npc; lowest = distance; } } return closest; } private NPC closestNPC(final String name, final String action) { // much prettier but more resourceful. final Filter<NPC> filter = new Filter<NPC>() { @Override public boolean accept(NPC npc) { return Arrays.asList(npc.getDefinition().getActions()).contains(action); } }; final List<NPC> filtered = new ArrayList<>(); for(NPC npc : getNpcs().getAll()) { if(filter.accept(npc)) filtered.add(npc); } final Comparator<NPC> comparator = new Comparator<NPC>() { @Override public int compare(NPC o1, NPC o2) { return o1.getPosition().distance(myPosition()) - o2.getPosition().distance(myPosition()); } }; Collections.sort(filtered, comparator); return filtered.size() > 0 ? filtered.get(0) : null; }
  18. Quick look at the v2 api would show that you need to do for(NPC npc : getNpcs().getAll()) { } http://osbot.org/osbot2_api/org/osbot/rs07/api/NPCS.html#getAll()
  19. Download the jar and see for yourself. I like this one better, but it's a 20mb gif XD
  20. I'm sure it'l suffice instead of re-creating the bounds for an object.
  21. graphics2D.draw(npc.getPosition().getPolygon(bot)); ?
×
×
  • Create New...