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

    1. DreamBot

      1. 5.9k
        posts
      2. 11.5k
        posts
      3. 4.4k
        posts
    2. Community

      1. 12.9k
        posts
      2. 5.4k
        posts
      3. 5.7k
        posts
      4. Applications

        Apply for staff & scripter ranks.

        • No posts here yet
    3. Scripts

      1. 106.4k
        posts
      2. 1.6k
        posts
      3. 317
        posts
      4. 2.1k
        posts
      5. 74
        posts
    4. Development

      1. 10.5k
        posts
      2. 1.4k
        posts
    5. Market

      1. 7.3k
        posts
      2. 2.4k
        posts
      3. 98.5k
        posts
      4. 17.9k
        posts
      5. 32.3k
        posts
      6. 28.8k
        posts
      7. 33k
        posts
      8. 213
        posts
      9. 33.1k
        posts
    6. Management

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

    • Latest Products

    • Featured

    • Topics

    • Posts

      • I have an issue. I have succeeded in installing Java 1.8 on my virtual machine. When I run DBLauncher through CMD as admin it works. I get in and everything. I have patched it so that when I start Runelite through the Jagex launcher the Dreambot window pops up.  But when I press Launch Client nothing happens.   Does anyone know the issue here? Does it have something to do with that I can't open DBlauncher as normal and needs to open with CMD as administrator?
      • You can customize Bezier steps and overshooting distance.. have fun,   Put this in your onStart method   Mouse.setMouseAlgorithm(new WindMouseCustom());
      • import org.dreambot.api.input.Mouse; import org.dreambot.api.input.event.impl.mouse.MouseButton; import org.dreambot.api.input.mouse.algorithm.MouseAlgorithm; import org.dreambot.api.input.mouse.destination.AbstractMouseDestination; import org.dreambot.api.methods.Calculations; import org.dreambot.api.utilities.Logger; import java.awt.*; import java.util.Random; /** * Modified WindMouse with customized Bézier curves and overshooting for human like movement */ public class WindMouseCustom implements MouseAlgorithm { private Random random = new Random(); @Override public boolean handleMovement(AbstractMouseDestination abstractMouseDestination) { Point suitPos = abstractMouseDestination.getSuitablePoint(); mouseMovement(suitPos); return distance(Mouse.getPosition(), suitPos) < 2; } @Override public boolean handleClick(MouseButton mouseButton) { return Mouse.getDefaultMouseAlgorithm().handleClick(mouseButton); } public static void sleep(int min, int max) { try { Thread.sleep(Calculations.random(min, max)); } catch (InterruptedException e) { Logger.log(e.getMessage()); } } public static void sleep(int ms) { try { Thread.sleep(ms); } catch (InterruptedException e) { Logger.log(e.getMessage()); } } /** * enhanced mouse movement using Bézier curves for smooth, human like pathing * * @param point The destination point */ public void mouseMovement(Point point) { Point curPos = Mouse.getPosition(); boolean shouldOvershoot = random.nextBoolean(); // Random chance to overshoot if (shouldOvershoot) { Point overshootPoint = getOvershootPoint(curPos, point); moveMouseBezier(curPos, overshootPoint); // First move to the overshoot point moveMouseBezier(overshootPoint, point); // Then correct to the target point } else { moveMouseBezier(curPos, point); // Directly move to the target point } } /** * Generate control points for Bezier curve * * @param start The start point * @param end The end point * @return Array of control points */ private Point[] generateControlPoints(Point start, Point end) { Point[] controlPoints = new Point[4]; controlPoints[0] = start; controlPoints[3] = end; int midX = (start.x + end.x) / 2; int midY = (start.y + end.y) / 2; controlPoints[1] = new Point(midX + random.nextInt(100) - 50, midY + random.nextInt(100) - 50); controlPoints[2] = new Point(midX + random.nextInt(100) - 50, midY + random.nextInt(100) - 50); return controlPoints; } /** * Move mouse using a Bezier curve * * @param start The start point * @param end The end point */ private void moveMouseBezier(Point start, Point end) { Point[] controlPoints = generateControlPoints(start, end); int steps = Calculations.random(30, 50); // Increase steps for smoother curves for (int i = 0; i <= steps; i++) { double t = (double) i / (double) steps; int x = (int) (Math.pow(1 - t, 3) * controlPoints[0].x + 3 * Math.pow(1 - t, 2) * t * controlPoints[1].x + 3 * (1 - t) * Math.pow(t, 2) * controlPoints[2].x + Math.pow(t, 3) * controlPoints[3].x); int y = (int) (Math.pow(1 - t, 3) * controlPoints[0].y + 3 * Math.pow(1 - t, 2) * t * controlPoints[1].y + 3 * (1 - t) * Math.pow(t, 2) * controlPoints[2].y + Math.pow(t, 3) * controlPoints[3].y); Mouse.hop(new Point(x, y)); try { Thread.sleep(Calculations.random(5, 15)); } catch (InterruptedException e) { Logger.log(e.getMessage()); } } } /** * Calculate an overshoot point past the target for more human like behavior * * @param start The start point * @param end The end point * @return The overshoot point */ private Point getOvershootPoint(Point start, Point end) { int overshootDistance = 30 + random.nextInt(31); // Random overshoot between 30 and 60 pixels double angle = Math.atan2(end.y - start.y, end.x - start.x); int overshootX = (int) (end.x + overshootDistance * Math.cos(angle)); int overshootY = (int) (end.y + overshootDistance * Math.sin(angle)); return new Point(overshootX, overshootY); } public double distance(Point p1, Point p2) { return Math.sqrt((p2.y - p1.y) * (p2.y - p1.y) + (p2.x - p1.x) * (p2.x - p1.x)); } }
      • Make sure you are on the latest dreambot version if you arent already usually fixes stuff like this
    • Popular Contributors

    • Feedback Statistics

      • Positive
        11388
      • Neutral
        18
      • Negative
        144
      • 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.