Jump to content

getting this error for fruit stand


Recommended Posts

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

Posted (edited)
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
Posted (edited)
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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...