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.

How do I use an object at a certain location?

Featured Replies

I'm trying to mine a rock at a specific location, but can't seem to work out how to do it?

I assumed it would be something along of lines of

getObjects().closest("Rock") at location (1334, 1553);

But I can't work out how to add a location to the object. Do I need to make my own method or something to check the location?

like:
 

public boolean rockLocation() {

     if (getObjects().closest("Rock").exists && Location == (1334, 1553)) {

          return true;

     }

}

 

I just don't know how to check the location. Cheers guys

Use filters: getObjects().closest(o -> o.getname.equals("Rock") && o.getPosition().equals(POSITION))

  • Author
On 9/20/2020 at 12:54 PM, ez11 said:

Use filters: getObjects().closest(o -> o.getname.equals("Rock") && o.getPosition().equals(POSITION))

Thank you dude, any chance you can explain what the code is doing so i can understand fully using comments? No worries if not man

13 minutes ago, mitsuki said:

Thank you dude, any chance you can explain what the code is doing so i can understand fully using comments? No worries if not man

There are a lot of ways to filter stuff, thats just a quick way to filter the closest object that meets the criteria. You could also filter for .hasAction() or pretty much anything else.

Just google "osbot filter" for more info/examples

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

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.