PolishCivil Posted April 14, 2014 Share Posted April 14, 2014 (edited) my v public boolean eatShit() throws InterruptedException { for (Item current : client.getInventory().getItems()) { if (current.getDefinition().getActions() != null) { String[] strings = Arrays.copyOf(current.getDefinition().getActions(), current.getDefinition().getActions().length); Arrays.sort(strings); if (Arrays.binarySearch(strings, "Eat") >= 0) { return client.getInventory().interactWithId(current.getId(), "Eat"); } } } return false; } Edited April 14, 2014 by PolishCivil Link to comment Share on other sites More sharing options...
Declarative Posted April 15, 2014 Share Posted April 15, 2014 Wouldn't be so good when you have "Rock cake" ;) Link to comment Share on other sites More sharing options...