pls
package infinitewalker;
import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.awt.Color;
import java.awt.Graphics2D;
@ScriptManifest(author = "Shudsy", info = "Walks all around runescape and does not stop!", name = "Shudsy's InfiniteWalker", version = 1, logo = "")
public class Infinite extends Script {
private long timeBegan;
final public Area runescape = new Area(2297, 3918, 3442, 2957);
@Override
public void onStart() throws InterruptedException {
timeBegan = System.currentTimeMillis();
}
@Override
public int onLoop() throws InterruptedException { {
getWalking().webWalk(runescape.getRandomPosition());
}
return 0;
}
@Override
public void onPaint(Graphics2D g) {
long timeRan = System.currentTimeMillis() - timeBegan;
g.setColor(Color.GREEN);
g.drawString("Timeran: " + ft(timeRan), 20, 230);
}
private String ft(long ms){
long s = ms / 1000, m = s / 60, h = m / 60, d = h / 24;
s %= 60; m %= 60; h %= 24;
return d > 0 ? String.format("%02d:%02d:%02d:%02d", d, h, m, s) :
h > 0 ? String.format("%02d:%02d:%02d", h, m, s) :
String.format("%02d:%02d", m, s);
}
}