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
  • New scripter need some tips on walking and randomness.


    Vogelbekdier

    Recommended Posts

    So I started working on my first script which is a fire rune crafter that teleport to duel arena crafts runes, teleports back to draynor and replaces empty glory/dueling rings when needed. The script is currently working fine but walking is a bit slow and glitchy some times.

    I am currently walking the bot using the following method, which is currently very slow as it wait for the character to completely stop moving before it makes it's next click.

    Quote
    
    
    Area duelArena = new Area(3308, 3240, 3321, 3230, 0);
    Area altarEntrance = new Area(3311, 3253, 3310, 3251, 0 );
    
    
    if(Inventory.count("Pure essence") > 5 && !altarEntrance.contains(getLocalPlayer()) && !altarInside.contains(getLocalPlayer())) { // Walking to entrance
        log("Walking to entrance");
        Walking.walk(altarEntrance.getRandomTile());
        sleepUntil(() -> !getLocalPlayer().isMoving(), 8000);

     

    I would also like to add some randomness into the script for toggling run to on but am not sure how to go about this, for example how would I let the script toggle run if run is between x and y but not always be exactly the same number of run available?

     

    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.