added spawn option to combine overlay

fixed perceiving red bug
This commit is contained in:
2022-10-16 00:53:05 +02:00
parent 3b43135383
commit 19926a7973
3 changed files with 18 additions and 5 deletions

View File

@@ -37,6 +37,8 @@ def run():
else:
break
SPAWN_COUNT = int(overlay.spawn_use.get())
capture_window = WindowCapture(None, "magic", config)
# initialize the StunVision class
@@ -86,11 +88,11 @@ def run():
#cv.waitKey(150)
#continue
spawn_1 = vision_stun.find(screenshot, cv.imread("magic/spawn_1.jpg", cv.IMREAD_UNCHANGED), 0.25, 1)
spawn_1 = vision_stun.find(screenshot, cv.imread("magic/spawn_1.jpg", cv.IMREAD_UNCHANGED), 0.4, 1)
if len(spawn_1) == 1:
spawn_button_active = True
points = vision_stun.get_click_points(spawn_1)
for i in range(0, 100, 1):
for i in range(0, SPAWN_COUNT, 1):
pydirectinput.moveTo(points[0][0], points[0][1])
pydirectinput.mouseDown()
w = random.randint(1, 50)