Jump to content

getting this error for fruit stand


yibster2009

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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