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.

getting this error for fruit stand

Featured Replies

Error:(60, 43) java: incompatible types: org.osbot.rs07.api.model.RS2Object cannot be converted to org.w3c.dom.Entity

 

I get that error when I put this line of code in.

 

Entity Stall = objects.closest("Fruit Stall");

any idea on what is the issue?

14 minutes ago, yibster2009 said:

Error:(60, 43) java: incompatible types: org.osbot.rs07.api.model.RS2Object cannot be converted to org.w3c.dom.Entity

 

I get that error when I put this line of code in.

 


Entity Stall = objects.closest("Fruit Stall");

any idea on what is the issue?

You imported the wrong Entity class, make sure to import the one from OSBot.

  • Author
5 minutes ago, Night said:

You imported the wrong Entity class, make sure to import the one from OSBot.

how do i import from osbot. I thought I did that because i dont get errors on everything else. if i do npc there are no errors

 

I also have this

import org.w3c.dom.Entity;

 

 

Edited by yibster2009

2 minutes ago, yibster2009 said:

how do i import from osbot. I thought I did that because i dont get errors on everything else. if i do npc there are no errors

Well ideally you don't really need to use the Entity class, you should write it more like:
RS2Object stall = objects.closets("Fruit stall");

  • Author
1 minute ago, Night said:

Well ideally you don't really need to use the Entity class, you should write it more like:
RS2Object stall = objects.closets("Fruit stall");

that worked thank you, I looked at one of the tuts in the forums and thats what it had so i went with it

16 hours ago, yibster2009 said:

how do i import from osbot. I thought I did that because i dont get errors on everything else. if i do npc there are no errors

 

I also have this


import org.w3c.dom.Entity;

 

 

Entity will work but just make sure you import the osbot one but like @Night said RS2Object will work just fine.

For future reference Entity import looks like this - 

import org.osbot.rs07.api.model.Entity;

Edited by Imthabawse

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.