aromatic Posted September 9, 2016 Share Posted September 9, 2016 Hello, I was wondering if it was possible to use/open all items of one type in inventory, as efficiently as possible (relative to game ticks) Thanks Quote Link to comment Share on other sites More sharing options...
Team Cape Posted September 9, 2016 Share Posted September 9, 2016 (edited) http://osbot.org/forum/topic/105039-aleksandrherblore/ @@Solzhenitsyn Edited September 9, 2016 by Imateamcape 1 Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted September 17, 2016 Share Posted September 17, 2016 (edited) Do you mean something like this ? //here is a method if you dont know the item name public void inventory() throws InterruptedException { Item inv = getInventory().getItem(item -> item.hasAction("Action")); inv.interact("Action"); } //here is other method to get it working by item name if you have the name public void inventory() { Item l = getInventory().getItem("Lobster"); l.interact("Eat"); } inLoop add this: inventory(); Edited September 24, 2016 by Mr Pro Pop Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted September 18, 2016 Share Posted September 18, 2016 Hello, I was wondering if it was possible to use/open all items of one type in inventory, as efficiently as possible (relative to game ticks) Thanks Write a method which populates a list of events, and then use a range-based for loop to execute them. For whatever reason (possibly a limitation of Java, the client, or my slow computer), trying to execute multiple within a ~25ms time-frame will cause bad things to happen. Quote Link to comment Share on other sites More sharing options...