Untitled
unknown
python
2 years ago
1.8 kB
7
Indexable
import pyautogui import time import random SPELL="adori gran flam" #SPELL="adevo mas hur" def eatFood(): #Ustawia kursor w miejscu gdzie powinien byc food i klika w niego #Ja swoj food ustawiam w miesjcu strzal pyautogui.moveTo(1630,140) for i in range(0,10): pyautogui.click(button='right') def castSpell(spell): #count=random.randint(6,9) count=9 for i in range(0,count): pyautogui.typewrite(spell) time.sleep(1) pyautogui.press('enter') def castFood(): for i in range(0,11): pyautogui.typewrite('exevo pan') time.sleep(1) pyautogui.press('enter') def castHeal(): spell = random.choice(["exura vita", "utani gran hur"]) if spell == "exura vita": count = 8 for i in range(0,count): pyautogui.typewrite(spell) time.sleep(1) pyautogui.press('enter') time.sleep(1) pyautogui.typewrite("utani gran hur") pyautogui.press('enter') else: count=11 for i in range(0,count): pyautogui.typewrite(spell) time.sleep(1) pyautogui.press('enter') def moveObjectToBag(x,y): pyautogui.moveTo(x,y) pyautogui.mouseDown(button='left') pyautogui.moveTo(1750,650) pyautogui.mouseUp(button='left') def findFragments(): try: x, y= pyautogui.locateCenterOnScreen("fire.PNG") return x,y except TypeError: print("Fire fragment not found") return False time.sleep(5) while(True): eatFood() sellp=1000 time.sleep(sellp) castSpell(SPELL) time.sleep(5) castHeal() time.sleep(4)
Editor is loading...