Kirito 5 Author Share Posted November 17, 2016 Try this script, it walks around f2p package main; import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.map.Tile; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import java.util.Random; @ScriptManifest(category = Category.MISC, name = "Walker", author = "rex", version = 1.0) public class mainclass extends AbstractScript { private Tile nextTile; private Tile one = new Tile(3237, 3148, 0); private Tile two = new Tile(3298, 3369, 0); private Tile three = new Tile(3274, 3477, 0); private Tile four = new Tile(3161, 3424, 0); private Tile five = new Tile(3005, 3362, 0); private Tile six = new Tile(3071, 3327, 0); private Tile[] tiles = {one, two, three, four, five, six}; public void onStart() { nextTile = tiles[rollNumber(0, 5)]; } @Override public int onLoop() { walk(); return Calculations.random(500,1000); } public int rollNumber(int min, int max) { return new Random().nextInt(max - min + 1) + min; } public void walk() { if(nextTile.getArea(10).contains(getLocalPlayer())) { nextTile = tiles[rollNumber(0, 5)]; } else { getWalking().walk(nextTile.getArea(10).getRandomTile()); sleep(2000,3000); } } } i'l see what happens Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.