Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

simple minimap walker

Featured Replies

public void walkTowardPosition(Position p) throws InterruptedException {
      if (this.myPlayer().getPosition().distance(p) > 15) {
         int d = random(12, 16);
         double scale = (double) d / this.myPlayer().getPosition().distance(p);
         Position mypos = this.myPosition();
         int dx = p.getX() - mypos.getX(), dy = p.getY() - mypos.getY();
         int x = mypos.getX() + (int) (dx * scale), y = mypos.getY() + (int) (dy * scale);
         Position dest = new Position(x, y, mypos.getZ());
         MouseDestination md = new MinimapTileDestination(this.bot, dest);
         if (!this.client.getDestination().equals(dest)) {
            this.client.moveMouseTo(md, false, true, false);
         }
         if (this.myPlayer().isMoving()) {
            int degrees = (int) Math.atan2(dy, dx);
            this.client.rotateCameraToAngle(degrees);
         }
         sleep(random(600, 1200));
      }
      else {
         MouseDestination md = new MinimapTileDestination(this.bot, p);
         if (!this.client.getDestination().equals(p)) {
            this.client.moveMouseTo(md, false, true, false);
         }
      }
   }
I found myself needing to check for objects while I was walking (performance reasons) so I created this.

Basically it projects your position on a straight line and tries to traverse it in increments of 12-16 tile intervals (size of minimap)

Works pretty flawlessly.

Edit: it may be confusing, but this must be called a bunch of times to work. It basically clicks in the spot on the minimap that it calculates when it's called.

Edited by dreamliner

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.