Jump to content

Welcome to DreamBot!

Trusted by thousands of users since 2014.

Download for Free

Supercharge Your Bots

Run unlimited bots today using DreamBot's Covert Mode and
stay more protected.

Upgrade Now
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
  • Forums

    1. DreamBot

      1. 6k
        posts
      2. 11.2k
        posts
      3. 4.1k
        posts
    2. Community

      1. 10.6k
        posts
      2. 4k
        posts
      3. 3.1k
        posts
      4. Applications

        Apply for staff & scripter ranks.

        • No posts here yet
    3. Scripts

      1. 120.3k
        posts
      2. 862
        posts
      3. 371
        posts
      4. 550
        posts
      5. 100
        posts
    4. Development

      1. 10.7k
        posts
      2. 891
        posts
    5. Market

      1. 8.2k
        posts
      2. 3.1k
        posts
      3. 102.5k
        posts
      4. 18.6k
        posts
      5. 34.6k
        posts
      6. 29.1k
        posts
      7. 33.2k
        posts
      8. 117
        posts
      9. 33.9k
        posts
    6. Management

      1. 1.6k
        posts
      2. 386
        posts
      3. 30.1k
        posts
    • Best Sellers

    • Latest Products

    • Featured

    • Topics

    • Posts

      • Currently im working on a script, i havent coded any osrs scripts before. I've seen on the forums that using while loops are usually a bad practice, the script i am working on is a little big scaled so if i just use the onLoop as my main loop and use "if"'s to  decide what to do now i guess it would'nt be that performance friendly (because of a lot of unnecessary "if" checks would happen if i broke out of a "if" everytime i do something). So i came up with something like this;   public boolean walkToTile(int x, int y, int z) { Tile myTile = new Tile(x,y,z); if (Players.getLocal().distance(myTile) > 5) { Logger.log("Current destination: " + Client.getDestination()); if (Client.getDestination() == null || Client.getDestination().distance(Players.getLocal()) < 4) { Walking.walk(myTile); Sleep.sleepUntil(() -> Players.getLocal().isMoving(), 1200); Sleep.sleep(Calculations.random(100,300)); } return false; } else { return true; } } Sleep.sleepUntil(() -> botMethod.walkToTile(3154,3475,0), 1000000); Lemme know your thoughts about this, is it a bad practice? And would it still be a bad practice if i added conditional checks like inGame, ping, canWalk etc.?
      • Date Purchased:  1/11/24 Script Purchased:  Dreamy Puro Puro Script Creator (tag them with @): @Zawy Reason for Refund: Not very ironman friendly, did not see this information prior to purchase and could not tell during trial, barely used at all. Proof of Issues (required: screenshots, videos, and/or DreamBot logs):  Proof of Script Creator Contact (required: screenshots, videos, and/or links to replies):  Desired Outcome: Refund (back to payment method or store credit) / Issue Fixed / Script Swap. Refund
      • Date Purchased:  1/11/24 Script Purchased: Pyfa Puro Puro Script Creator (tag them with @): @Pyfa Reason for Refund: Not very ironman friendly, did not see this information prior to purchase and could not tell during trial, barely used at all. Proof of Issues (required: screenshots, videos, and/or DreamBot logs):  Proof of Script Creator Contact (required: screenshots, videos, and/or links to replies):  Desired Outcome: Refund (back to payment method or store credit) / Issue Fixed / Script Swap. Refund
      • mine is even worse https://imgur.com/a/Ct61Apf
      • Hi all, New here. I followed the basic woodcutting script tutorial from the dreambot guide: https://dreambot.org/guides/scripter-guide/how-to/making-a-basic-woodcutting-script/#depositing-item-into-the-bank When I run the script, it correctly identifies the state (say I'm at the bank, it starts walking to the tree area), but it will attempt to home tele almost immediately. I used the coordinates from the map recommended in the tutorial (https://explv.github.io/). I thought that maybe it was somehow wrong, so I tried using the the built-in player position coordinates like:   Area bankArea = new Area(new Tile(3182, 3436), new Tile(3185, 3436)); Area normalTreeArea = new Area(new Tile(3166, 3409), new Tile(3163, 3241)); But the problem still persists. Any ideas? Thanks.     EDIT: I figured it out. I wasn't selecting an actual area (with the square option in the top right) while using https://explv.github.io/. My script is working now.
    • Popular Contributors

    • Feedback Statistics

      • Positive
        11462
      • Neutral
        19
      • Negative
        150
      • Total Positive
        99%
    ×
    ×
    • 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.