Item item = script.getInventory().getItemInSlot(1);
if (item != null && script.getInventory().interact(1, "Drop")) {
new ConditionalSleep(5000, 500) {
public boolean condition() {
return item != null;
}
};
}
Over this
Item item = script.getInventory().getItemInSlot(1);
if (item != null && script.getInventory().interact(1, "Drop")) {
script.sleep(random(500, 3000));
}
Can someone please explain the difference between both methods, the idea behind them, how it would work, and why should/shouldn't I use that way?