Falcon 0 Share Posted February 1, 2023 Okay so my issue is that I am trying to make the script wait until it has logged in since it is trying to get some data about the local player afterwards but it seems to start running way before it has fully loaded, do you guys have any clue what I am doing wrong or have any suggestions? Sleep.sleepTicks(2); Sleep.sleepUntil(() -> Client.getGameState() == GameState.LOGGED_IN && Client.getGameState() != GameState.GAME_LOADING && Client.getGameState() != GameState.LOADING, 1000); log("After sleepUntil"); // This is running a long time before it should. Sleep.sleepTicks(2); Link to comment Share on other sites More sharing options...
Falcon 0 Author Share Posted February 1, 2023 Figured this one out, case closed. Link to comment Share on other sites More sharing options...
Realistic 20 Share Posted February 9, 2023 What was the solution? Link to comment Share on other sites More sharing options...
hashbang 8 Share Posted March 9, 2023 I'd guess the 1 second timeout 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