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.

walk() vs random path walking

Featured Replies

If i use the walk method and pass it an area, will it randomize the path/clicks or do i have to do this on my own?

If i use the walk method and pass it an area, will it randomize the path/clicks or do i have to do this on my own?

Area area = new Area(0, 0, 1, 1);

getLocalWalker().walk(area.getRandomPosition());
  • Author
Area area = new Area(0, 0, 1, 1);

getLocalWalker().walk(area.getRandomPosition());

Exactly what I need! thank you! 

 

What about interacting with objects ect, is there a way to make sure  i don't always click the same spot.

RS2Object portal = objects.getClosest("portal");

portal.interact("Teleporte");

How can i make this click the portal at random locations?

Exactly what I need! thank you! 

 

What about interacting with objects ect, is there a way to make sure  i don't always click the same spot.

RS2Object portal = objects.getClosest("portal");

portal.interact("Teleporte");

How can i make this click the portal at random locations?

 

It should be fairly random as it is?

  • Author

It should be fairly random as it is?

I don't know..Im trying to make this thing as random as possible. Im pretty new to the scripting so maybe im being a little too cautious. 

I don't know..Im trying to make this thing as random as possible. Im pretty new to the scripting so maybe im being a little too cautious. 

i haven't added any randomizing to my wc bot, and it doesnt click the same spot all the time on the trees.

I don't know..Im trying to make this thing as random as possible. Im pretty new to the scripting so maybe im being a little too cautious. 

 

Well interactions are pretty random by themselves.

 

Also going back to path walking, if you call walk() like this:

Position[] path = {

    new Position(0, 1, 0),
    new Position(0, 2, 0),
    new Position(0, 3, 0)
};

getLocalWalker().walkPath(path);

It will walk to each position in the array, but randomise each position to a distance of 1 tile.

 

So most things are already randomised for you. :)

if you're trying to reduce the ban rate, making it click different tiles on the way through a path won't do a thing!

  • Author

if you're trying to reduce the ban rate, making it click different tiles on the way through a path won't do a thing!

 

why not? and what would?

why not? and what would?

 

Not much you can do to be honest.

 

Best you can do is antiBan.rollAntiban().

  • Author

Not much you can do to be honest.

 

Best you can do is antiBan.rollAntiban().

 

I cant find that method in the api..

  • 2 weeks later...
  • Author
Area area = new Area(0, 0, 1, 1);

getLocalWalker().walk(area.getRandomPosition());

 

 

So it turns out this doesn't work after all...I'm not certain but i think it will only work if every tile in that area is walkable... i.e there is not object on the floor that stop you from standing on 1 spot. For me this failed 1/2 times and walk() would return false. 

 

By simply using 

getLocalWalker().walk(area);

the bot always walks to the correct area and walk never returns false... Also the position it clicks is randomized so no need to worry.

It seems i was complicating thing by trying to randomize more... :( Live and learn people! 

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.