import argparse import os.path from loa import * script_dir = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser(description='Automatically join world boss.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, extra details will be added to log file. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('worldboss', loglevel) # Resources. icon_corner_image = Image.open(os.path.join(script_dir, "misc/IconCorner.png")) daily_tasks_image = Image.open(os.path.join(script_dir, "misc/DailyTasks.png")) join_image = Image.open(os.path.join(script_dir, "misc/Join.png")) morale_image = Image.open(os.path.join(script_dir, "misc/Morale.png")) morale_inactive_image = Image.open(os.path.join(script_dir, "misc/MoraleInactive.png")) game = LeagueOfAngels() # Return to the home screen. game.goto_homepage()
action='store_true', help=""" Try and learn new cards while playing. """) parser.add_argument('--debug', action='store_true', help=""" Send debug output to console. It is always sent to log file, so this is rarely recommended. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('tarot', loglevel) tarot = TarotCards(learn=args.learn) #tarot.compare_cards() #sys.exit(0) tarot.orient() if args.guessflips: tarot.parse_flips() print("Guessed {0} flips left.".format(tarot.flips_left)) sys.exit(0) buyflips = args.buyflips
script_dir = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser( description='Automatically join world boss.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, extra details will be added to log file. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('worldboss', loglevel) # Resources. icon_corner_image = Image.open(os.path.join(script_dir, "misc/IconCorner.png")) daily_tasks_image = Image.open(os.path.join(script_dir, "misc/DailyTasks.png")) join_image = Image.open(os.path.join(script_dir, "misc/Join.png")) morale_image = Image.open(os.path.join(script_dir, "misc/Morale.png")) morale_inactive_image = Image.open( os.path.join(script_dir, "misc/MoraleInactive.png")) game = LeagueOfAngels() # Return to the home screen. game.goto_homepage() screenshot = game.capture_screenshot()
script_dir = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser( description='Click Ready whenever it appears.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, extra details will be added to log file. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('ready', loglevel) game = LeagueOfAngels() ready_button = Image.open(script_dir + '/misc/Ready.png') while True: logging.log(VERBOSE, "Searching for Ready button...") # Move the mouse out of the way. mousex, mousey = game.mouse_get(xorient=Orient.Right) game.mouse_move(91, 378, xorient=Orient.Right) time.sleep(0.100) ready_pos = game.image_find(ready_button, 132, 435,
import os.path from loa import * script_dir = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser(description='Click Ready whenever it appears.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, extra details will be added to log file. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('ready', loglevel) game = LeagueOfAngels() ready_button = Image.open(script_dir + '/misc/Ready.png') while True: logging.log(VERBOSE, "Searching for Ready button...") # Move the mouse out of the way. mousex, mousey = game.mouse_get(xorient=Orient.Right) game.mouse_move(91, 378, xorient=Orient.Right) time.sleep(0.100) ready_pos = game.image_find(ready_button, 132, 435, xorient=Orient.Right, radius=1,
""") parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, a gemology.log file will be output with details on the tested moves. """) parser.add_argument('--simulate', action='store_true', help=""" Enable simulation mode. Script will create a new random board and simulate best moves and results. """) parser.add_argument('--calibrate', action='store_true', help=""" Enable calibration mode. Given a mouse position, outputs color grid. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('dragonsoul', loglevel) if args.debug: logging.info("Enabling debug mode.") Grid.debug = True if args.fast0: Grid.fast0 = True # Broken by the current multiprocessing. #Grid.GridItemTypes = [ # Element('Wind', Color(109, 159, 46, 0), args.wind), # Element('Electro', Color(165, 119, 230, 0), args.electro), # Element('Ice', Color(61, 174, 210, 0), args.ice), # Element('Fire', Color(222, 158, 24, 0), args.fire), # Element('Random', Color(118, 81, 51, 0), args.random)
parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, a gemology.log file will be output with details on the tested moves. """) parser.add_argument('--simulate', action='store_true', help=""" Enable simulation mode. Script will create a new random board and simulate best moves and results. """) parser.add_argument('--calibrate', action='store_true', help=""" Enable calibration mode. Given a mouse position, outputs color grid. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('gemology', loglevel) if args.debug: logging.info("Enabling debug mode.") Grid.debug = True if args.fast0: Grid.fast0 = True if args.calibrate: board = Board(calibrate=True) if args.simulate: board = Board(0, 0, [[None]*5]*5, depth=args.depth, processes=args.processes) if args.energy < 1: board.simulate_play(args.depth)
parser.add_argument('attempts', type=int, help=""" How many upgrade attempts to do. """) parser.add_argument('--favor', help="List of rows to favor and the order to favor them in, separated by ,") parser.add_argument('--favorthreshold', type=int, default=0, help="Net amount required before favoring.") parser.add_argument('--ignore1', action='store_true', help="Ignore row 1.") parser.add_argument('--ignore2', action='store_true', help="Ignore row 2.") parser.add_argument('--ignore3', action='store_true', help="Ignore row 3.") parser.add_argument('--debug', action='store_true', help="Output in depth information to the log file.") args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('element', loglevel) favor = [] if args.favor: for f in args.favor.split(','): favor.append(int(f)) upgrade_offset = (146, 225) upgrade_image = Image.open('element/Upgrade.png') game_window = get_game_window() game_center = (int((game_window[2] - game_window[0]) / 2) + game_window[0], int((game_window[3] - game_window[1]) / 2) + game_window[1])
parser = argparse.ArgumentParser(description='Click for gauntlet. Works for top left only, start 5 seconds before first target', formatter_class=argparse.ArgumentDefaultsHelpFormatter) group = parser.add_mutually_exclusive_group(required=True) group.add_argument('--first', '-f', action='store_true', help="Going first this round.") group.add_argument('--second', '-s', dest='first', action='store_false', help="Going second this round.") parser.add_argument('--rounds', '-r', type=int, default=15, help="Number of rounds left.") parser.add_argument('--debug', action='store_true', help=""" Enable debug mode, extra details will be added to log file. """) args = parser.parse_args() loglevel = VERBOSE if args.debug: loglevel = logging.DEBUG logconfig('gauntlet', loglevel) # Resources. def handle_win_f4(): sys.exit(0) class Gauntlet: def __init__(self, game=None): if game is None: self.game = LeagueOfAngels() else: self.game = game self.morale_image = Image.open(os.path.join(script_dir, "misc/Morale.png"))