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 declare an NPC and interact with it?

Featured Replies

According to what I have read, and I understand, it is the following:

NPC bank_booth = getNpcs().closest(6943);
bank_booth.interact("Bank");

But this hangs the bot and I have to close it forcibly.

Attach the image of the error shown in consolta by osbot.org.

osbot error al intentar declarar npc.png

Well if your using bank booth that's a object not a npc, I would suggest you don't use ID's and use Strings instead 

final RS2Object bankBooth = script.getObjects().closest(new NameFilter<>("Bank booth"));

if (bankBooth != null) bankBooth.interact("Bank");

I'm assuming something like this is what you're after.

12 hours ago, 01053 said:

final RS2Object bankBooth = script.getObjects().closest(new NameFilter<>("Bank booth"));

if (bankBooth != null) bankBooth.interact("Bank");

I'm assuming something like this is what you're after.

you don't need the filter, just "Bank booth" is fine.

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.