Uses falador teleport for good mage xp.
Requirements 37 magic
Items needed
air staff and law/water runes
>>Download link<<
http://www.filedropper.com/faladorteleport
import org.osbot.rs07.api.ui.Spells;
import java.util.concurrent.TimeUnit;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.awt.*;
@ScriptManifest(name = "Falador teleport", author = "combat_acc", version = 1, info = "", logo = "")
public class main extends Script {
private long timeBegan;
private long timeRan;
@[member=Override]
public void onStart() {
//Code here will execute before the loop is started
}
@[member=Override]
public void onExit() {
//Code here will execute after the script ends
}
@[member=Override]
public int onLoop() throws InterruptedException {
getMagic().castSpell(Spells.NormalSpells.FALADOR_TELEPORT);
return 100; //The amount of time in milliseconds before the loop starts over
}
@[member=Override]
public void onPaint(Graphics2D g)
{
Graphics2D gr = g;
timeRan = System.currentTimeMillis() - this.timeBegan;
g.drawString(ft(timeRan), 40, 360);
}
// FORMAT TIME METHOD
private String ft(long duration)
{
String res = "";
long days = TimeUnit.MILLISECONDS.toDays(duration);
long hours = TimeUnit.MILLISECONDS.toHours(duration) - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(duration));
long minutes = TimeUnit.MILLISECONDS.toMinutes(duration) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(duration));
long seconds = TimeUnit.MILLISECONDS.toSeconds(duration) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration));
if (days == 0)
{
res = (hours + ":" + minutes + ":" + seconds);
}
else
{
res = (days + ":" + hours + ":" + minutes + ":" + seconds);
}
return res;
}
}