Jump to content

Walking path not working ...


Mocro

Recommended Posts

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

Link to comment
Share on other sites

 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)
Link to comment
Share on other sites

 

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

 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
Link to comment
Share on other sites

@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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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