Jump to content

Walking to a tile


lisabe96

Recommended Posts

	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?

Link to comment
Share on other sites

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
  • Like 3
Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...