Giter Site home page Giter Site logo

meetcadmus / l2-cv-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from namuro/l2-cv-bot

0.0 1.0 0.0 9.52 MB

Simple Lineage II bot that uses CV to find possible targets and monitor HP/MP/CP

License: MIT License

CMake 2.14% Batchfile 2.55% C 19.70% C++ 75.62%

l2-cv-bot's Introduction

WIP

Simple Lineage II bot that uses CV to find possible targets and monitor HP/MP/CP.

Demonstration video:

Features

  • Near and far 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.

  1. Install Interception driver (start cmd.exe as Administrator, then run install-interception.exe /install) and reboot.
  2. Run Lineage II client, select character and teleport to any exp/farm location.
  3. Run run.bat "<title of the Lineage II client window>".
  4. 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.
  5. To stop press ESC or move mouse.

Default keyboard layout:

  • F1 - Primary attack
  • F2 - Next target
  • F3 - Spoil
  • F4 - Sweep
  • F5 - Pick up
  • F6 - Restore HP when <70%
  • F7 - Restore MP when <70%
  • F8 - Restore CP when <90%

Command line options

l2-cv-bot.exe:

--window    Lineage II window title or part of the title. Default: "Lineage II"
--debug     Show window with debug information. Default: true

run.bat only accepts window title.

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 to customize CV or keyboard layout for another client. Note that for colors are used HSV and BGR color models.
  • Edit Brain.cpp to customize bot behavior and timings. Custom runtime behavior scripts currently aren't supported.
  • OS related stuff placed in these files: Window.cpp, Capture.cpp, Input.cpp, Intercept.cpp.

Building

Using CMake and MSVC (Visual Studio 2017) on Windows:

  1. Download and install CMake.
  2. Download OpenCV binaries or build OpenCV manually (tested with OpenCV 3.4.2).
  3. Set OpenCV_DIR environment variable to path of the OpenCV binaries.
  4. Run build-vs15x64.bat for 64-bit OpenCV or build-vs15x32.bat for 32-bit OpenCV (or build.bat to provide custom arch, project generator and configuration).
  5. Built executable and dependent dynamic libraries can be found in build-<arch>/<configuration> directory (e.g. build-x64/Release).

If Interception library building fails, try to install WDK.

l2-cv-bot's People

Contributors

m6vrm avatar

Watchers

Maksym Andreiev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.