Woflyz 0 Posted September 22, 2018 This might be a really stupid question, but I couldn't find the answer to it anywhere else, how do I make it consume something, what's the code for it? Thanks in advance!
Nex 2546 Posted September 22, 2018 there is this thing called a mouth funny little hole near the bottem of ur head you take some food and put it in this hole thats pretty much all there is to it
Nex 2546 Posted September 22, 2018 public void eatFood() { if (!getScript().getTabs().isOpen(Tab.INVENTORY)) { getScript().getTabs().open(Tab.INVENTORY); } else { Item food = getScript().getInventory().get(item -> item != null && item.hasAction("Eat")); if (food != null) { food.interact("Eat"); MethodProvider.sleepUntil(() -> getScript().getLocalPlayer().getHealthPercent() > 70, 1500); } } }
Woflyz 0 Author Posted September 22, 2018 I have placed this into my script, but it errors on getScript(), how should I fix that? I'm really unexperienced with this :p
Nex 2546 Posted September 22, 2018 1 hour ago, Woflyz said: I have placed this into my script, but it errors on getScript(), how should I fix that? I'm really unexperienced with this 😛 delete it as u prob only have 1 class
Recommended Posts
Archived
This topic is now archived and is closed to further replies.