Jump to content

Inventory problems


Recommended Posts

Posted

How can everybody on this forum use: "getInventory", "inventory.isFull()". My OSBot just doesn't have a reference to inventory, what the fuck is an inventory eclipse asks me when I try to put any of the related code into my own script.

 

Even the API http://osbot.org/api/org/osbot/rs07/api/Inventory.html says there should exist such a page. Well, the latest OSBot I've downloaded doesn't have such an import.

 

Why and or what am I doing wrong?

Such things don't exist for me.

	if(inventory.isFull()){
			
		}
if(getInventory().isEmpty()){

}
Posted

Do what apa said first. Once the jar is connected with your project. You can reference it about you bring jn the import. Usually I call the class and then its import.

Finally @op when grabbing classes from the method provider / script class. Always use the getter methods. getInventory() getBank() getStore()

Posted

Also getting this when getInventory()

 

The method getInventory() from the type MethodProvider refers to the missing type Inventory

 

Because I haven't imported inventory which I cannot import because I am missing the import. I just downloaded the latest osbot on the main page and added it to build path, this is completely random and retarded that I'm currently having this issue, or I'm just stupid.

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