Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- import time
- import decimal
- import random
- import pytesseract
- import pyautogui
- rand_number = rand_number = float(decimal.Decimal(random.randrange(10, 75))/100)
- pyautogui.moveTo(1280, 720)
- pyautogui.click()
- while True:
- pyautogui.keyDown('w')
- time.sleep(rand_number)
- pyautogui.keyUp('w')
- pyautogui.keyDown('s')
- time.sleep(rand_number)
- pyautogui.keyUp('s')
- time.sleep(rand_number)
- pyautogui.keyDown('w')
- time.sleep(rand_number)
- pyautogui.keyUp('w')
- pyautogui.keyDown('s')
- time.sleep(rand_number)
- pyautogui.keyUp('s')
- time.sleep(rand_number)
- pyautogui.keyDown('w')
- time.sleep(rand_number)
- pyautogui.keyUp('w')
- pyautogui.keyDown('s')
- time.sleep(rand_number)
- pyautogui.keyUp('s')
- pyautogui.screenshot(r'started.png', region=(385,1283,75,15))
- startedtext = pytesseract.image_to_string(Image.open('started.png'))
- print(startedtext)
- if 'Eame Started' or 'Tum' in startedtext:
- print ('Battle started')
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss1.png', region=(352,140,29,17))
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- pokename = pytesseract.image_to_string(Image.open('ss1.png'))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print('pokename', pokename)
- if 'Glhle' in pokename:
- print('OHHHH SHIIIIT!!! OKAY, THIS IS EPIC.')
- pyautogui.moveTo(1272, 1220) #hynosis coord
- time.sleep(rand_number)
- pyautogui.click()
- pyautogui.moveTo(1396, 1225) #hynosis coord
- time.sleep(rand_number)
- pyautogui.click()
- time.sleep(1.0)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print(hypnosis)
- time.sleep(1.0)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print(hypnosis)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- time.sleep(1.0)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print(hypnosis)
- time.sleep(1.0)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print(hypnosis)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- time.sleep(1.0)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print(hypnosis)
- time.sleep(1.0)
- pyautogui.screenshot(r'C:\Users\crimp\AppData\Local\Programs\Python\Python36-32\ss2.png', region=(969,204,250,20))
- hypnosis = pytesseract.image_to_string(Image.open('ss2.png'))
- print(hypnosis)
- if "Emla IS fast aslaa '" or "Emla IS fast asleep," in hypnosis:
- time.sleep(rand_number)
- pyautogui.moveTo(1276, 1293) #item
- time.sleep(rand_number)
- pyautogui.click()
- time.sleep(rand_number)
- pyautogui.moveTo(1178, 571)
- pyautogui.click()
- time.sleep(rand_number)
- pyautogui.moveTo(1360, 610)
- pyautogui.click()
- #else:
- # pyautogui.moveTo(1272, 1220) #hynosis coord
- #time.sleep(rand_number)
- # pyautogui.moveTo(1239, 1225) #hynosis coord
- else:
- time.sleep(1)
- print('womp womp ' + pokename + hypnosis)
- pyautogui.moveTo(1445, 1279)
- pyautogui.click()
- else:
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement