Skip 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.

at org.osbot.script.MethodProvider.closestObject(qk:1886)

Featured Replies

 

 

Line 13:

RS2Object vein1 = closestObject(16482);

Anyone knows what to do?

 

Where are you declaring this? as a Global or private variable?

Edited by Divinity

  • Author

Global I think. Outside of any methods. But it was like that before and it didn't pop such error - it wasn't working, but no error occured huh.png

make sure in MLM that viens are actually game objects... when it first came out i couldn't get it to interact very well.

+ make sure ID is updated, they will most likely change it frequently

Global I think. Outside of any methods. But it was like that before and it didn't pop such error - it wasn't working, but no error occured huh.png

 

You can't just declare a global object like that, make it private. 

private RS2Object vein = null;

Then in your onStart() or something declare it, vein = closestObject(ID);

 

Let me know if it fixes it for you ^_^

Edited by Divinity

  • Author

I've done exactly what you said. Declared private RS2Object, made it equal to null and then in onStart() I assigned it proper ID. Still getting the same error. Tried v1.8.7 and v1.8.8.


Did u checked if the object is null?

 

getState() is based on that.

I've done exactly what you said. Declared private RS2Object, made it equal to null and then in onStart() I assigned it proper ID. Still getting the same error. Tried v1.8.7 and v1.8.8.

 

getState() is based on that.

 

Upload to pastebin and pm me your code, hard to tell off just one line. I will take a look for you.

Edited by Divinity

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.