New build script + bg farming bot v1

This commit is contained in:
2024-09-15 22:36:12 -04:00
parent b8cd6a09ed
commit cdcc70d7de
20 changed files with 188 additions and 20 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ class IdlingAgent:
self.monitor = monitor
def checkIdleTime(self):
while self.player.state is PLAYER_STATE.IDLE:
while self.player.state in (PLAYER_STATE.IDLE, PLAYER_STATE.BG_FARMING):
elapsedTime = time.time() - self.idleTime
if (elapsedTime > 10):
if (elapsedTime > 60):
self.logger.log("Jumping to avoid being afk...")
pyautogui.press("space")
self.idleTime = time.time()