/AFK-Daily

Automate daily activities within the AFK Arena game.

Primary LanguageShell

AFK Bot

A bot for AFK Arena that automates running dailies, and intelligently retries campaign and towers. The bot is written in shell and uses ADB to detect pixel colour.

Based on Zebscript's project afk-daily

Current Features

  • Loot AFK Rewards
  • Battle in Campaign
  • Collect Mail
  • Collect Fast Rewards
  • Send friend points and lend mercenaries
  • Collect and Dispatch Bounties
  • Automatically use available tickets in Arena / Legends / HoE
  • Battle in main and faction towers
  • Collect Inn gifts
  • Battle Guild Hunts
  • Buy store dust / poe coins
  • Support for multiple characters per account (max 3)

Installation

On both systems make sure that Bluestacks is installed and running with ADB enabled

Windows

Download the Windows release from releases, and run the appropriate activities .bat file.

MacOS

Download the MacOS release from releases, and launch the script with bash afkbot.sh -params with the launch parameters for the activity you wish to run

Launch parameters

The bot selects the activity based on the launch parameters below:

  • dailies

Example: bash afkbot.sh dailies

Run dailies

  • towers | tower
    • kt | lb | m | w | gb | all | friday | saturday

Example: bash afkbot.sh towers gb

Continuously run selected tower, friday and saturday cycles between the two towers that are open on those days

  • towers | tower
    • ktsingle | lbsingle | msingle | wsingle | gbsingle

Example: bash afkbot.sh towers msingle

Retry selected tower until victorious, then exit. (useful if you want to save a merc)

  • campaign

Example: bash afkbot.sh campaign

Continuously run campaign

  • campaignsingle

Example: bash afkbot.sh campaignsingle

Retry campaign until victorious, then exit. (useful if you want to save a merc)

Debug Launch Parameters

These can be placed at the end of the launch parameters

  • 1 | 2 | 3

Select character slot

Example: bash afkbot.sh campaign 2

Load the character in the second slot, then continously retry campaign

  • rgb

Print detected RGB values

Example: bash afkbot.sh dailies rgb

Prints the RGB values each time the bot reads the screen, useful for debugging after patches when locations/values may change.