From 86eb4764d05ea564a2efc4cd79faa474dbd162ee Mon Sep 17 00:00:00 2001 From: KoiKomei <32816781+KoiKomei@users.noreply.github.com> Date: Sun, 21 Aug 2022 20:14:22 +0200 Subject: [PATCH 1/2] fixed Y position of Glacial Hellbeast That's it --- src-tauri/backend/bot/game_modes/arcarum_sandbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/backend/bot/game_modes/arcarum_sandbox.py b/src-tauri/backend/bot/game_modes/arcarum_sandbox.py index fbf20b8a..9afec4e0 100644 --- a/src-tauri/backend/bot/game_modes/arcarum_sandbox.py +++ b/src-tauri/backend/bot/game_modes/arcarum_sandbox.py @@ -254,7 +254,7 @@ class ArcarumSandbox: "Glacial Hellbeast": { "section": 0, "x": 50, - "y": 90 + "y": 180 }, "Giant Sea Plant": { "section": 0, From 1c1314962b84dae1d902e5f320510761f9d7851d Mon Sep 17 00:00:00 2001 From: KoiKomei <32816781+KoiKomei@users.noreply.github.com> Date: Sun, 21 Aug 2022 21:53:12 +0200 Subject: [PATCH 2/2] Added logic for Replicard zone bosses Added logic for every zone boss of replicard 1 and 2 - Eletion Glider - Faymian Gun - Goliath Triune - Harbinger Stormer - Athena Militis - Grani Militis - Baal Militis - Garuda Militis --- .../backend/bot/game_modes/arcarum_sandbox.py | 55 +++++++++++++++++++ src/data/data.json | 32 +++++++++++ 2 files changed, 87 insertions(+) diff --git a/src-tauri/backend/bot/game_modes/arcarum_sandbox.py b/src-tauri/backend/bot/game_modes/arcarum_sandbox.py index 9afec4e0..5734095c 100644 --- a/src-tauri/backend/bot/game_modes/arcarum_sandbox.py +++ b/src-tauri/backend/bot/game_modes/arcarum_sandbox.py @@ -69,6 +69,11 @@ class ArcarumSandbox: "x": 285, "y": 295 }, + "Eletion Glider": { + "section": 2, + "x": 70, + "y": 260 + }, ########## # Zone Faym @@ -117,6 +122,11 @@ class ArcarumSandbox: "x": 60, "y": 215 }, + "Faymian Gun": { + "section": 2, + "x": 200, + "y": 285 + }, ########## # Zone Goliath @@ -165,6 +175,11 @@ class ArcarumSandbox: "x": 250, "y": 260 }, + "Goliath Triune": { + "section": 2, + "x": 50, + "y": 300 + }, ########## # Zone Harbinger @@ -198,6 +213,11 @@ class ArcarumSandbox: "x": 275, "y": 250 }, + "Harbinger Stormer": { + "section": 1, + "x": 180, + "y": 150 + }, "Harbinger Tyrant": { "section": 2, "x": 370, @@ -248,6 +268,11 @@ class ArcarumSandbox: "x": 170, "y": 220 }, + "Athena Militis": { + "section": 1, + "x": 185, + "y": 350 + }, ########## # Zone Joculator @@ -281,6 +306,11 @@ class ArcarumSandbox: "x": 240, "y": 140 }, + "Grani Militis": { + "section": 1, + "x": 200, + "y": 230 + }, ########## # Zone Kalendae @@ -314,6 +344,11 @@ class ArcarumSandbox: "x": 125, "y": 345 }, + "Baal Militis": { + "section": 0, + "x": 220, + "y": 245 + }, ########## # Zone Liber @@ -347,6 +382,11 @@ class ArcarumSandbox: "x": 220, "y": 335 }, + "Garuda Militis": { + "section": 1, + "x": 50, + "y": 225 + }, } @staticmethod @@ -500,6 +540,20 @@ def _refill_aap(): MessageLog.print_message(f"[ARCARUM.SANDBOX] AAP is now refilled.") return None + + @staticmethod + def _play_zone_boss(): + """Clicks on Play if you are fighting a zone boss. + + Returns: + None + """ + play_button = ImageUtils.find_button("play") + if play_button: + MessageLog.print_message(f"\n[ARCARUM.SANDBOX] Now fighting zone boss...") + MouseUtils.move_and_click_point(play_button[0], play_button[1], "play") + + return None @staticmethod def start(): @@ -532,6 +586,7 @@ def start(): ArcarumSandbox._navigate_to_mission(skip_to_action = True) # Refill AAP if needed. + ArcarumSandbox._play_zone_boss() ArcarumSandbox._refill_aap() Game.wait(3.0) diff --git a/src/data/data.json b/src/data/data.json index 2ae21381..35e4021e 100644 --- a/src/data/data.json +++ b/src/data/data.json @@ -1195,6 +1195,38 @@ "Simpering Beast": { "map": "Zone Liber", "items": ["Sephira Stone", "Lightborne Astra", "Star Idean", "Repeated Runs"] + }, + "Eletion Glider": { + "map": "Zone Eletio", + "items": ["Repeated Runs"] + }, + "Faymian Gun": { + "map": "Zone Faym", + "items": ["Repeated Runs"] + }, + "Goliath Triune": { + "map": "Zone Goliath", + "items": ["Repeated Runs"] + }, + "Harbinger Stormer": { + "map": "Zone Harbinger", + "items": ["Repeated Runs"] + }, + "Athena Militis": { + "map": "Zone Invidia", + "items": ["Repeated Runs"] + }, + "Grani Militis": { + "map": "Zone Joculator", + "items": ["Repeated Runs"] + }, + "Baal Militis": { + "map": "Zone Kalendae", + "items": ["Repeated Runs"] + }, + "Garuda Militis": { + "map": "Zone Liber", + "items": ["Repeated Runs"] } }, "Generic": {