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 to click the same bank booth that it originally found?

Featured Replies

If I have 

RS2Object bankBooth = objects.closest("Bank booth");

it will find the closest bank booth to me. Problem is, if I am already standing in front of a bank booth, it will find the closest one next to me instead of interacting with the one already in front of me. How do I make it so when the script initially finds a bank booth, it will keep using the same one?

If I have 

RS2Object bankBooth = objects.closest("Bank booth");

it will find the closest bank booth to me. Problem is, if I am already standing in front of a bank booth, it will find the closest one next to me instead of interacting with the one already in front of me. How do I make it so when the script initially finds a bank booth, it will keep using the same one?

try:

objects.closest(true, "Bank booth");
  • Author

 

try:

objects.closest(true, "Bank booth");

 

Works. Didn't realize it was so simple. Thanks a lot.

yeah the default is not true distance, its the theory distance or whatever

If you always want the same one, despite it not being the closest, you could grab its id. So first define the bank booth, then get it's id, then interact with the id instead of the booth from then on? but If what josed said fixed it thank nice work :)

it doesnt work all the times but more of the time its does the boolean is the real distance.

Guest
This topic is now closed to further replies.

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.