Jump to content

Bot doesn't want to move 1/2 tiles


redeye

Recommended Posts

In the sence of not a half but one or two tiles away from the character. 

 

 

 

The gege is where it should be going, and the walk is that its going to walk there

 

I can't see any reason for it not to interact, it seems like its within the bounding region and it just needs to click. @Swizzbeat's suggestion will be the quickest fix as I'm sure it's client related.

Link to comment
Share on other sites

probably related to this:

 

ddb6dc2b465d5c32b35d95452db62b3d.png

that is the reason why

	public boolean walk(boolean precise, Position pos) throws InterruptedException	{
		return precise ? this.clickMiniMapPosition(pos): s.localWalker.walk(pos);
	}

        private boolean clickMiniMapPosition(Position position) throws InterruptedException {
    	       return s.mouse.click(new MiniMapTileDestination(s.bot, position));
        }
    
Link to comment
Share on other sites

 

Thanks swizzbeat, solved it with:

 

Position p = new Position(x1WS,y1WS,0);
mouse.click(new MiniMapTileDestination(bot, p));

 

Make sure either you're ALWAYS calling that code when the tile is visible on the or you have a null check for the destination. If you try to call mouse.click with a null argument you will have a NPE thrown.

Link to comment
Share on other sites

I personally check for a distance of 14 just to be on the safe side, however I think it's like 16 or so.

public boolean isOnMinimap(Position position) {
	short[] coords = GraphicUtilities.getMinimapScreenCoordinate(bot, position.getX(), position.getY());
	return coords[0] != -1 && coords[1] != -1;
}
Edited by FrostBug
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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