final int MAX = 4, TIMEOUT = 7000;
for (int i=1; i<=MAX; i++) {
script.log("Positioner webWalk->" + dest + " try " + i);
if (!script.walking.webWalk(dest)) {
script.log("webWalk call failed");
continue;
}
long start = System.currentTimeMillis();
while (System.currentTimeMillis()-start < TIMEOUT) {
if (script.myPosition().equals(dest)) {
script.log("Arrived at tile: " + dest);
return true;
}
script.sleep(150);
}
script.log("Timeout at pos: " + script.myPosition());
}
This is what I was attempting