def main(): thread = Thread(target=bot.hook, args=(auto_click, )) thread.start() bot.wait(1, 1) # random upstart #press next level every thread = Thread(target=bot.perform, args=(next_level, )) thread.start() bot.wait(1, 1) # random upstart #upgrade max levels thread = Thread(target=bot.perform, args=(upgrade_all, )) thread.start() bot.wait(1, 1) # random upstart #add thread = Thread(target=bot.perform, args=(remove_add, )) thread.start() #functions thread = Thread(target=bot.perform, args=(activate_functions, )) thread.start() bot.wait(100, 1) # random upstart
def upgrade_all(delay): print(str(datetime.datetime.now()) + " upgrade") # choose correct tab pyautogui.click(scale_point(927, 638)) bot.wait(1, 0) # click upgrade gear pyautogui.click(scale_point(1235, 691)) bot.wait(1, 1) # click accept pyautogui.click(scale_point(500, 500)) bot.wait(1, 1) # click upgrade levels pyautogui.click(scale_point(1235, 839)) bot.wait(1, 1) # accept pyautogui.click(scale_point(500, 500)) # place mouse in middle of screen pyautogui.moveTo(scale_point(680, 450), duration=0.25) bot.wait(40 + delay, 3 + delay)
def auto_click(): print(str(datetime.datetime.now()) + " activate auto click") bot.wait(1) while not keyboard.is_pressed('ctrl+k'): bot.wait(0.1, 0.1) pyautogui.click() print(str(datetime.datetime.now()) + " deactivate auto click") bot.wait(1)
def main(): while bot.bot_running: angle = 0 pressed = False if (keyboard.is_pressed('ctrl')): radius = 200 else: radius = 150 if (keyboard.is_pressed('left')): pressed = True angle = math.pi if (keyboard.is_pressed('up')): pressed = True angle = (math.pi * 3) / 2 if (keyboard.is_pressed('down')): angle = math.pi / 2 pressed = True if (keyboard.is_pressed('right')): angle = 0 pressed = True if (keyboard.is_pressed('down') and keyboard.is_pressed('left')): angle = math.pi * 3 / 4 if (keyboard.is_pressed('down') and keyboard.is_pressed('right')): angle = math.pi / 4 if (keyboard.is_pressed('up') and keyboard.is_pressed('left')): angle = math.pi * 5 / 4 if (keyboard.is_pressed('up') and keyboard.is_pressed('right')): angle = math.pi * 7 / 4 #click if pressed: pyautogui.click(charpos_x + (radius * math.cos(angle)), charpos_y + (radius * math.sin(angle))) bot.wait(0.01, 0.1)
def remove_add(delay): print(str(datetime.datetime.now()) + " remove add") bot.wait(1, 1) pyautogui.click(scale_point(949, 113)) bot.wait(1000 + delay, 10 + delay)
def activate_functions(delay): bot.wait(1, 1) print(str(datetime.datetime.now()) + " activate functions") pyautogui.click(scale_point(450, 624)) bot.wait(1, 1) pyautogui.click(scale_point(510, 625)) bot.wait(1, 1) pyautogui.click(scale_point(560, 625)) bot.wait(1, 1) pyautogui.click(scale_point(610, 625)) bot.wait(1, 1) pyautogui.click(scale_point(660, 625)) bot.wait(1, 1) pyautogui.click(scale_point(710, 625)) bot.wait(1, 1) pyautogui.click(scale_point(760, 625)) bot.wait(1, 1) pyautogui.click(scale_point(810, 625)) pyautogui.moveTo(scale_point(680, 450), duration=0.25) bot.wait(300 + delay, 30 + delay)
def next_level(delay): print(str(datetime.datetime.now()) + " next level " + str(delay)) pyautogui.press('right') bot.wait(30 + delay, 3 + delay)
def missions(delay): bot.wait(1, 1) print(str(datetime.datetime.now()) + " fix missions") pyautogui.click(scale_point(1069, 636)) # tab bot.wait(1, 1) pyautogui.click(scale_point(179, 763)) # open bot.wait(1, 1) #fix auto pop for k in range(10): pyautogui.click(scale_point(694, 500)) # open bot.wait(3, 1) pyautogui.click(scale_point(694, 519)) # open bot.wait(2, 1) for i in range(10): pyautogui.click(scale_point(185, 165)) #mission bot.wait(1, 1) for j in range(10): pyautogui.click(scale_point(125, 736)) #character bot.wait(1, 1) pyautogui.click(scale_point(1082, 592)) # start bot.wait(1, 1) pyautogui.click(scale_point(538, 532)) # accept bot.wait(1, 1) pyautogui.click(scale_point(694, 519)) # open pyautogui.click(scale_point(1182, 85)) # close bot.wait(1, 1) pyautogui.moveTo(scale_point(680, 450), duration=0.25) bot.wait(600 + delay, 30 + delay)