def resetCamera(): loc = pyautogui.position() randxy_move(1755, 33, 1760, 43) time.sleep(.18) pyautogui.click() start = time.time() while time.time() - start < 4 + random.randint(1, 10) / 10: pyautogui.keyDown('up') time.sleep(.2) bezier3(loc[0], loc[1])
def F_reset(): print("F Reset") pick = random.randint(1, 100) if pick <= 100: #path 1 randxy_move(1347, 135, 1355, 139) time.sleep(random.random()) pyautogui.click() time.sleep(10) randxy_move(953, 200, 970, 209) time.sleep(random.random()) pyautogui.click() time.sleep(7 + random.random()) randxy_move(1265, 200, 1275, 207) time.sleep(random.random()) pyautogui.click() time.sleep(8.5 + random.random()) randxy_move(67, 785, 85, 795) time.sleep(random.random()) pyautogui.click() time.sleep(12 + random.random()) randxy_move(943, 1000, 945, 1025) time.sleep(random.random()) pyautogui.click() time.sleep(5 + random.random()) pyautogui.click() time.sleep(5 + random.random()) randxy_move(881, 872, 887, 876) time.sleep(random.random()) pyautogui.click() time.sleep(4 + random.random()) else: #path2 bezier3(1007, 102) x = 0 while (x < 3): time.sleep(random.random()) pyautogui.click() time.sleep(8) x += 1 bezier3(893, 1009) x = 0 while (x < 4): time.sleep(random.random()) pyautogui.click() time.sleep(8) x += 1 time.sleep(2 + random.random()) randxy_move(1022, 648, 1030, 655) time.sleep(2 + random.random()) pyautogui.click()
def logback(duration): loc = pyautogui.position() #goto and click door randxy_move(1797, 1010, 1801, 1018) pyautogui.click() time.sleep(.1) pyautogui.click() #goto and click logout randxy_move(1790, 965, 1810, 970) time.sleep(.12) pyautogui.click() time.sleep(10) pyautogui.click() print("logged out") print(time.time()) #wait time.sleep(duration) randxy_move(998, 305, 1023, 311) time.sleep(.124) pyautogui.click() #write pwd username = "******" password = get_pwd(username) timeP = [] for c in password: r = random.randint(5, 30) d = random.randint(1, 3) e = random.randint(1, 6) / 100 timeP.append((r / d) * e / 3) rep = 0 for c in password: time.sleep(timeP[rep]) pyautogui.typewrite(c) rep += 1 pyautogui.typewrite(['enter']) time.sleep(4) randxy_move(964, 344, 1000, 373) time.sleep(.1) pyautogui.click() bezier3(loc[0], loc[1]) print("back online") print(time.time())
def wait(min, max): min = min max = max if min > 1: t = random.random() + random.randint(min, max) else: t = random.random() previous_loc = pyautogui.position() if (t >= 10): randxy_move(3312, 537, 3380, 625) #pyautogui.click() time.sleep(t) randxy_move(1802, 1807, 720, 725) pyautogui.click() bezier3(previous_loc[0], previous_loc[1]) else: time.sleep(t)
def switch(): pos = pyautogui.position() time.sleep(random.random()) bezier3(1737 + random.randint(0, 4), 762 + random.randint(0, 3)) time.sleep(random.random()) pyautogui.click() time.sleep(random.random()) bezier3(1780 + random.randint(0, 4), 762 + random.randint(0, 3)) time.sleep(random.random()) pyautogui.click() time.sleep(random.random()) bezier3(position[0], position[1]) time.sleep(.2)
def dropAll(): inventory = genInventory() #select inventory bezier3(1802 + random.randint(1, 3), 720 + random.randint(1, 3)) time.sleep(1 + random.random() / 5) pyautogui.click() time.sleep(0.5 + random.random() / 5) h = inventory[0] bezier3(h[0], h[1]) time.sleep(1) for spot in inventory: time.sleep(random.randint(1, 25) / 125) bezier3(spot[0], spot[1]) pyautogui.keyDown('shift') pyautogui.click() #time.sleep(random.randint(1,2)/10) pyautogui.keyUp('shift')
def randxy_move(x_min, y_min, x_max, y_max): x = random.randint(x_min, x_max) y = random.randint(y_min, y_max) #print("move to",x,y) return bezier3(x, y)