Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Polymorphism

Members
  • Joined

  • Last visited

Everything posted by Polymorphism

  1. Im thinking its the api itself. Got stuck buying item3 with 1 left to sell http://i.imgur.com/eIXQ9mC.png [INFO][Bot #1][03/17 12:33:22 PM]: Selling 5x item1 [INFO][Bot #1][03/17 12:33:23 PM]: Done sleeping.. [INFO][Bot #1][03/17 12:33:23 PM]: Out of contains [INFO][Bot #1][03/17 12:33:23 PM]: Selling 3x item2 [INFO][Bot #1][03/17 12:33:26 PM]: Done sleeping.. [INFO][Bot #1][03/17 12:33:26 PM]: Out of contains [INFO][Bot #1][03/17 12:33:26 PM]: Selling 3x item3
  2. Thats the thing, no errors, no visible issues in the code. It just stops in the middle of the selling process. Which should be on the api side since store.sell("item", 4) is whats hanging.
  3. I support the hell out of this!
  4. In my script I sell a variety of items to a store, sometimes its 5 exactly, but if not then the script will sell until store stock is 5. It does fine usually until it hits a random bump in the road. It seems that sometimes (usually when having to sell x4 items) it'll hang after selling 2-3 and just sit there. I don't think there is anything crazy about the code, but if anyone has suggestions, please lmk. I need this help http://i.imgur.com/w4hHj9c.png Edit: Image link since embed didn't work.
  5. Dang gonna confuse the man with all that Java 8 lol.
  6. Try using a comparator to re-order an array of the possible potion names. String[] staminaPots= { "stamina (4)", "stamina (3)", etc }; Arrays.asList(staminaPots).stream().sorted((s1, s2) -> s1.compareTo(s2)) //sorts the potions using natural order i believe Then withdraw the first element of the list if it's not null and bank contains, etc.
  7. nvfm,i didnt initialize it apparently. sp it was null but not throwing npe
  8. My statements and debug messages are just fine. Also those ghetto debug messages are not nested inside logic statements, just onLoop() -> try-catch
  9. Not really sure whats going on, but after I added this snippet the onLoop kept returning and never running my Tasks. It never makes it to 3 in the logger but also never logs "inside" Note: Don't mention the shitty code in this snippet, it's not live, just a hackjob feature I needed for a spot I was at and didn't matter if the interactiong actually succeeded as the player would idle out anyways. Note 2: I'm not even using that feature and have ensured that stopLootName is empty.
  10. The clickbait title is so real and I love it. I wish there was a sequel to desert treasure, not gonna lie. Like maybe something where you are sided with Azzandra and have to fight off the gods Zamorak and Saradomin because they've come to destroy the world since Azzandra has been freed. Idk, a master quest where you fight the gods with a god by your side would be pretty cool.
  11. I could imagine those accs are difficult to do it on. @trek, thank you
  12. My Desert Treasure virginity. Nearly 13 years playing RS and never had done it until today (even on rs3). I thought it was pretty easy, just long as hell.
  13. No, you almost never have to use loops. It's easy to get stuck in a loop and your script hang (or even hang the whole client for that matter). This was the dumbest post possible.
  14. For scripting definitely, don't nest too many if-statements so that you're having redundant code. and package properly.
  15. Polymorphism replied to Molly's topic in Thieving
    Hey Molly, may i have a trial please. Looking to buy a thieving script but not sure which one yet.
  16. May i get a trial please. I am contemplating buying a thieving script, just not sure which one yet.
  17. Start by utilizing the boolean return on those method calls, this will make your script run smoother. if(!bankArea.contains(myPlayer()) webwalk(bankArea) if(!bank.isOpen())bank.open(); Even using dynamic sleeps is useful too if(bank.isOpen()){ if(inventory.contains("logs")){ if(bank.depositAll(item -> item.getName().contains("logs"))){ new ConditionalSleep(4500, 500){ //timeout, recheck so 4500ms is max sleep, check condition every 500ms //condition method goes here. Returns boolean, if return true the sleeping will stop, if false it will continue to sleep until timeout }.sleep(); } } Line 64, Item-> Item.getName()... Change the lambda variable to something like depositAll(it->i.getName().toLowerCase().contains("logs"). You're using a type as a variable name, but shouldn't be the issue. Read this http://stackoverflow.com/questions/1445233/is-it-possible-to-solve-the-a-generic-array-of-t-is-created-for-a-varargs-param
  18. Here is a 1hr prog, it killed almost 2k planks pretty quick.
  19. Thank you Can you add that to the OP for other people who may not know
  20. On progressive mode how does the script decide what to do next? Does it just do the highest thing it can?
  21. Pseudocode ftw.
  22. Try some debugging such as log the EventStatus. But still, why not webwalker?
  23. How long does it click underneath the player? Does it continue on the path eventually? How often does it do it? Also, why not just use the built in webWalker walking.webWalk(Area area)

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.