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.

selecting items in inventory [question]

Featured Replies

Hello, hopefully this is the right section for this question.   I've been working on my first script which is a woodcutting/ firemaking script.

 

I am having trouble selecting items in my inventory, I want to select the Tinderbox . I have tried the following

 
inventory.interact("Tinderbox", "Use");
&
inventory.interactWithNameThatContains("Tinderbox"); 
 
neither of these have been able to select the Tinderbox for me. Am I using them wrong? 
 
I've also seen people use 
 
    client.getInventory().interactWithId(tinderbox, "Use");
    client.getInventory().interactWithNameThatContains(strLogType, "Use");
 
 Ive tried it this way too, however, using client.getInventory gives me the following error "The method getInventory() is undefined for the type Client"  .  is this an outdated method?

Edited by taco shack

unconventional way to do it but it works:

this.inventory.interact(this.inventory.getSlot("item name"), "item action");

gl!

 

apa

unconventional way to do it but it works:

this.inventory.interact(this.inventory.getSlot("item name"), "item action");
gl!

 

apa

Ugly lol

Get inventory(). Get item(string array).interact (action)

  • Author

Ugly lol

Get inventory(). Get item(string array).interact (action)

Thanks guys. This worked out.

 

Hello, hopefully this is the right section for this question.   I've been working on my first script which is a woodcutting/ firemaking script.

 

I am having trouble selecting items in my inventory, I want to select the Tinderbox . I have tried the following

 
inventory.interact("Tinderbox", "Use");
&
inventory.interactWithNameThatContains("Tinderbox"); 
 
neither of these have been able to select the Tinderbox for me. Am I using them wrong? 
 
I've also seen people use 
 
    client.getInventory().interactWithId(tinderbox, "Use");
    client.getInventory().interactWithNameThatContains(strLogType, "Use");
 
 Ive tried it this way too, however, using client.getInventory gives me the following error "The method getInventory() is undefined for the type Client"  .  is this an outdated method?

 

 

The signature for the interact method you're trying to use is:

public boolean interact(java.lang.String action,                        java.lang.String... names)

Which means that what you're doing is trying to select the action "Tinderbox" on the item "Use"

Swap these around and you should be good.

 

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.