Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package magia;
- import static java.lang.Thread.sleep;
- import java.net.URL;
- import java.util.Random;
- import org.sikuli.script.*;
- /**
- *
- * @author agupo
- */
- public class Magia {
- public static void main(String[] args){
- Screen s;
- ImagePath.add(Magia.class.getClassLoader().getResource("images"));
- Random random = new Random();
- boolean champList= false;
- String champFile="";
- if (args.length>0){
- champFile = args[0];
- champList = true;
- }
- s = new Screen(0);
- s.setAutoWaitTimeout(0.5);
- while (true){
- Lobby.findGame(s);
- System.out.println("STARTED GAME");
- Misc.sleepR(10,2000);
- Champs.carousel(s);
- while (s.exists(new Pattern(Magia.class.getClassLoader().getResource("Fase32.png")).similar(0.95))==null){
- Items.processOrbs(s);
- Items.processItems(s);
- Champs.processBuy(s,champList,champFile);
- Misc.sleepR(0,400);
- }
- Lobby.surrenderGame(s);
- System.out.println("surrendered");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement