Skip to content

This script is to save your time from Mercenaries mode of Hearthstone

License

Notifications You must be signed in to change notification settings

why19941122/lushi_script

 
 

Repository files navigation

Hearthstone Mercenaries Mode Script

中文用户请阅读这里

Introduction

This script is to save your liver damage 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.

Installation

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 psutil

If you have installation problem related to psutil, please download and install Microsoft Visual C++, then redo above

Before Running

  • 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, use find_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

Run

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

About

This script is to save your time from Mercenaries mode of Hearthstone

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Batchfile 0.1%