So I wrote this code to make a webwalk that could be used for Webwalk and drink stamina potion, turn on prayers , alch, eating. Im wondering if there is a better way to doing threading becuase I hate having a while loop with a thread sleep .
My code.
(x, y, z) -> {
PathPreferenceProfile profile = PathPreferenceProfile.DEFAULT;
int run = 20;
boolean cameraMove = true;
Procedure threadTask = null;
WebWa