redeye Posted September 14, 2014 Posted September 14, 2014 Hey, Anyone had the problem that map.walk(area) which is nearby (1/2 tiles away) doesnt walk to there? Even localWalker.walk(position) doesnt work Hope someone can help me, thanks in regard. Redeye
Extreme Scripts Posted September 14, 2014 Posted September 14, 2014 1/2 a tile away? Not quite sure what you mean could you provide a GIF? I know there is an issue with the interactions at a certain camera angle but other than that it's the first I hear of this.
Swizzbeat Posted September 14, 2014 Posted September 14, 2014 Create a MiniMapTileDestination and click it.
Extreme Scripts Posted September 14, 2014 Posted September 14, 2014 Create a MiniMapTileDestination and click it. It would seem impractical/bot-like to interact with the Minimap if the tile is 1/2 tiles away?
Swizzbeat Posted September 14, 2014 Posted September 14, 2014 It would seem impractical/bot-like to interact with the Minimap if the tile is 1/2 tiles away? I guarantee whatever algorithm is analyzing whatever data is received about your character is not going to flag you as a bot because you clicked the minimap for that. 1
redeye Posted September 14, 2014 Author Posted September 14, 2014 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
Extreme Scripts Posted September 14, 2014 Posted September 14, 2014 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.
Joseph Posted September 14, 2014 Posted September 14, 2014 probably related to this: 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)); }
redeye Posted September 14, 2014 Author Posted September 14, 2014 Thanks swizzbeat, solved it with: Position p = new Position(x1WS,y1WS,0); mouse.click(new MiniMapTileDestination(bot, p));
Swizzbeat Posted September 14, 2014 Posted September 14, 2014 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.
redeye Posted September 14, 2014 Author Posted September 14, 2014 i see.. how many tiles are visible from middle to say east on the minimap?
Swizzbeat Posted September 14, 2014 Posted September 14, 2014 i see.. how many tiles are visible from middle to say east on the minimap? I personally check for a distance of 14 just to be on the safe side, however I think it's like 16 or so.
FrostBug Posted September 15, 2014 Posted September 15, 2014 (edited) 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 September 15, 2014 by FrostBug 1
Soldtodie Posted September 15, 2014 Posted September 15, 2014 I personally check for a distance of 14 just to be on the safe side, however I think it's like 16 or so. Yeah, because sometimes with 16 it will click on the toggle run orb. 1