Jump to content

Walking path not working ...


Recommended Posts

Posted

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);

Posted
 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)
Posted

 

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?

Posted

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?

Posted (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 by Woody
Posted

@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 :o

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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