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
  • Webwalking issues at Wizards Tower


    Jort

    Recommended Posts

    Destination: walkable area before Lesser demon cage.

    Behaviour:

    case 1:

    - works instantly

    case 2:

    - walks 3/4 bridge

    - walks to adjecent lumbridge forest, parallel to supposed position on bridge

    - keeps failing

    case 3:

    - walks bridge 3/4 of the way

    - turns back to begin of bridge

    - repeat

    - eventually works

    Demonstration code:

    import org.dreambot.api.methods.map.Area;
    import org.dreambot.api.methods.walking.impl.Walking;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.Category;
    import org.dreambot.api.script.ScriptManifest;
    
    @ScriptManifest(category = Category.MISC, name = "WalkingTest", author = "Jort", version = 0.0)
    public class WalkTest extends AbstractScript {
    
        Area lesserDemonArea = new Area(3108, 3161, 3113, 3159, 2);
        @Override
        public int onLoop() {
            if(Walking.shouldWalk()){
                Walking.walk(lesserDemonArea.getCenter());
            }
            return 100;
        }
    }
    

     

    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.