-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhide_update_pixls.py
More file actions
39 lines (30 loc) · 1.02 KB
/
hide_update_pixls.py
File metadata and controls
39 lines (30 loc) · 1.02 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
from watches import *
from pixl import *
def delete_pixls():
deleting_pixls = []
for i in range(5,12):
deleting_pixls.append(get_watch(f'Pixl slot {i}'))
for pixl in deleting_pixls:
pixl.write(0x0000000)
def write_pixls(slot_number, value):
pixl = get_watch(f'Pixl slot {slot_number}')
pixl.write(0x0010000 + int(value, base=16))
if __name__ == '__main__':
dme.hook()
pixls = [Pixl(0), Pixl(1), Pixl(2), Pixl(3)]
xAddress = get_watch('Coordinate X')
yAddress = get_watch('Coordinate Y')
zAddress = get_watch('Coordinate Z')
while True:
for i, pixl in enumerate(pixls):
x = MemoryWatch.read(xAddress)
y = MemoryWatch.read(yAddress)
z = MemoryWatch.read(zAddress)
pixl.isActive.write(True)
pixl.state.write(PixlState.STAY)
pixl.setPosition(x, y + 10 * i, z)
delete_pixls()
write_pixls(1,'E1')
write_pixls(2,'E1')
write_pixls(3,'E2')
write_pixls(4,'200')