Everything posted by Butters
-
[OPEN SOURCE] Ankou killer. Loots and uses bones to peaches
Sweet, nicely done. Just why do you reinitialize the loot array each time you run the validate method? String[] itemsToLoot = { "Death rune", "Blood rune", "Law rune", "Mithril ore", "Pure essence", "Adamant arrow", "Ranarr seed", "Torstol seed", "Snapdragon seed", "Bones" }; Just make it a class variable
-
I need help with my script
you made your getDefLevel as a variable and not a method. The { } below is just a code block (not a method body). Needs to be int getDefLevel() { return ....; }
-
Clay Softener
It is free, so just need to click add on SDN page https://osbot.org/mvc/sdn2/scripts/15 Then you'll see it on your script selection window in OSBot
-
Command to close client after bot logoff?
Issue was you stopped script before System.exit(); It never got executed
-
Command to close client after bot logoff?
Maybe I misunderstood what you exactly need. If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye. If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities.
-
Command to close client after bot logoff?
Could do System.exit(0); If you have a custom login handler. If no, then I suggest starting scripts via CLI and close them with taskkill/pkill in batch/bash if possible
-
walkingevent
It's not bugs, just hooks need updating due to recent rs update
-
Has everyone script stopped working due to update? client broken?
Need at least one thread so the devs can see what's up. Also to let other people know that they're not alone suffering in agony from the downtime
-
OSB 2.5.2
Start OSBot from command line and check the output Example cd ~/Desktop java -jar "OSBot 2.5.2.jar" Should be getting some error
-
OSBot discord?
Nice mouse skills Muffins
-
Advise code architecture
Was thinking on the exact same lines. Put each display case data into an enum value (config, position, answers) and etc) and just grab the appropriate "enum record" in your onLoop based on the config value present. As Apa mentioned, no real need for inheritance here. Can also just use if/switch statements and you'll end up with one class.
-
Right, so I had an IRL GP idea...
Interesting. Is it only due to tax is exempt? Might also want to read about drop shipping.
-
Permanently Banned, then...
sweet. Had to do an appeal or just unbanned due to long time?
-
Cant figure out a boolean
Use equals() and not ==, that is if (myPosition()equals(pos)) return true; else return false; This is because == checks if two objects ARE THE SAME IN MEMORY, which they are not. equals(), if coded properly, checks the values of the objects and that is what you need
-
Scripting Service Wont Open
pm me and I'll help out real quick
-
GE checker
Dunno about the "instant sell/buy" prices, but there are a lot of snippets to check osrs/osrs wiki/rs buddy prices. There are a few simpler solutions though. And I found that RSbuddy are not always accurate (well none are actually). Snoop around in Snippets section, should find more.
-
Logging in without acc setup in osbot
- Logging in without acc setup in osbot
Custom login handler is your friend here. Ain't gonna be too easy to do properly. Check out Explv's login handler.- Am I disabled?
Juicy magic xp though- How to check if there is players nearby?
This should actually work quicker than my example. Adding a lil extra to filter by predefined distance Player closest = getPlayers().closest(p -> p != null && !p.equals(myPlayer()) && myPlayer.getArea(5).contains(p));- How to check if there is players nearby?
Didn't test, but this might work players.getAll().stream().anyMatch(f -> myPlayer().getArea(5).contains(f)); This will check if there's at least one player around in an area of radius 5 around your player. Returns a boolean true/false- Autobuyer
I think Juggles AIO shopbuyer does that, check it out- VIP needed to use a proxy?
I think the only limitation is that you can run only 1 or 2 clients while being a grey name. Proxies should work fine.- Mouse recorder shift dropping
(speed of light / speed of moon around earth) * perimeter of moon phase Though seriously, nobody knows, but as far as I heard mouse recorders tend to be less banny.- Why OSBot scripters are smarter than
Code that compiles is for the weak - Logging in without acc setup in osbot