-
Notifications
You must be signed in to change notification settings - Fork 13
/
Zero.py
executable file
·77 lines (63 loc) · 2.06 KB
/
Zero.py
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
#!/usr/bin/python
"""
Basic botting program for Zero. Works with my keybindings only.
Premise:
A - Giga Crash
S - Flash Cut
D - Rising Slash
Del - Shadow Rain
End - Rhinne's Protection
Ctrl - Health pots
Run while in Beta form standing on a platform with a wall to your right.
This will bump the character against the wall and spam abilties in all
directions. This bot is not smart responsive except for potting when your
HP is low, so make sure you have thousands of health potions. If you get
moved out of position, the bot will continue doing the same thing, so you
need to find a place to stand where mobs do not or can not attack you.
Author: Alvin Lin (alvin.lin.dev@gmail)
"""
from Bot import Bot
from Keys import Keys
import time
def main():
bot = Bot()
time.sleep(1)
iterations_run = 0
while True:
print bot.getDebugText()
bot.checkHealth(Keys.CTRL)
bot.click(Keys.LEFT, 0.1)
bot.click(Keys.D, 0.25)
bot.click(Keys.D, 0.25)
bot.checkHealth(Keys.CTRL)
bot.click(Keys.S, 0.25)
bot.click(Keys.S, 0.25)
bot.checkHealth(Keys.CTRL)
if iterations_run % 2 == 1:
bot.click(Keys.A, 0.25)
bot.click(Keys.A, 0.25)
bot.click(Keys.A, 0.25)
print bot.getDebugText()
bot.checkHealth(Keys.CTRL)
bot.click(Keys.RIGHT, 0.5)
bot.click(Keys.D, 0.25)
bot.click(Keys.D, 0.25)
bot.checkHealth(Keys.CTRL)
bot.click(Keys.S, 0.25)
bot.click(Keys.S, 0.25)
bot.checkHealth(Keys.CTRL)
if iterations_run % 2 == 0:
bot.click(Keys.A, 0.25)
bot.click(Keys.A, 0.25)
bot.click(Keys.A, 0.25)
bot.checkHealth(Keys.CTRL)
# Try to clear mobs every 2 iterations with ultimate ability
if iterations_run % 2 == 0:
bot.click(Keys.DEL, 0.25)
# Buff self every 5 iterations
if iterations_run % 5 == 0:
bot.click(Keys.END, 0.25)
print bot.getDebugText()
iterations_run += 1
if __name__ == "__main__":
main()