scriptrune 0 Posted May 4, 2018 getWalking().walk(new Tile(3233, 3218)) This will only perform one click towards the specified tile and then returns true, instead of making the full trip. Shouldn't it walk completely to the destination before it returns true? I've tested this by putting the destination off-screen and running the script. Here is my code, I simply attempt to walk to the destination and then wait 10 seconds. @Override public void onStart() { } @Override public int onLoop() { if (getWalking().walk(new Tile(3233, 3218))) { log("success"); } else { log("failure"); } sleep(10000); return 0; }
scriptrune 0 Author Posted May 5, 2018 6 minutes ago, dQw4w9WgXcQ said: only does 1 action per call Ah thanks, so it's up to me to provide the logic for how often and when it should click again? Not to get off topic, but could you point me in the right direction for how to specify and execute my own defined path? I have been looking around the API and I can't seem to find anything along the lines of: getWalking().walk(path)
Koschei 147 Posted May 5, 2018 56 minutes ago, scriptrune said: Ah thanks, so it's up to me to provide the logic for how often and when it should click again? Not to get off topic, but could you point me in the right direction for how to specify and execute my own defined path? I have been looking around the API and I can't seem to find anything along the lines of: getWalking().walk(path) For your own path you would be using the local path, here are some potentially helpful topics.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.