Zee Best Posted August 1, 2015 Share Posted August 1, 2015 (edited) 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; 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 August 2, 2015 by Zee Best Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted August 1, 2015 Share Posted August 1, 2015 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)? Quote Link to comment Share on other sites More sharing options...
Zee Best Posted August 1, 2015 Author Share Posted August 1, 2015 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. Quote Link to comment Share on other sites More sharing options...
Zee Best Posted August 1, 2015 Author Share Posted August 1, 2015 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... Quote Link to comment Share on other sites More sharing options...