Skip to content

Function "afk"

HungPV edited this page Jan 16, 2022 · 20 revisions

Since version 1.2.4

From 2.3.0+, you can select target to fight in PVP (1st/2nd/3rd/4th line). To do this, run setting.bat (or setting.sh), if not specified, default select first line as usual. To prevent wrong targeting and un-expected loss on other target-selectable ranking like GVG...(which having the same target-selection method) while doing AFK, this feature works and only works when bot itself attends to PVP by selecting the PVP icon (top left of game screen). That means if you select the PVP icon yourself or enter PVP before bot click etc.., it only select the first line as target as default

This function does not support select level/mode, how many badge/ticket/... to consumes and can only everything by default so please chose everything first manually then use this

Arguments for scripting mode (since 1.6.1):

accept first argument as tasks_combination is combination of P (PVP), B (World Boss), R (Raid), I (Invasion), E (Expedition), V (GVG), G (Gauntlet), T (Trials), 1 (PVP/World Boss/Raid), 2 (Invasion/GVG/Expedition), 3 (Trials/Gauntlet), A (All)

For example: 1et stands for PVP + World Boss + Raid + Expedition + Trials

Example how to call from command line: java -jar BitHeroes.jar afk 1et [additional flags...]

Supported flags:

  • --pvp do PVP
  • --boss do world boss, but must select world boss level
  • --gvg do GVG
  • --invasion do Invasion
  • --expedition do Expedition
  • --trials do Trials
  • --gauntlet do Gauntlet
  • --raid do Raid, but must select raid level & mode
  • --all do everything above Removed since 1.6.1
  • --exit=X means bot will exit after X secs if not completed, no matter how many loop remaining
  • --profile=X specific configuration profile (contains which Raid/World Boss/Expedition door to farm, which Raid mode Normal/Hard/Heroic to select)
  • --shutdown shutdown your computer after bot exit
  • --ear exit AFK if no more task to do (all out of turns and wait for resource generation)
  • Global flags

Notes:

  • Automatically exit after detected the Reconnect button
  • Automatically re-active the Auto button if it been red for 60s
  • Automatically press Yes when the game asks: "Are you still there?"
  • Support click the arrow button when having a conversation
  • Push notification to Telegram when detect Reconnect button (critical), not see ReRun within 15m (critical), exit (normal). But only works if you correctly configured Telegram

Test result

OS AFK on Mini-client 800x520 AFK on Steam 800x480 AFK on Steam 800x520 (v2.0.0+)
Ubuntu 18.04 (development environment) Works perfectly N/A N/A
Windows 10 x64 Works perfectly Works perfectly Works perfectly
Windows 7 x64 (on Virtual Box) Works perfectly Works perfectly Works perfectly
MacOS 10.14 High Sierra Not work N/A N/A