Jump to content

Inventory problems


Recommended Posts

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.


Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.

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