Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Ending up with a bunch of errors


    Kirito

    Recommended Posts

     

    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

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.