Mocro Posted September 27, 2015 Posted September 27, 2015 is there a working snippet for this so anoying it keeps clicking on the ground and then clicks on minimap then runs back again. Position[] walkBack = { new Position(3031 , 3237 , 0), new Position(3015 , 3242 , 0), new Position(3999 , 3239 , 0), new Position(2984 , 3236 , 0), new Position(2970 , 3239 , 0), new Position(2969, 3239 , 0) }; this.localWalker.walkPath(walkBack);
Tom Posted September 27, 2015 Posted September 27, 2015 I think with localwalker, I may not be correct, but you need to make sure the locations are close enough to each other so that no matter the character rotation, the next point can still be clicked on the map.
Flamezzz Posted September 27, 2015 Posted September 27, 2015 new Position(3999 , 3239 , 0), you sure this is correct?
Mocro Posted September 27, 2015 Author Posted September 27, 2015 new Position(3999 , 3239 , 0), you sure this is correct? yes anyway what i did is add louds of cords and its working now... is there a better way to do this because sometimes it clicks on the tile and not on the minimap.... like it needs to stand on that tile before going on to the next position. new Position(2974 , 3238 , 0), new Position(2988 , 3232 , 0), new Position(2993 , 3236 , 0), new Position(3000 , 3239 , 0), new Position(3005 , 3239 , 0), new Position(3013 , 3242 , 0), new Position(3019 , 3242 , 0), new Position(3024 , 3242 , 0), new Position(3034 , 3235 , 0), new Position(3044 , 3235 , 0)
Apaec Posted September 27, 2015 Posted September 27, 2015 yes anyway what i did is add louds of cords and its working now... is there a better way to do this because sometimes it clicks on the tile and not on the minimap.... like it needs to stand on that tile before going on to the next position. new Position(2974 , 3238 , 0), new Position(2988 , 3232 , 0), new Position(2993 , 3236 , 0), new Position(3000 , 3239 , 0), new Position(3005 , 3239 , 0), new Position(3013 , 3242 , 0), new Position(3019 , 3242 , 0), new Position(3024 , 3242 , 0), new Position(3034 , 3235 , 0), new Position(3044 , 3235 , 0) It works perfectly for me. Put the points with a separation of 1 tile apart (use a path recorder to speed this up and avoid mistakes). I see no reason why it wouldn't work well?
Mocro Posted September 27, 2015 Author Posted September 27, 2015 It works perfectly for me. Put the points with a separation of 1 tile apart (use a path recorder to speed this up and avoid mistakes). I see no reason why it wouldn't work well? Lol i got it now look what i did xD new Position(2973 , 3239 , 0), new Position(2978 , 3237 , 0), new Position(2983 , 3235 , 0), new Position(2986 , 3232 , 0), new Position(2986 , 3232 , 0), new Position(2988 , 3232 , 0), new Position(2990 , 3234 , 0), new Position(2992 , 3236 , 0), new Position(2996 , 3238 , 0), new Position(2999 , 3239 , 0), new Position(3005 , 3240 , 0), new Position(3009 , 3240 , 0), new Position(3014 , 3242 , 0), new Position(3017 , 3242 , 0), new Position(3021 , 3242 , 0), new Position(3026 , 3242 , 0), new Position(3028 , 3238 , 0), new Position(3032 , 3236 , 0), new Position(3036 , 3236 , 0), new Position(3040 , 3236 , 0), new Position(3043 , 3236 , 0) There needs to be a better way like wtf... btw i have a question how do you debug on the console of osbot?
Woody Posted September 27, 2015 Posted September 27, 2015 (edited) new Position(3999 , 3239 , 0), you sure this is correct? @Mocro, this was your issue as Flamezzz posted. Look at the big difference in x coordinate. Edit: Use WalkingEvent. If you don't want it to click on the main screen, use WalkingEvent#setMiniMapDistanceTreshold. Incase you don't know how to use it, do some small tests and hopefully you'll get it. Edited September 27, 2015 by Woody
Mocro Posted September 27, 2015 Author Posted September 27, 2015 @Mocro, this was your issue as Flamezzz posted. Look at the big difference in x coordinate. Edit: Use WalkingEvent. If you don't want it to click on the main screen, use WalkingEvent#setMiniMapDistanceTreshold. Incase you don't know how to use it, do some small tests and hopefully you'll get it. Yes its working fine now i just did allot of new coordinates sounds stupid but works perfectly now Btw how can i get my script in OSBot and how can i put message on debug console
Woody Posted September 27, 2015 Posted September 27, 2015 Yes its working fine now i just did allot of new coordinates sounds stupid but works perfectly now Btw how can i get my script in OSBot and how can i put message on debug console There's a section for script upload request. Use log(message) in your script for console debug. 1
Mocro Posted September 27, 2015 Author Posted September 27, 2015 There's a section for script upload request. Use log(message) in your script for console debug. Thanks M8