Development started on 24th January 2025
rok-bot-python
is a bot designed to automate certain actions in the game "Rise of Kingdoms" using the BlueStacks emulator. The bot can search for barbarians, increase or decrease their level, and initiate attacks.
- Connects to BlueStacks emulator
- Searches for barbarians on the map
- Adjusts barbarian levels
- Initiates attacks on barbarians
- Handles marching and combat states
- Python 3.x
- BlueStacks emulator
- Required Python libraries:
pytesseract
Pillow
-
Clone the repository:
git clone https://github.com/mitkoostz/rok-bot-python.git cd rok-bot-python
-
Install the required libraries:
pip install pytesseract pillow
-
Ensure that Tesseract-OCR is installed on your system. You can download it from here.
- Start the BlueStacks emulator and ensure the game "Rise of Kingdoms" is running.
- Run the bot:
python main.py
main.py
: The main entry point of the bot.BarbarianBot.py
: Contains theBarbarianBot
class with methods to handle barbarian-related actions.Coordinates.py
: Contains the coordinates used for clicking buttons in the game.GameBot.py
: Contains theGameBot
class for general bot actions.BlueStacksAppChecker.py
: Contains methods to check if BlueStacks is running.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.