f4i13rr0r 1 Share Posted July 6, 2023 Best walker you every had old school sense in "Walker" Donate me if you get rich ;p Spoiler Area Bank$ = new Area( new Tile(3185, 3434, 0), new Tile(3182, 3434, 0), new Tile(3182, 3445, 0), new Tile(3185, 3445, 0)); if (!Bank$.contains(Players.getLocal())) { if(Walking.isRunEnabled()) { do { Walking.walk(Bank$.getRandomTile()); if (!Walking.isRunEnabled()) { Logger.log("P4th"); P4th(); } sleep(1999,5555); } while (!Bank$.contains(Players.getLocal())); Logger.log("B4nk"); B4nk(); } else { do { Walking.walk(Bank$.getRandomTile()); if (Walking.isRunEnabled()) { Logger.log("P4th"); P4th(); } sleep(7777,11111); } while (!Bank$.contains(Players.getLocal())); Logger.log("B4nk"); B4nk(); } } Checks if run in enabled, if not goes to walking, if run gets enabled then switch's back to running. Link to comment Share on other sites More sharing options...
camelCase 231 Share Posted July 7, 2023 cool now log out mid walk loop Link to comment Share on other sites More sharing options...
Diggington 18 Share Posted July 8, 2023 You should try and avoid while loops in your code. As cC said you're not able to take any other actions during the loop Also the API will automatically toggle run Also wtf are those method names Link to comment Share on other sites More sharing options...
bl0t_0 0 Share Posted October 15, 2023 Ok so I don't know what log out during mid walking means lol. This doesn't toggle run, it just checks to see if run is toggled, and if so drop in a loop for as long as run is toggled, once run energy is out it then calls itself aka P4th();, which thens switch's to a walking loop, it was the best I could come up with. I'll get a video of what it does soon, I ended up having to reinstall everything lol. I was using proton mail for my account I think I can still get into it not for sure lol. Link to comment Share on other sites More sharing options...
wr80 12 Share Posted December 12, 2023 On 10/14/2023 at 8:32 PM, bl0t_0 said: Ok so I don't know what log out during mid walking means lol. This doesn't toggle run, it just checks to see if run is toggled, and if so drop in a loop for as long as run is toggled, once run energy is out it then calls itself aka P4th();, which thens switch's to a walking loop, it was the best I could come up with. I'll get a video of what it does soon, I ended up having to reinstall everything lol. I was using proton mail for my account I think I can still get into it not for sure lol. They're saying if you use a while loop you're stuck in there.. generally you want to avoid that. Instead of that you can do an if check to see if you need to walk or not. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now