September 9, 20169 yr 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
September 9, 20169 yr http://osbot.org/forum/topic/105039-aleksandrherblore/ @@Solzhenitsyn Edited September 9, 20169 yr by Imateamcape
September 17, 20169 yr 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, 20169 yr by Mr Pro Pop
September 18, 20169 yr 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.
Create an account or sign in to comment