Jump to content

Can anyone help me?


Recommended Posts

Posted

So, I'm getting into coding & I'm just putting this here in case anyone fancies giving me the help so I can crack on when I get in from work :)

 

Basically I'm having trouble figuring out the walking API, I've looked it up but all the code I seem to implement gives me problems, could anyone give me the simple onStart walk x y code please? & maybe if he walks out of position he walks back too the place also depends if you can be bothered, either helps.

 

Also I know this will be everywhere so you can just link me to a tutorial if its easier but if you could explain it that would be great :), could you give me a little bit info on the Paint side of things so even just how to display on the screen something like "Time Ran and Levels Gained"

 

Like I said I'm just starting out and I'm not being lazy(Maybe a little bit), its just I work long hours and this will cut out a little bit of research time for me.

 

Thank you in advance to whomever decides too help :)

Posted (edited)

https://osbot.org/forum/topic/115124-explvs-scripting-101/ is gold 

https://osbot.org/forum/topic/111003-basic-walking-webwalking-tutorial-a-simple-concept/ (specific to walking)

https://osbot.org/forum/topic/87697-explvs-dank-paint-tutorial/ (specific to paint) 

To walk to a close area you can use entity hover debug to get the coordinates of a the tile.
setting->options-> check the entity hover debug checkbox
pick a tile that's atleast 3 tiles away from the tile you are on. 
then just hover of the tile you want to get it's Position coordinates.
let's assume the tile you hovered over gives you coordinates 3089,3502,0 
then you'll just do 

public void onStart() throws InterruptedException {
       getWalking().walk(new Position(3089,3502,0)); 
        }

to walk to an area that is far away, you might want to use web walk like this

public void onStart() throws InterruptedException {
         getWalking().webWalk(Banks.EDGEVILLE);
        }

I can explain more but i really see no point as the guides I've linked to do a much better job at explaining :)

Edited by Spider
Posted
10 hours ago, Ragnar Lothbrok said:

Your question is pretty vague however here's a snippet that will web walk to a Lumbridge Upper Bank if you're not currently there.


if (!Banks.LUMBRIDGE_UPPER.contains(myPosition())) {
    getWalking().webWalk(Banks.LUMBRIDGE_UPPER);
} else {
    // We are at Lumbridge Upper Bank
    // Do our tasks
}

 

 

10 hours ago, Spider said:

https://osbot.org/forum/topic/115124-explvs-scripting-101/ is gold 

https://osbot.org/forum/topic/111003-basic-walking-webwalking-tutorial-a-simple-concept/ (specific to walking)

https://osbot.org/forum/topic/87697-explvs-dank-paint-tutorial/ (specific to paint) 

To walk to a close area you can use entity hover debug to get the coordinates of a the tile.
setting->options-> check the entity hover debug checkbox
pick a tile that's atleast 3 tiles away from the tile you are on. 
then just hover of the tile you want to get it's Position coordinates.
let's assume the tile you hovered over gives you coordinates 3089,3502,0 
then you'll just do 


public void onStart() throws InterruptedException {
       getWalking().walk(new Position(3089,3502,0)); 
        }

to walk to an area that is far away, you might want to use web walk like this


public void onStart() throws InterruptedException {
         getWalking().webWalk(Banks.EDGEVILLE);
        }

I can explain more but i really see no point as the guides I've linked to do a much better job at explaining :)

Appreciate the help, Top guys :D

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...