Here's a quick class that you can use to override the default interaction timers.
import org.osbot.rs07.utility.*;
import java.util.function.*;
public final class Sleep extends ConditionalSleep {
private final BooleanSupplier condition;
public Sleep(final BooleanSupplier condition, final int timeout) {
super(timeout);
this.condition = condition;
}
public Sleep(final BooleanSupplier condition, final int timeout, final int interval) {
super(timeout, interval);
this.condition = condition;
}
public boolean condition() throws InterruptedException {
return this.condition.getAsBoolean();
}
public static boolean sleepUntil(final BooleanSupplier condition, final int timeout) {
return new Sleep(condition, timeout).sleep();
}
public static boolean sleepUntil(final BooleanSupplier condition, final int timeout, final int interval) {
return new Sleep(condition, timeout, interval).sleep();
}
}
Now to override the interaction speed for something like pickpocketing all you have to do is.
if(targetWithAHugeDong.interact("Pickpocket")){
Sleep.sleepUntil(() -> myPlayer().exists(), random(950, 1500));
break;
};
You can now modify the speed at which you click/interact with the target. It no longer requires the animation to finish. I'll post all my 2-3 tick scripts publicly when I'm done skilling to 99. ?