VladBots Posted June 5, 2017 Share Posted June 5, 2017 1. OSBot Version (do NOT put "current version", be specific): 2.4.127 2. A description of the issue. Include relevant logs.: Calling getWalking().walk(); on a position that one tile around the player's position (including diagonally) doesn't do anything. I tried it in multiple places. In the image below, every time the tile is logged it is also attempting to walk there (one south). 3. Are you receiving any errors in the client canvas or the logger?: No. 4. How can you replicate the issue?: Try walking one tile away. 5. Has this issue persisted through multiple versions? If so, how far back?: I've only used 2.4.127, so not sure. Link to comment Share on other sites More sharing options...
Alek Posted June 5, 2017 Share Posted June 5, 2017 You need to be able to walk on the destination tile. If there is an object there that you can't walk on, then the even will fail. This is why you cannot use something like myPlayer.getArea(1) or area.getrandomposition Link to comment Share on other sites More sharing options...
VladBots Posted June 5, 2017 Author Share Posted June 5, 2017 2 minutes ago, Alek said: You need to be able to walk on the destination tile. If there is an object there that you can't walk on, then the even will fail. This is why you cannot use something like myPlayer.getArea(1) or area.getrandomposition You're able to walk on that tile though. Link to comment Share on other sites More sharing options...
Explv Posted June 5, 2017 Share Posted June 5, 2017 (edited) 18 minutes ago, VladBots said: Calling getWalking().walk(); on a position that one tile around the player's position (including diagonally) doesn't do anything. I tried it in multiple places. In the image below, every time the tile is logged it is also attempting to walk there (one south). If you want to walk a single tile away you need to create a custom WalkingEvent and set the min distance threshold to 0: WalkingEvent walkingEvent = new WalkingEvent(position); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent); By default (using getWalking().walk()) it won't walk unless the destination tile is >= 3 tiles away: Edited June 5, 2017 by Explv 1 Link to comment Share on other sites More sharing options...
whipz Posted June 5, 2017 Share Posted June 5, 2017 Position tile = New Position(xxxx, yyyy, z); tile.interact(bot, "Walk here"); Link to comment Share on other sites More sharing options...
VladBots Posted June 5, 2017 Author Share Posted June 5, 2017 4 minutes ago, Explv said: If you want to walk a single tile away you need to create a custom WalkingEvent and set the min distance threshold to 0: WalkingEvent walkingEvent = new WalkingEvent(position); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent); By default (using getWalking().walk()) it won't walk unless the destination tile is >= 3 tiles away: I see. I don't understand why they wouldn't make 0 the default though. If you don't have that knowledge it just looks broken. 3 minutes ago, whipz said: Position tile = New Position(xxxx, yyyy, z); tile.interact(bot, "Walk here"); Already made my own "hack", but thanks! Link to comment Share on other sites More sharing options...
Explv Posted June 5, 2017 Share Posted June 5, 2017 Just now, VladBots said: I see. I don't understand why they wouldn't make 0 the default though. If you don't have that knowledge it just looks broken. I guess it is to add an element of randomness. Link to comment Share on other sites More sharing options...