OSROKBOT is a highly customizable, open-source bot for Rise of Kingdoms. Utilizing state machines and image detection, it provides a powerful platform for automation within the game. It is designed to be scalable, working with any 16:9 ratio screen.
This bot is not intended for mainstream users as it requires setup and likely some thinkering with the project. More than anything, this project should be a fun example for developers to play with.
Scout Exploration: Scouts explore fog and structures when available.
Farm Barbarians: Farms barbarians at the pre-set level with lohar (you can change the commander) or all commanders in the field.
Farm Resources: Farms resources at the automaticly chosen gatherers. For this, it is recommended that you use 720p res for now.
Catcha Recogniztion: Will pause when captcha is detected and email you. You can then manually solve the captcha and the bot will continue.
Lyceum: Will automatically do the lyceum event.
Lyceum Midterm: Will automatically do the lyceum midterm and finals event.
Python Libraries: Install the required Python libraries by running (after running there may be errors related to other non installed libs, just install them for now):
pip install -r requirements.txt
Create a .env
file in the project root directory with the following content:
OPENAI_KEY=your_openai_key
TESSERACT_PATH=your_tesseract_path
EMAIL=your_email
ANTIALIAS_METHOD=LANCZOS
Replace the placeholders with your actual values.
You can create new state machines or actions using the existing framework. Feel free to screenshot your images for new state machines or different actions. Remember to run the script as administrator.
Developers can extend OSROKBOT by implementing new actions or creating new state machines. The project provides a robust set of tools for working with images and actions.
If you need help or have any questions, please open an issue on the GitHub repository.
OSROKBOT is open-source and available under the MIT License.
Special thanks to the community and contributors (me) who have helped make OSROKBOT a reality.