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.

getObjects().closest() in larger area?

Featured Replies

Hi,

my getObjects().closest("Ore vein") seems to only look for Ore vein within a 3-4 tile radius, is there any way I can increase that to the whole screen or any bigger amount?

  • Author
12 hours ago, Chris said:

getObjects().getAll()

Thanks for your answer! Will this get all objects that are currently in my client/window? 

10 minutes ago, elbojoloco said:

Thanks for your answer! Will this get all objects that are currently in my client/window? 

It will get all objects in the loaded region 

getObjects().closest() should still work it's always worked for the full screen for me. Strange..

  • Author
4 hours ago, jca said:

It will get all objects in the loaded region 

Hey, how do I get the closest to me from the getObjects().getAll() part?

3 hours ago, elbojoloco said:

Hey, how do I get the closest to me from the getObjects().getAll() part?

getObjects().closest("Ore vein") 	

That will return the closest object with that name from all the objects in getObjects().getAll(), which returns all the objects in the loaded region. If you want to use getAll() use Java's stream API.

getObjects().getAll().stream().filter(obj -> obj.getName().equalsIgnoreCase("Ore vein")).findFirst().orElse(null); 

That will return the first object in the collection with the name "Ore vein". If you want to compare distance that you have to use .min() 

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.