Advertisement
Guest User

MAGIA

a guest
Jan 23rd, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. package magia;
  2. import static java.lang.Thread.sleep;
  3. import java.net.URL;
  4. import java.util.Random;
  5. import org.sikuli.script.*;
  6.  
  7. /**
  8. *
  9. * @author agupo
  10. */
  11. public class Magia {
  12.  
  13. public static void main(String[] args){
  14. Screen s;
  15. ImagePath.add(Magia.class.getClassLoader().getResource("images"));
  16. Random random = new Random();
  17. boolean champList= false;
  18. String champFile="";
  19. if (args.length>0){
  20. champFile = args[0];
  21. champList = true;
  22. }
  23. s = new Screen(0);
  24. s.setAutoWaitTimeout(0.5);
  25.  
  26. while (true){
  27. Lobby.findGame(s);
  28. System.out.println("STARTED GAME");
  29. Misc.sleepR(10,2000);
  30. Champs.carousel(s);
  31. while (s.exists(new Pattern(Magia.class.getClassLoader().getResource("Fase32.png")).similar(0.95))==null){
  32. Items.processOrbs(s);
  33. Items.processItems(s);
  34. Champs.processBuy(s,champList,champFile);
  35. Misc.sleepR(0,400);
  36. }
  37. Lobby.surrenderGame(s);
  38. System.out.println("surrendered");
  39. }
  40.  
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement