Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. private int random(int min, int max) {
  2. SecureRandom random = new SecureRandom();
  3. return (random.nextInt(max - min + 1) + min);
  4. }
  5.  
  6. private boolean gameEnded() {
  7. InterfaceComponent gameEnd = Interfaces.getComponent(396, 3);
  8. if (gameEnd != null) {
  9. return gameEnd.getText().contains("returns in:");
  10. }
  11. return false;
  12. }
  13.  
  14. private boolean readyForGame() {
  15. return Inventory.contains("Jug of wine") && Inventory.getCount("Jug of wine") == 10;
  16.  
  17. }
  18.  
  19. private boolean insideThot() {
  20. InterfaceComponent pts = Interfaces.getComponent(396, 7);
  21. if (pts != null) {
  22. return pts.isVisible();
  23. }
  24. return false;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement