return w = Window() i = Inputs() nav = Navigation() feature = Features() Window.x, Window.y = i.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, 400, 600) nav.menu("inventory") u = UpgradeEM(37500, 37500, 2, 2, 3) print(w.x, w.y) tracker = Tracker(5) c = Challenge() while True: # main loop #feature.questing() feature.itopod_snipe(300) tracker.progress() feature.boost_cube() feature.ygg() feature.gold_diggers([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]) #feature.snipe(13, 120) #time.sleep(120) #c.start_challenge(9) #speedrun(3, feature)
from classes.challenge import Challenge import argparse parser = argparse.ArgumentParser() parser.add_argument("-c", "--challenge", required=True, type=int, help="select which challenge you wish to run (1-11)") parser.add_argument("-t", "--times", default=1, type=int, help="number of times to run challenge") args = parser.parse_args() Helper.init(True) Helper.requirements() print(f"Running challenge #{args.challenge} {args.times} times") for x in range(args.times): Challenge.start_challenge(args.challenge) print("Finished doing all challenges") print("Engaging idling loop") while True: # main loop Adventure.itopod_snipe(300) MoneyPit.pit() GoldDiggers.gold_diggers()
parser.add_argument("-c", "--challenge", required=True, type=int, help="select which challenge you wish to run (1-11") parser.add_argument("-t", "--times", required=True, type=int, help="number of times to run challenge") args = parser.parse_args() w = Window() feature = Features() Window.x, Window.y = feature.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, 400, 600) feature.menu("inventory") print(f"Top left found at: {w.x}, {w.y}") c = Challenge() print(f"Running challenge #{args.challenge} {args.times} times") for x in range(args.times): c.start_challenge(args.challenge) while True: # main loop feature.itopod_snipe(300) feature.pit() feature.gold_diggers([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
"""Challenge start script.""" # Helper classes from classes.features import Adventure, GoldDiggers, MoneyPit from classes.helper import Helper from classes.challenge import Challenge import argparse parser = argparse.ArgumentParser( epilog='\n'.join(Challenge.list()), formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument("-c", "--challenge", required=True, type=int, help="select which challenge you wish to run (1-11)") parser.add_argument("-t", "--times", default=1, type=int, help="number of times to run challenge") args = parser.parse_args() Helper.init(True) Helper.requirements() print(f"Running challenge #{args.challenge} {args.times} times") for x in range(args.times): Challenge.start_challenge(args.challenge)
"""Challenge start script.""" # Helper classes from classes.features import Adventure, GoldDiggers, MoneyPit from classes.helper import Helper from classes.challenge import Challenge import argparse parser = argparse.ArgumentParser(epilog='\n'.join(Challenge.list()), formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument("-c", "--challenge", required=True, type=int, help="select which challenge you wish to run (1-11)") parser.add_argument("-t", "--times", default=1, type=int, help="number of times to run challenge") parser.add_argument("-i", "--idle", action='store_true', help="run idle loop after finishing running") args = parser.parse_args() Helper.init(True) Helper.requirements() print(f"Running challenge #{Challenge.list()[args.challenge-1]} {args.times} times") for x in range(args.times): Challenge.start_challenge(args.challenge) print("Finished doing all challenges") if args.idle: print("Engaging idling loop") while True: # main loop Adventure.itopod_snipe(300) MoneyPit.pit() GoldDiggers.gold_diggers() else: print("Exiting")
col = i.get_pixel_color(x, 252) #row 2 = 252, row 3 = 341 print(f"X={x}, color={col}") exit() #321, 341 "FFFFFF" #320, 341 "101010" #319, 341 "A1DDB5" #Helt Vit image = i.get_bitmap() text = i.ocr(326, 141, 499, 159, bmp=image) print(str(text)) exit() ''' c = Challenge() ScriptStart = time.time() runCounter = 0 while True: #feature.NOV_boost_equipment("cube") before = time.time() c.start_challenge(2) duration = time.time() - before # sec runCounter += 1 min = int(duration / 60) sec = int(duration - min * 60) sec = sec if sec > 9 else "0" + str(sec) print(f"The challenge took {min}:{sec} minutes to complete")