The Apex AFK Farm Bot is a powerful automation tool designed to assist Apex Legends players in farming in-game rewards while being AFK (Away From Keyboard). This repository provides the source code and instructions for using the bot effectively.
This script automates certain actions in the game using Python libraries such as pyautogui, keyboard, and PyScreeze. It simulates human behavior by interacting with the game interface based on screen recognition.
- WINDOWS installation
- Install Python
- Run Installing python.bat, this will install all package and dependencies required to run this program
- If you encounter a "The Pillow package is required to use this function" error, run
pip install Pillow --upgrade
- Run Start.bat to execute the script
- Linux:
- Run sudo apt-get install python3 to install Python 3.
- Install the required libraries by running the following commands:
- pip install PyScreeze
- pip install keyboard
- pip install pyautogui
- pip install opencv-python
- pip install Pillow --upgrade
Important: Before running the script on Linux, execute sudo su to switch to the root user. Then, run python3 ApexFarmer.py or python ApexFarmer.py to start the script.
-
AFK Farm Bot not working, To ensure optimal performance, please ensure that your monitor is set to a resolution of 1920 x 1080 and an
Aspect ratio
of 16:9. Additionally, make sure to set theDisplay Mode
to Borderless Fullscreen in the game settings->video
menu. These settings will help ensure accurate screen recognition and proper execution of the automation script. -
I'm getting a Display ConnectionError when running the script on Linux. How do I fix it
Run the following commands:
sudo su
xhost +local:$USER
If you encounter the Display ConnectionError again, try running:
xhost +local:$USER > /dev/null
Contributions are welcome! If you have any suggestions, bug fixes, or new features to add, feel free to open an issue or submit a pull request.
Disclaimer: The usage of this script is at your own risk, and the developer takes no responsibility for any consequences resulting from its use.