

Kenneh
Members-
Posts
218 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by Kenneh
-
Yeah, I don't have a shot at this one.
-
To be fair that's extremely easy to do and it makes me wonder why something like this hasn't already been implemented.
-
and ordinal()
-
if it's an enum, you can loop thru it like this for(AntiBan antiban : AntiBan.values()) { script.bot.getAntiBan().unregisterBehaviour(antiban); }
-
A free trial of a woodcutter?
-
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.
-
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.
-
I'll post another way in a bit.
-
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.
-
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.
-
God, osbot 2 is worse than I thought. Not a huge improvement.
-
ssf is still a thing? I thought the admins told you no
-
There are some good 1150 boards out there.
-
shit/10. Don't go with old technology. Get an i7-4k series. Save yourself some hassle.
-
You don't even have a signature.
-
don't care I don't have either pips
-
It's an 8mb file, so it might take some time on slower connections.
-
Cleaner, easier to understand, not making un-needed objects. etc. The second method is cooler, but keep in mind it's more resource heavy.
-
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; }
-
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()
-
This post literally gave me cancer.
-
Download the jar and see for yourself. I like this one better, but it's a 20mb gif XD
-
I'm sure it'l suffice instead of re-creating the bounds for an object.
-
graphics2D.draw(npc.getPosition().getPolygon(bot)); ?