f4i13rr0r 1 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.
Diggington 20 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 yusipytle 1
bl0t_0 0 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.
wr80 16 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.
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