-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuff.py
More file actions
84 lines (69 loc) · 2.31 KB
/
Copy pathbuff.py
File metadata and controls
84 lines (69 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
from time import sleep
import pyautogui as auto
import keyboard as key
parar = True
continuar = False
while (parar == True):
vidaFull = auto.locateOnScreen("medico/vidaFull.png", region = (684, 359, 62, 5))
if(vidaFull == None):
vida2 = auto.locateOnScreen("medico/vida2.png", region = (684, 359, 62, 5), confidence = 0.9)
vida1 = auto.locateOnScreen("medico/vida1.png", region = (684, 359, 62, 5), confidence = 0.9)
if(vida2):
auto.keyDown('f1')
auto.keyUp('f1')
auto.keyDown('q')
auto.keyUp('q')
if(vida1):
auto.keyDown('q')
auto.keyUp('q')
manaFull = auto.locateOnScreen("medico/manaFull.png", region=(684, 365, 62, 5))
if(manaFull == None):
mana = auto.locateOnScreen("medico/vida2.png", region=(684, 365, 62, 5), confidence = 0.9)
if(mana):
auto.keyDown('f3')
auto.keyUp('f3')
#vida = auto.screenshot("medico/vidaTela.png",region=(684, 359, 62, 5))
#mana = auto.screenshot("medico/manaTela.png",region=(684, 365, 62, 5))
if(continuar == True):
velocidade = auto.locateCenterOnScreen('buffs/velocidade.png', confidence = 0.9)
ira = auto.locateCenterOnScreen('buffs/ira.png', confidence = 0.9)
vampirismo = auto.locateCenterOnScreen('buffs/vampirismo.png', confidence = 0.9)
if(ira == None):
auto.keyDown('f5')
auto.keyUp('f5')
if(vampirismo == None):
auto.keyDown('f6')
auto.keyUp('f6')
if(velocidade == None):
auto.keyDown('v')
auto.keyUp('v')
if(key.is_pressed('+')):
continuar = True
print('continuou')
if(key.is_pressed('-')):
continuar = False
print('parou')
'''
if(key.is_pressed('f9')):
auto.keyDown(',')
auto.keyUp(',')
auto.keyDown('.')
auto.keyUp('.')
auto.keyDown(';')
auto.keyUp(';')
auto.keyDown('/')
auto.keyUp('/')
auto.keyDown(']')
auto.keyUp(']')
if(key.is_pressed('f10')):
auto.keyDown('[')
auto.keyUp('[')
auto.keyDown(']')
auto.keyUp(']')
auto.keyDown('´')
auto.keyUp('´')
auto.keyDown('~')
auto.keyUp('~')
auto.keyDown('/')
auto.keyUp(';')
'''