ReturnToMonke 0 Share Posted January 4, 2021 (edited) Before recently my walk method was working just fine, and could go long distances, but now it just returns false sometimes. I've tried everything i can to debug like adding log statements and changing the method, but nothing seems to work. Here's my method. (To be clear getWalking().walk() is returning false) public void walkTo(Area area) { if (getWalking().shouldWalk()) { if (getWalking().walk(area.getRandomTile())) { log("walking"); } } } Edited January 4, 2021 by ReturnToMonke Link to comment Share on other sites More sharing options...
Neffarion 469 Share Posted January 4, 2021 7 hours ago, ReturnToMonke said: Before recently my walk method was working just fine, and could go long distances, but now it just returns false sometimes. I've tried everything i can to debug like adding log statements and changing the method, but nothing seems to work. Here's my method public void walkTo(Area area) { if (getWalking().shouldWalk()) { if (getWalking().walk(area.getRandomTile())) { log("walking"); } } } what area are you entering into the method when it can go false? Link to comment Share on other sites More sharing options...
ReturnToMonke 0 Author Share Posted January 4, 2021 (edited) 2 hours ago, Neffarion said: what area are you entering into the method when it can go false? I had a log statement at the beginning of the method, and that would print every time, so it's only "getWalking().walk()" that's returning false, as the log statement here doesnt print. I just have it walk from the grand exchange to varrock mines, or to cows. Edited January 4, 2021 by ReturnToMonke 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