scripts/infinate_archglacor.py

49 lines
1.1 KiB
Python
Raw Normal View History

2025-06-15 12:07:50 +02:00
from time import sleep
import pynput.mouse as mouse
import pynput.keyboard as keyboard
2025-06-15 12:47:54 +02:00
from threading import Thread
from datetime import datetime
from secrets import randbelow
2025-06-15 12:07:50 +02:00
k = keyboard.Controller()
m = mouse.Controller()
key_teleport="."
key_surge="f"
location_hub_portal=(1031,353)
location_aqueduct_portal=(835,808)
location_start_button=(1064,500)
compass=(1567,101)
sleep(5)
def click_at(coordinates: tuple[int,int]):
m.position = coordinates
m.click(mouse.Button.left)
2025-06-15 12:47:54 +02:00
def prevent_lobby():
while True:
random_milliseconds = randbelow(500_000)
print(f"Sleeping for {random_milliseconds} milliseconds.")
sleep(random_milliseconds / 1_000)
print(f"{datetime.now()}: Preventing lobby")
k.tap(" ")
Thread(target=prevent_lobby).start()
2025-06-15 12:07:50 +02:00
while True:
k.tap(key_teleport)
sleep(10)
click_at(compass)
k.tap(key_surge)
sleep(2)
click_at(location_hub_portal)
sleep(12)
click_at(location_aqueduct_portal)
sleep(6)
click_at(location_start_button)
sleep(5)
k.tap(key_surge)
sleep(3500)