GithubHelp home page GithubHelp logo

iindrasura / apexafkfarmbot Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 239 KB

Advanced image recognition bots for Apex Legends game using python. AFK XP farming and lowers KD.

License: GNU General Public License v3.0

Python 63.29% Batchfile 36.71%
afk-bot afk-farming afkfarming apex apex-legends apex-legends-hack bot cheats python apex-hack

apexafkfarmbot's Introduction

Apex AFK Farm Bot

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.

ApexFarmer

Installation

  • WINDOWS installation
    1. Install Python
    2. Run Installing python.bat, this will install all package and dependencies required to run this program
    3. If you encounter a "The Pillow package is required to use this function" error, run
    pip install Pillow --upgrade
  1. Run Start.bat to execute the script
  • Linux:
    1. Run sudo apt-get install python3 to install Python 3.
    2. 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.

FAQ

  1. 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 the Display 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.

  2. 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

Contributing

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.

apexafkfarmbot's People

Contributors

iindrasura avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eraser34

apexafkfarmbot's Issues

Followed the guides but not working?

Helllo Ilndrasura,

I've followed your script guide for the Apex Legends AFK bot.

Dosnt seem to work even though I do the steps in correct order. Is there a keybind to open a menu or how does this work?

Would be nice with in-depth guide or tutorial for new people who are not familiare with how github works etc.

i keep getting this what do i do to fix it

File "C:\Users\oxeyt\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyautogui_init_.py", line 172, in wrapper
return wrappedFunction(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\oxeyt\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyautogui_init_.py", line 210, in locateOnScreen
return pyscreeze.locateOnScreen(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\oxeyt\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyscreeze_init_.py", line 405, in locateOnScreen
retVal = locate(image, screenshotIm, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\oxeyt\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyscreeze_init_.py", line 383, in locate
points = tuple(locateAll(needleImage, haystackImage, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\oxeyt\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyscreeze_init_.py", line 257, in _locateAll_opencv
raise ImageNotFoundException('Could not locate the image (highest confidence = %.3f)' % result.max())
pyscreeze.ImageNotFoundException: Could not locate the image (highest confidence = 0.217)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\oxeyt\Downloads\ApexFarming-main\ApexFarmer.py", line 10, in
if pyautogui.locateOnScreen('ManuNotReady.png', region=(0,538,447,528), grayscale=True, confidence=0.7) != None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\oxeyt\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyautogui_init_.py", line 174, in wrapper
raise ImageNotFoundException # Raise PyAutoGUI's ImageNotFoundException.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyautogui.ImageNotFoundException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.