def sand2(): username = "******" password = get_pwd(username) loop = 0 while (1): loop += 1 print("loop: ", loop) if loop % 7 == 0: logback(random.randint(60, 300)) if loop % 22 == 0: logback(random.randint(600, 1800)) AG() x = 0 while (x < 10): GI() IH() HG() x += 1 GE() EF() F_reset() FE() EA() AB() x = 0 while (x < 12): BC() CB() x += 1 BA()
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 main(): #set_user username = "******" password = get_pwd(username) pyautogui.FAILSAFE = True if (len(sys.argv) > 1): script = sys.argv[1] else: script = "test" if script == "test": print("running test: ") test() elif script == "login": print("logging in: ") login() elif script == "pos": print("logging position: ") pos() elif script == "mine": print("running mine: ") mine() elif script == "alch": print("running alch: ") alch() elif script == "fruit": print("stealing fruit: ") fruit() elif script == "sandc": print("sandcrabbing") sand.sand() elif script == "sand2": print("sandcrabbing2") sand.sand2()
def sand(): username = "******" password = get_pwd(username) #start on starfish, south of farming patch (A) #time needed for a kill #ACTIVE ROCK SPOTS: # B, C, G, H, I AB() loop = 0 print("loop#: ", loop) while (1): BC() CB() loop += 1 if loop == 0: BFB() if loop % 1 == 0 or loop == 0: BF() F_reset() FE() EG() GHkills = 0 while (GHkills < 20): GI() GHkills += 1 IH() GHkills += 1 HG() GHkills += 1 GA() AB() if loop % 50 == 0: if loop % 250 == 0: logback(random.randint(1800, 3600)) else: logback(random.randint(300, 1200))