ulamog 0 Share 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 Link to comment Share on other sites More sharing options...
DefCon 121 Share 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) Link to comment Share on other sites More sharing options...
ulamog 0 Author Share 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); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.