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 do I interact with specific item?

Featured Replies

OSBot Version: 2.3.90


Description: When using Item.interact with an inventory of the same items it seems to only interact with the first found item.


 


Firstly, I'm not an idiot when it comes to programming, so locking my last post and telling me it was my own issue isn't the way to go about it.


 


Secondly, I've tested numerous ways of doing this and it still does the same thing.


 


Basically, when you have any duplicate items in your inventory and select an item at a slot, for example the last slot, the client will find the first available item of that ID and use that instead.


 


CODE LINKED AS PASTEBIN; Some reason when I write a quick example in Notepad++ the formatting is ruined posting here.


 


http://pastebin.com/LdMRUwJK


 


Now, this works fine if the items are different, for example, with this inventory;


 


d3mYwcs.png


 


First it will drop the Rod, which is correct. Then it will drop the feathers, which is also correct, however after that it begins to drop the trout FROM THE FIRST TROUT TO THE LAST, which isn't correct. It should drop the one next to the feathers and work back, however item.interact seems to just find the next available item not the specific item.


Edited by Zee Best

Firstly, your example doesn't include anything to do with the var item.

Secondly, how are you getting the item? items[index] or getInventory().getItemAtSlot(index)?

  • Author

Firstly, your example doesn't include anything to do with the var item.

Secondly, how are you getting the item? items[index] or getInventory().getItemAtSlot(index)?

 

Sorry, had to write it into Notepad++ as most of my work uses my own API.

 

I'm using it as items[index] that's why I've declared the array. Even using getItemAtSlot(index) still returns the same result.

  • Author

Why has this been moved to scripting help? IT IS A FUCKING BUG. Do you not understand? I'm not an idiot, I've been programming almost 10 years, I'm a Scholar on a different botting forum and I know what I'm doing.

 

I don't need help, I have already told you the problem, use the fucking code I posted with a similar inventory and you will see the issue too...

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.