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.

Walking to a tile

Featured Replies

	private static void walkToTile(Script script, Position position) {
		WalkingEvent walkingPath = new WalkingEvent(position);
		walkingPath.setMiniMapDistanceThreshold(0);
		walkingPath.setMinDistanceThreshold(0);
		script.execute(walkingPath);
	}

Doesn't work, when I'm already nearby the tile it wont move to it.

Is this something that is broken or am I doing something wrong?

I have had the same problem as you and I believe it's part of OSBot's antiban. If you are 1-2 tiles away from your chosen position then it will still deem it as acceptable regardless of you setting the threshold to 0.

 

If you want to walk to an exact tile then you could do the following... (Untested!)

MainScreenTileDestination destination = new MainScreenTileDestination(getBot(), PositionNameHere);
getMouse().click(destination);

Or using the minimap,

MiniMapTileDestination destination = new MiniMapTileDestination(getBot(), PositionNameHere);
getMouse().click(destination);

Edited by steve498

  • Author

 

I have had the same problem as you and I believe it's part of OSBot's antiban. If you are 1-2 tiles away from your chosen position then it will still deem it as acceptable regardless of you setting the threshold to 0.

 

If you want to walk to an exact tile then you could do the following... (Untested!)

MainScreenTileDestination destination = new MainScreenTileDestination(getBot(), PositionNameHere);
getMouse().click(destination);

Or using the minimap,

MiniMapTileDestination destination = new MiniMapTileDestination(getBot(), PositionNameHere);
getMouse().click(destination);

But could that ^ not get you into unwanted situations? Like if there's a ground item at that tile or an npc you might be clicking that

But could that ^ not get you into unwanted situations? Like if there's a ground item at that tile or an npc you might be clicking that

 

I suppose that's a possibility. I guess you could do something like:

destination.interact(bot, "Walk here")

Untested though but you get the idea.

  • Author

I suppose that's a possibility. I guess you could do something like:

destination.interact(bot, "Walk here")

Untested though but you get the idea.

Nvm, it does click the minimap and not an actual ground tile so you can't interact with anything.

The solution given works thanks!

Create an account or sign in to comment

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.