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.

Check if GroundItem is noted/stackable

Featured Replies

Didn't see anything in the API. I'd like to check if an item is noted or stackable so that my script can loot it while having a full inventory.

 

Edited by Polymorphism

38 minutes ago, Polymorphism said:

Didn't see anything in the API. I'd like to check if an item is noted or stackable so that my script can loot it while having a full inventory.

 

Have you tried this to check if it is noted:

groundItem.getDefinition().isNoted()

 

Edited by Explv

  • Author
Just now, Explv said:

Have you tried:


groundItem.getDefinition().isNoted()

 

Damn..mustve looked right over #getDefinition

 

Thanks man

33 minutes ago, Polymorphism said:

Didn't see anything in the API. I'd like to check if an item is noted or stackable so that my script can loot it while having a full inventory.

 

If an item is stackable, it's noted id will be -1.

Here is a test example:

// Fire rune (stackable)
log("Fire rune noted id: " + ItemDefinition.forId(554).getNotedId());

// Cannonball (stackable)
log("Cannonball noted id: " + ItemDefinition.forId(2).getNotedId());

// Yew logs (not stackable)
log("Yew logs noted id: " + ItemDefinition.forId(1515).getNotedId());

 

Output:

[INFO][Bot #1][05/03 10:17:00 PM]: Fire rune noted id: -1
[INFO][Bot #1][05/03 10:17:00 PM]: Cannonball noted id: -1
[INFO][Bot #1][05/03 10:17:00 PM]: Yew logs noted id: 1516

 

So to check if a ground item is stackable:

groundItem.getDefinition().getNotedId() == -1

 

  • Author
1 hour ago, Explv said:

If an item is stackable, it's noted id will be -1.

Here is a test example:


// Fire rune (stackable)
log("Fire rune noted id: " + ItemDefinition.forId(554).getNotedId());

// Cannonball (stackable)
log("Cannonball noted id: " + ItemDefinition.forId(2).getNotedId());

// Yew logs (not stackable)
log("Yew logs noted id: " + ItemDefinition.forId(1515).getNotedId());

 

Output:


[INFO][Bot #1][05/03 10:17:00 PM]: Fire rune noted id: -1
[INFO][Bot #1][05/03 10:17:00 PM]: Cannonball noted id: -1
[INFO][Bot #1][05/03 10:17:00 PM]: Yew logs noted id: 1516

 

So to check if a ground item is stackable:


groundItem.getDefinition().getNotedId() == -1

 

Wow, good info! You are seriously an awesome guy :D

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.