getObjects().closest(16469).interact("Smelt");
new ConditionalSleep(5000) {
@Override
public boolean condition() {
return getWidgets().getWidgets().isVisible(162,546);
}
}.sleep();
getWidgets().interact(311,14,"Smelt X");
new ConditionalSleep(5000) {
@Override
public boolean condition() {
return getWidgets().isVisible(162, 32);
}
}.sleep();
getKeyboard().typeString("" + random(33, 95));
This is the code I'm using. In a fresh script with only this running it does not work.