Jump to content

Can anyone help me?


TutIslander

Recommended Posts

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

Link to comment
Share on other sites

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

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
}

 

Link to comment
Share on other sites

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

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