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.

How to see if inventory is full?

Featured Replies

This one video that had client.getInventory but it's not recognized in eclipse. I looked in the API in inventory and I couldn't find anything that had to do with the inventory capacity. Am I retarded?

  • Author
5 minutes ago, TrekToop11 said:

inventory.isFull() would work

I'm getting the error "inventory cannot be resolved or is not a field"

3 minutes ago, Tj2907 said:

I'm getting the error "inventory cannot be resolved or is not a field"

if (getInventory().isFull()) {
  do stuff...
}

That not work?

  • Author
7 minutes ago, IHB said:

if (getInventory().isFull()) {
  do stuff...
}

That not work?

Okay that works, but in the video he has client.getInventory

Will it function the same?

Edited by Tj2907

4 minutes ago, Tj2907 said:

Okay that works, but in the video he has client.getInventory

Will it function the same?

Ehh you're probably writing all your code in one class?

 

The guy in the video you're watching is probably using a Task based method of programming which involves using multiple classes and a method provider, he's called it client I guess. In every class he uses client.theMethod, for you just remove the .client before everything you're following.

10 minutes ago, Tj2907 said:

Okay that works, but in the video he has client.getInventory

Will it function the same?

thats basically saying " If the inventory is full, do this/these actions " for example 

 

if (getInventory().isFull()){
	getInventory().dropAll();
}

if the inventory is full, drop everything in the inventory.

Edited by TrekToop11
edit for clarification.

  • Author
8 minutes ago, IHB said:

Ehh you're probably writing all your code in one class?

 

The guy in the video you're watching is probably using a Task based method of programming which involves using multiple classes and a method provider, he's called it client I guess. In every class he uses client.theMethod, for you just remove the .client before everything you're following.

 

6 minutes ago, TrekToop11 said:

thats basically saying " If the inventory is full, do this/these actions " for example 

 


if (getInventory().isFull()){
	getInventory().dropAll();
}

if the inventory is full, drop everything in the inventory.

Alright thanks guys!

3 minutes ago, Chris said:

dont watch an old video :???: 

use the API docs :think:

http://osbot.org/api

I was watching an old video because I am trying to learn how to properly use the API with a video representation because it is easier to learn that way

Just now, Tj2907 said:

Alright thanks guys!

You're watching the same draynor chopper video I watched I think?

@Chris is right that's very old for OSBot 1

 

You're better off having a look through the tutorial section on the actual forum :)

https://osbot.org/forum/forum/250-tutorials/

  • Author
5 minutes ago, IHB said:

You're watching the same draynor chopper video I watched I think?

@Chris is right that's very old for OSBot 1

 

You're better off having a look through the tutorial section on the actual forum :)

https://osbot.org/forum/forum/250-tutorials/

Well I tried to follow by looking at the pictures on some of the forum topics but it was harder for me to understand it all compared to a video. I'm just using the video as like reference I guess to learn to use the API

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.