Jump 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.

Random pathwalking?

Featured Replies

private Position[] path = {
            new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0),
            new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0)
    };


localWalker.walkPath(path);

That is Alek's example in the tutorial section for walking along a path.

 

If I use that method it will click the exact same spots over and over when walking right?

Is it possible to use walkPath(path) but make it click somewhere near the paths?(Antiban)

 

I have been using webWalking to areas but it seems creating own paths is better in some cases.

 

BR c0nan

   private Position randomPosition(int x, int y, int z) {
        return new Position(x + random(-2, 1), y + random(-2, 1), z);
    }

 

Edited by BurritoBug

If you are walking relatively short distances, there is no need to use the web-walker. There are some simple math approaches you can take.

private Position[] path = {
            new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0),
            new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0)
    };


localWalker.walkPath(path);

That is Alek's example in the tutorial section for walking along a path.

 

If I use that method it will click the exact same spots over and over when walking right?

Is it possible to use walkPath(path) but make it click somewhere near the paths?(Antiban)

 

I have been using webWalking to areas but it seems creating own paths is better in some cases.

 

BR c0nan

 

private static List<Position> path = Arrays.asList(new Position(3254 + random(-2, 1), 3421, 0),
new Position(3256 + random(-2, 1), 3428, 0), new Position(3264 + random(-2, 1), 3428, 0),
new Position(3273 + random(-2, 1), 3428, 0), new Position(3277 + random(-2, 1), 3426, 0),
new Position(3281 + random(-2, 1), 3422, 0));

Usage:

getWalking().walkPath(path);

Edited by progamerz

  • Author
private static List<Position> path = Arrays.asList(new Position(3254 + random(-2, 1), 3421, 0),
new Position(3256 + random(-2, 1), 3428, 0), new Position(3264 + random(-2, 1), 3428, 0),
new Position(3273 + random(-2, 1), 3428, 0), new Position(3277 + random(-2, 1), 3426, 0),
new Position(3281 + random(-2, 1), 3422, 0));

Usage:

getWalking().walkPath(path);

 

Thanks for the example code! 

I think I will go with this solution (also stated in previous answers)

 

Thanks for all answers & your time! smile.png

 

BR c0nan

 

 

use area's to walk to, the spot on which it will click will always be random then

  • Author

use area's to walk to, the spot on which it will click will always be random then

 

That is one solution however for walking a short distance (2 clicks on the map) using a random "Path position" is (imo) more suitable. This is of course not the case if the player could access the "Area" in one click on the map. smile.png

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.