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

Check for certain amount of items on the ground

Featured Replies

Hello im having problem a little trouble with my script.

 

I want it to be able to check the ground, if number of items on the ground currently are more than 28 or less than 28.

 

if its less then 28 then im going to continue dropping items

 

if its more than 28 then im going to pick them up

 

but it says bad operander type I searched around and found no answer.

 

I attached a screenshot of the problem below thanks alot smile.png

 

merry christmas everyone!

post-243631-0-49403200-1482540696_thumb.png

Edited by Alext1996

m8... isFull() is a method

!inventory.isFull()

also, your operand is backwards

 

=> is not greater than or equal to. that's an arrow.

 

>= is greater than or equal to.

 

edit: you're also trying to ask if a GroundItem (an object) is greater than or equal to 28 / less than 28.

That's like asking someone, "Is my textbook less than 20?". You can't compare an object to a number. Use getAmount().

 

it looks like you need to familiarize yourself with java a little bit more before coding.

 

Edited by Imateamcape

  • Author

m8... isFull() is a method

!inventory.isFull()

also, your operand is backwards

 

=> is not greater than or equal to. that's an arrow.

 

>= is greater than or equal to.

 

edit: you're also trying to ask if a GroundItem (an object) is greater than or equal to 28 / less than 28.

That's like asking someone, "Is my textbook less than 20?". You can't compare an object to a number. Use getAmount().

 

it looks like you need to familiarize yourself with java a little bit more before coding.

 

yeah I know isfull is a method, that is just a typo I was asking about if there is a way to check how many objects are on the ground.

 

I have watched so many tutorials on youtube im sick of it thats why i decided to start coding instead so I learn by doing

 

thanks for the help

m8... isFull() is a method

!inventory.isFull()

also, your operand is backwards

 

=> is not greater than or equal to. that's an arrow.

 

>= is greater than or equal to.

 

edit: you're also trying to ask if a GroundItem (an object) is greater than or equal to 28 / less than 28.

That's like asking someone, "Is my textbook less than 20?". You can't compare an object to a number. Use getAmount().

 

it looks like you need to familiarize yourself with java a little bit more before coding.

 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.