Simple Lineage II bot that uses Computer Vision to find possible targets and monitor HP/MP/CP.
Written to learn C++ basics, but can be useful for someone.
Download: https://github.com/madyanov/l2-cv-bot/releases
Features
NPC detection
HP/MP/CP monitoring
Mouse and keyboard emulation
Stuck resolving
TTS alarm subsystem (captcha, low HP, CP decreasing, etc.)
Custom behavior support (LUA scripts)
Buffs/debuffs monitoring
How to use
Interception driver is required for mouse and keyboard emulation.
Install Interception driver (start `cmd.exe` as Administrator, then run `install-interception.exe /install`) and reboot
Run Lineage II client, select character and teleport to any exp/farm location
Run `run.bat "<title of the Lineage II client window>"`
HP/CP/MP bars must be 100% at the moment of bot start, but if not, you should wait until they will be 100% and then press Space to reset bars position
To stop press ESC or move mouse
Customization
Current version developed and tested using Windows 10 and Gracia Epilogue client, so with another Windows or Lineage II client it may not work.
Edit `run.bat` file to customize CV for another client. Note that for colors used HSV and BGR color models
Edit `Brain.cpp` to customize bot behavior. Custom runtime behavior scripts are not supported
OS related stuff placed in these files: `Window.cpp`, `Capture.cpp`, `Input.cpp`, `Intercept.cpp`