it sleeps for maximum 10 seconds OR until it starts animating
Make sure to wrap the interact in an if too, so you won't be waiting 10 seconds if the interaction failed
if(spot.interact("Lure")){
new ConditionalSleep(10000) {
@Override
public boolean condition() {
return myPlayer().isAnimating();
}
}.sleep();
}
https://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html
For more info