Hey guys, so I've got this bit where the bot drinks wines but I want it to drop the jugs directly after drinking.
if (getInventory().contains("Jug of wine") && myPlayer().getHealthPercent() <= 60) {
log("Drinking");
getInventory().interact("Drink", "Jug of wine");
if (getInventory().contains("Jug")) {
log("Dropping");
getInventory().interact("Drop", "Jug");
This is what I've got so far but it only works sometimes other times it just ignores the jug after drinking. What would be a better way to do this?