fre024 Posted June 8, 2014 Posted June 8, 2014 (edited) This method will not walk to the tile if it is unreachable (for example water). // ignore : How can i walk to a tile on water? how can i CLICK on a tile on water? thx Edited June 8, 2014 by fre024
fre024 Posted June 8, 2014 Author Posted June 8, 2014 (edited) I think you answered your own question... It is not possible? Can i not use mouse.click(dunno what comes here); Edited June 8, 2014 by fre024
Jack Posted June 8, 2014 Posted June 8, 2014 It is not possible? Can i not use mouse.click(dunno what comes here); If the tile is not reachable, you cant walk to it... We must not be on the same page...
Swizzbeat Posted June 8, 2014 Posted June 8, 2014 Why would you ever want to walk to a tile that you cannot reach? If you're intent on doing this anyway, create a MiniMapTileDestination and click the bounding box.
Extreme Scripts Posted June 8, 2014 Posted June 8, 2014 You can't walk onto a tile with water, only tiles that are clickable can be walked on.
fre024 Posted June 8, 2014 Author Posted June 8, 2014 I want to click on the tile not walk. Sorry for the missconception Why would you ever want to walk to a tile that you cannot reach? If you're intent on doing this anyway, create a MiniMapTileDestination and click the bounding box. Help me out here please, i am still learning. MiniMapTileDestination(bot, Tile); method is undefined.
Swizzbeat Posted June 8, 2014 Posted June 8, 2014 (edited) private boolean clickMiniMapPosition(Position position) throws InterruptedException { return mouse.click(new RectangleDestination(bot, new MiniMapTileDestination(bot, position).getBoundingBox())); } FYI the bounding box will return null and you will receive a NPE if you try to use this to walk to a tile not on the current minimap. Edited June 8, 2014 by Swizzbeat