Everything posted by Kenneh
-
Someone doesn't like OSBot
- OSBot competitions!
Yeah, I don't have a shot at this one.- AutoUp: Automatic client updates
To be fair that's extremely easy to do and it makes me wonder why something like this hasn't already been implemented.- What's an Enum [Part-One]
and ordinal()- osbot 2 antiban api
if it's an enum, you can loop thru it like this for(AntiBan antiban : AntiBan.values()) { script.bot.getAntiBan().unregisterBehaviour(antiban); }- DNAIOWoodcutter free trial
A free trial of a woodcutter?- 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.- 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.- Drink Best Potion
I'll post another way in a bit.- 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.- 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.- client.blahblah
God, osbot 2 is worse than I thought. Not a huge improvement.- SuperScript is hiring!
ssf is still a thing? I thought the admins told you no- New computer build? I think so
There are some good 1150 boards out there.- New computer build? I think so
shit/10. Don't go with old technology. Get an i7-4k series. Save yourself some hassle.- I am a winner
You don't even have a signature.- When you gonna change...
don't care I don't have either pips- OSBot 2.1.2 - Banking fix, randoms, etc.
It's an 8mb file, so it might take some time on slower connections.- Getting the closest NPC for name and action (OSBot 2)
Cleaner, easier to understand, not making un-needed objects. etc. The second method is cooler, but keep in mind it's more resource heavy.- Getting the closest NPC for name and action (OSBot 2)
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; }- Getting the closest NPC for name and action (OSBot 2)
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()- Getting the closest NPC for name and action (OSBot 2)
This post literally gave me cancer.- OSBot 2.1.2 - Banking fix, randoms, etc.
Download the jar and see for yourself. I like this one better, but it's a 20mb gif XD- OSBot 2.1.1 (Possibly) Missing functions?
I'm sure it'l suffice instead of re-creating the bounds for an object.- OSBot 2.1.1 (Possibly) Missing functions?
graphics2D.draw(npc.getPosition().getPolygon(bot)); ? - OSBot competitions!