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.

Inventory problems

Featured Replies

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

}

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

  • Author

Thanks for the replies,

 

As I was saying I can't import the Inventory, because I don't have it. I honest to god don't have an Inventory import.

Yes I have OSBot applied to my buildpath, all the other imports work. (See Gyazo)

 

http://gyazo.com/283bca326df3573d04a899ec6261585c

 

Best regards,

Peavalu

  • Author

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

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.