This project provides an automated fishing bot for the "Majestic RP" game. The bot detects visual elements on the screen to simulate fishing actions in the game.
- Automatic Key Presses: Simulates key presses (
A
,D
, andSPACE
) for fishing. - Visual Detection: Detects pink objects and their movement direction using OpenCV.
- Template Matching: Detects specific images (
splawik.png
andpasek.png
) to trigger actions. - Dynamic Window Detection: Adjusts to the "Majestic RP" game window size and position.
- Hotkey:
Page Up
: Toggles the bot on and off.
- Windows OS (tested on Windows 10/11)
- Compiled
.exe
file (no Python installation required) - The game must be running in windowed mode.
Download the compiled .exe
file from the Releases section.
- Download the latest
.exe
file from the Releases. - Place the required images (
splawik.png
,pasek.png
, andczapka.png
) in the same directory as the.exe
file. - Ensure the "Majestic RP" game is running in windowed mode and the window is titled "Majestic RP".
- Purchase and equip a pink hat in the game to start fishing. The hat must be visible for the bot to function correctly.
- Press
Page Up
to toggle the bot on or off. - When activated, the bot will automatically detect the "Majestic RP" window and start monitoring for visual elements.
- The bot tracks the movement direction of a pink object:
- Presses
D
if the object moves to the right. - Presses
A
if the object moves to the left. - Releases the keys if the object stops moving.
- Presses
- Press
Page Up
again to toggle the bot off.
Page Up
: Toggle the bot on or off.
- Bot Not Detecting Colors: Adjust the RGB and HSV values in the code if the bot is not detecting colors correctly.
- Incorrect Key Presses: Ensure the game window is titled exactly "Majestic RP" and is not minimized.
- Bot Not Activating: Make sure to run the
.exe
file with administrative privileges if needed. - Game Not in Windowed Mode: Verify that "Majestic RP" is running in windowed mode for the bot to function properly.
If you prefer to build the .exe
file from the source:
-
Clone the repository:
git clone https://github.com/1mkmk/majesticrp-autofishbot.git cd majesticrp-autofishbot
-
Install the required Python packages:
pip install -r requirements.txt
-
Use PyInstaller to create the
.exe
:pyinstaller --onefile --windowed fishing_bot.py
This project is licensed under the MIT License - see the LICENSE file for details.