ulamog 0 Posted November 27, 2016 Is there a detector to see if i'm fully loaded into the world after hopping? Because now, after hopping and checking my inventory, it doesn't find any coins and wants to bank. (even if i have coins in my inventory) A standard sleep; would also not be good enough because it may slow down faster loaders. Thanks
DefCon 121 Posted November 27, 2016 i believe the method you want is the getGameState() method in the Client class. something like : getClient().getGameState().equals(GameState.LOGGED_IN)
ulamog 0 Author Posted November 28, 2016 i believe the method you want is the getGameState() method in the Client class. something like : getClient().getGameState().equals(GameState.LOGGED_IN) Didn't work :/ It just detects if you're past the log-in screen. fixed it with: if(!getTabs().isOpen(Tab.INVENTORY)){ log("Inventory tab not open"); getTabs().open(Tab.INVENTORY); sleepUntil(() -> (getTabs().isOpen(Tab.INVENTORY)), 16000); } sleepUntil(() -> (shopArea.contains(getPlayers().localPlayer())), 16000);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.