From 4b4763b988333701f80baefcbce9d654d37f87fc Mon Sep 17 00:00:00 2001 From: letsmoke <107760297+letsmokee@users.noreply.github.com> Date: Sun, 18 Feb 2024 14:21:05 +0200 Subject: [PATCH] Update ApexFarmer.py to v2.1 (breakout) --- ApexFarmer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApexFarmer.py b/ApexFarmer.py index 9f7e42b..2383e68 100644 --- a/ApexFarmer.py +++ b/ApexFarmer.py @@ -230,7 +230,7 @@ def process_exists(process_name): pyautogui.moveTo(200,100) window_found = 1 - if pyautogui.locateOnScreen(resource_path('ss\\InGame.png'), region=(87, 755, 379, 304), grayscale=True, confidence=0.5) is not None: + if pyautogui.locateOnScreen(resource_path('ss\\InGame.png'), region=(255, 885, 172, 81), grayscale=True, confidence=0.5) is not None: print(UP, end=CLEAR) print("------------------------------DETECTED IN MATCH, MOVING TO FARMING MODE-----------------------------") time_stuck_start= 0 @@ -363,7 +363,7 @@ def process_exists(process_name): keyboard.press_and_release('space') time.sleep(np.random.uniform(0.4,0.8)) - if pyautogui.locateOnScreen(resource_path('ss\\InGame.png'), region=(87, 755, 379, 304), grayscale=True, confidence=0.5) is not None: + if pyautogui.locateOnScreen(resource_path('ss\\InGame.png'), region=(255, 885, 172, 81), grayscale=True, confidence=0.5) is not None: #print("-------------In game waiting--------------") keyboard.press_and_release(Random) time.sleep(0.5)