Metin2FishBot
Metin2FishBot copied to clipboard
A bot to fish in METIN2
Metin2 Fishing Bot
A Metin2 fishing bot. The bot will play the minigame and automatically put the bait in the rod and throw the bait. The code was build from scrap from the repository: https://github.com/learncodebygaming/opencv_tutorials
Requirements:
python 3.11
and pip
- Preferable use the version 3.11, because others versions is getting few errors in the Opencv library installation.
Case you don't know how to install these requirements:
-
Download python https://www.python.org/downloads/release/python-3124/ bottom of the page. You may download the executable.
-
Install Python.
-
Copy the path of your python. Is something like that:
C:\Users\yourwindowsusername\AppData\Local\Programs\Python\Python311
. -
And paste inside your enviroment variables:
-
Also add a new one, but with the name
\Scripts
in the end. Like that:C:\Users\yourwindowsusername\AppData\Local\Programs\Python\Python311\Scripts
. -
YOU HAVE TO PAY ATTENTION IN THE PATH, EVERY COMPUTER HAS A DIFERENT PATH, BECAUSE THE NAME OF THE USER.
-
Download https://bootstrap.pypa.io/get-pip.py (You can just press CTRL + S)
-
Now you need to know how navigate inside console. To learn about: https://www.digitalcitizen.life/command-prompt-how-use-basic-commands
-
Open a CMD console and execute the file:
python get-pip.py
. You need to be in the same folder of the file to do That. -
Now enter inside the bot folder and execute the command:
pip install virtualenv
-
In the same folder:
virtualenv metin2
-
In the same folder:
metin2\Scripts\activate
-
Since you activated the virtualenv you can install all requirements:
pip install -r requirements.txt
. Pip will install these following libraries:
numpy
opencv-python
PyDirectInput
pywin32
pytesseract
PySimpleGUI
pyinstaller
-
To generate the executable run:
pyinstaller --onefile hack.py
. When it's end move the executable file in the folderdist
to the project's root. -
You also can watch the video to learn how run the bot. The versions on the video may be different ( It's an old video ).
https://drive.google.com/file/d/1LV5l4il2IN62abYDD4pKdgSx6bEs1cIk/view
How to use:
-
First open the game in
800x600
resolution andnot fullscreen
, Otherwise the bot will detect and click the wrong place in the screen. -
The code will look for a window that has the name:
Metin2
. If you have another window that also has this same name it is possible that the script will capture this other window instead. But if you want to run the bot and keep all windows open you need to grab the metin2 icon from taskbar and move it to the beginning. If you only have a game open you don't need to worry about this. -
If your game has a diferent name you must change the name in the constant files:
constants.py
. Remember to generate the the executable again if you did. -
Put the fish skill in the
1
hotkey and the bait in2
hotkey. Equip your fishing rod. -
The game window must to be totally visible and not minimized.
-
Open the executable as admin.
-
Will open a screen like that:
-
You can set a limit time in minutes to stop the bot.
-
To start the bot you need to press start, and to stop you can press the same button.
-
In the options you can set the delay time to bait, throw and start the minigame.
-
When the bot is executing, the game window must be visible at all times and your mouse will be used by the bot. This is a visual bot, so it's kind of impossible for you to use your pc at the same time the bot is running because the bot needs to click with your mouse.
-
To stop the bot you can use time condition or press the button
STOP
. -
Now you also can use the bot to solve the mini game puzzle. Just Select Puzzle Tab and open the mini game puzzle. Don't move the mini game puzzle window.
Check list
- [x] Detect the daily bonus and select any option.
- [ ] Use the fish bait item.
- [ ] Use fish item from the inventory to save space.
- [ ] Throw away the fish item from the inventory.
- [ ] Detect bait quantity.
- [ ] Text Detection to skip fish. Was not working well the last version.