Everything posted by Septron
-
Script Ideas
Ah, if that's the case then maybe try writing a quester? I've always found writing quests to be the most fun. Mostly because I never have to do them again manually.
-
Script Ideas
I would personally suggest trying to make a small script for each of the easier skills first to get a better understanding of how to use OSBot's API correctly and to its fullest potential. Once you have a solid understanding of what to look for when writing scripts everything else just falls into place.
-
botting sessions
I think Alek's post about preventing bans here says everything you need to know about how not to get banned quickly.
-
Are we living in a simulation?
how can i attach a debugger to this application
-
Coding speed - lines/hour
I try to complete one line of code per hour. Here's an example cow killer. getNpcs().getAll().stream().sorted(Comparator.comparingDouble(a -> getMap().distance(a))).filter(npc -> "Cow".equals(npc.getName()) && Stream.of(npc.getActions()).anyMatch("Attack"::equals)).findFirst().ifPresent(npc -> npc.interact("Attack"));
- OSBot 2.4.158/159
-
Literally why I don't invest in cryptos
https://suicidepreventionlifeline.org/
-
[Fletchy] Auto-leveling from 1-99
format your data into enums so it's easier to manage/update private enum Product { ARROW_SHAFT("Logs", 270, 14, 38); private final String log; private final int[] widget; Product(String log, int... widget) { this.log = log; this.widget = widget; } } private RS2Widget getWidget(Product product) { return getWidgets().get(product.widget[0], product.widget[1], product.widget[2]); } then you can simplify that ugly if else method a bit int level = skills.getDynamic(Skill.FLETCHING); if (level >= 70) { } else if (level >= 55) { } else if (level >= 50) { } else if (level >= 40) { } else if (level >= 35) { } else if (level >= 25) { } else if (level >= 10) { } else { return ARROW_SHAFT; } do yourself a favor and simplify those nasty ConditionalSleeps public boolean sleep(int ms, BooleanSupplier supplier) { return new ConditionalSleep(ms) { @Override public boolean condition() throws InterruptedException { return supplier.getAsBoolean(); } }.sleep(); } sleep(5000, () -> bank.isOpen());
-
OSBot 2.4.149/150
Wow Alek, great work. Keep it up!
- OSBot 2.4.148
-
Best design practice?
I would have to disagree, something like this is not acceptable in my book.
-
Best design practice?
While this doesn't solve the problem pointed out in Alek's post, this might be a good reason to keep them. https://gist.github.com/48df1acb2e1de82f52d8e9877664efec
-
Best design practice?
I would avoid falling into the trap of passing the script instance into the class constructor when you can just handle it in the params for the method allowing for the use of interfaces. https://gist.github.com/anonymous/86628d433f7f7cb444f20b4463c25d41
-
Data Structure Help [Java]
Hmm, not sure I understand the situation completely but this is how I'd do what I think it is you're trying to do. https://gist.github.com/anonymous/920432652d87d5502a3cabfbdccd65bd
-
Sheep Sheering
Noticed a few things I would have done differently. Your bank method doesn't check if the previous step is complete. Meaning when it fails it'll walk back to the sheep then realise the inventory is still full and walk back. Another thing with the banking method there's a method to open all banks in the API already. When grabbing the next NPC you can use a filter to check if the name is equal and has the action. Here's my version: https://gist.github.com/anonymous/26be13656547372bfd4296cf424032ef
-
main mule banned
if you don't bot on the mule but it gets traced back you get a real world trade ban.
-
[Stable] OSBot 2.4.107 - Bug Fixes + CLI
Such nice, very good.
-
OSBot 2.4.100 - New Spellbook and patches
Looks good my dude.
-
OSBot 2.4.99 - Bot Farmer's Dream
Glad to see this, great job
-
OSBot 2.4.98 - Account Switching Supported
This is so awesome, thank you
-
Herro my fans
datbases Welcome to OSBot
-
Quick Switching Hotkeys
Whoa, this looks pretty cool. Keep up the good work
-
Using maven to handle dependencies and automatic jar exporting
Hopefully we can change that if we make the use of build tools more common...
-
Using maven to handle dependencies and automatic jar exporting
https://gist.github.com/Septron/ac3708e3ab83236d5b234ef63453921a Download the latest version of OSBot and rename it to osbot.jar. Place osbot.jar inside folder lib. To build the jar use IDE or mvn install.
-
Stealth Quester
Obsidian Cape as a F2P requirement. Why do you do this to me :_: