ReturnToMonke 0 Share Posted January 4, 2021 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"); } } } Link to comment Share on other sites More sharing options...
Neffarion 486 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 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.