for(int i = 0; i < 28; i ++){
item = instance.inventory.getItemInSlot(i);
if(item == null) continue;
instance.inventory.interact(i, "Drop");
for(int temp = 0; temp < i; temp ++){ //This part of the method should counter
Item tempItem = instance.inventory.getItemInSlot(temp); // items being skipped due to unknown causes, presumably lag.
if(tempItem != null)){
MethodProvider.sleep(MethodProvider.random(200,400));
inventory.interact(temp, "Drop");
}
}
}
}
You can probably change this around a bit, but what it does is goes back when items are accidentally skipped due to lag, instead of looping through the entire inventory, then checking if there are items left over. Snippet I provided is not very bot like.
Just add the ferret check line, and you should be all G