TutIslander Posted September 20, 2018 Share Posted September 20, 2018 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 Quote Link to comment Share on other sites More sharing options...
Spider Scripts Posted September 20, 2018 Share Posted September 20, 2018 (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 September 20, 2018 by Spider Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 20, 2018 Share Posted September 20, 2018 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 } Quote Link to comment Share on other sites More sharing options...
TutIslander Posted September 20, 2018 Author Share Posted September 20, 2018 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 Quote Link to comment Share on other sites More sharing options...