Automate fishing task in a game called Lost Ark using image detection. This was a quick implementation of machine learning in gaming for fun :)
Python 3
pyautogui
cv2
numpy
- Install libraries mentioned in "Prerequisites" section.
- Place "fishcaught.png" in the same directory as the script.
- Run "fish_macro.py" script.
- Place your character in Lost Ark game near fishing location. Cast a fishing rod by clicking w.
- You are all set!
This script knows to pull the fishing rod out when the fish is caught by detecting the yellow exclamation mark.
It waits until your character is ready, and casts another fishing rod.
Depending on your screen/game's resolution, image provided might not match actual exclamation mark for you. Simply take a screenshot and replace provided image with your own.
Thanks to drov0's python-imagesearch : https://github.com/drov0/python-imagesearch