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.

SESH

Members
  • Joined

  • Last visited

  1. SESH posted a topic in Scripting Help
    Does trade.acceptTrade() accept just the current interface or both?
  2. Alright thanks man
  3. There's nothing wrong with the code besides click() though. The method is generating the right coordinates fine. I could write just click(30, 30, false); in my onLoop() and it still would only click sometimes. Other people have posted this same problem in this subforum. Something honestly has to be wrong with click(), but I don't know of any workarounds.
  4. The bounds come from the Shape given when the method is called...
  5. Here's a method I use to click a random coordinate in a shape with normal distribution: public boolean clickRandomXY(Shape region) { Rectangle r = region.getBounds(); int maxX = (int) r.getMaxX() - 1; int maxY = (int) r.getMaxY() - 1; int minX = (int) r.getMinX() + 1; int minY = (int) r.getMinY() + 1; int x, y; do { x = rand(minX, maxX); y = rand(minY, maxY); } while (!(x <= maxX) || !(x >= minX) || !(y <= maxY) || !(y >= minY)); return !mouse.click(x, y, false); } I know the code is a bit ugly, I apologize. rand() is my method for a random integer with normal distribution. Using this method, the mouse will move to the coordinates and then just not click sometimes. I also find it odd that click() returns true if the event failed... what's the reason for that? It goes against logic.
  6. Is anyone else having problems with click()? Sometimes it clicks, sometimes it doesn't. I've had to resort to looping click()'s in my methods until they finally work to get it to actually click. The weird thing is that it moves to the pixel to click, it just doesn't click once it's there, and it only happens sometimes. Anyone know the reason for this? Thanks
  7. SESH replied to SESH's topic in Snippets
    It would be incredibly, incredibly unlikely for it to even run through the while loop twice.
  8. http://osbot.org/forum/topic/70076-mousekeys-like-mouse-movement/?p=774964
  9. SESH posted a topic in Snippets
    This function returns a random number with minimum min and maximum max with normal distribution. More info here public static int rand(int min, int max) { int n; int mean = (min + max) / 2; int std = (max - mean) / 3; Random r = new Random(); do { double val = r.nextGaussian() * std + mean; n = (int) Math.round(val); } while (n < min || n > max); return n; }
  10. Here's one way of implementing this: public static int rand(int min, int max) { int n; int mean = (min + max) / 2; int std = (max - mean) / 3; Random r = new Random(); do { double val = r.nextGaussian() * std + mean; n = (int) Math.round(val); } while (n < min || n > max); return n; }
  11. SESH replied to Khaleesi's topic in Minigames
    Can I have a trial?
  12. LOL

    SESH replied to Kittens's topic in Spam/Off Topic
    Kid is a joke
  13. asuna sucks
  14. Weird it was free at my school
  15. http://osbot.org/forum/topic/64700-how-to-minimize-the-chances-of-getting-banned-while-botting/

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.