中文用户请阅读这里
This script is to save your time from Mercenaries mode of Hearthstone.
It is only for study purpose, you will take your own legal responsibility if you commercialize it or earn profit.
For discussion, welcome to join our Discord Group.
For bug reporting, please go to Issues page to submit.
Make sure you installed python>=3.6.
To install python, we recommand Anaconda.
Make sure you added python path into your $PATH
system environment/variables
Run the following in your commandline/terminal for requirements installation
pip install opencv-python numpy pyautogui pillow pywin32 pyyaml
- Make sure your Hearthstone is set to windows mode
- For English language users, please set your Hearthstone resolution to 1024x768
- For Chinese language users, please set your Hearthstone resolution to 1600x900
- For more resolutions, change locations in
config.yaml
, usefind_coordinates.py
to record button locations; - Please read carefully about basic section and skill section in
conig.yaml
before you start your game - If you wanna blacklist some treasures during selection, put their screenshot into
imgs_eng/treasure_blacklist
folder - If you wanna whitelist some heros during stranger reward selection, put their screenshot into
imgs_eng/heros_whitelist
folder, BUT DO NOT copy the whole card image, only charactor avatar, otherwise may not recognize - If you wanna run it in background, consider using a virtual machine
- Please download to lastest stable version in release page, if you still have problems, please report on issues page
If you need a stable version, goto Release to download. If you wanna test latest version, download the main branch.
In your commandline/terminal, cd
to folder where lushi.py
locates, run the following
python lushi.py --lang eng