bot for hearthstone mercenaries

Overview

Hearthstone-Mercenaries-game-bot

- prevention: Bot is not ready and now on the development stage estimated release date - 21.10.21

The main idea of the bot is to automatically pass the levels and assemble components, simultaneously pumping all your mercenaries level 1 to 30 (so far, then to add) So how does it work? in fact, everything is based on the fact that the bot collects a team of 3 of your heroes of level 30, and then throws 1 level there, and since for pumping the unit does not have to participate in the battle, the bot just passes the location time and time again and shakes the rest of your mercenaries to level 30.

In plans

  1. Finish Project
  2. Add mode selection - collecting fragments/pumping heroes
  3. write a graphical interface for this whole case
  4. It is possible to expand the functionality originally conceived.

Installation

  • Download the project
  • Install All Libraries

image

  • then open Settings.ini and set yr settings
  • Start the game

Possible problem

image
If this error occurs after all libraries have been installed and the interpreter has been configured, do this:

  • pip install "ahk[binary]"
  • pip install "ahk-binary<2"

Specification, Settings.ini file:

[BotSettings]
monitor=1 
bot_speed=0.5 
+0.1-the fastest mode , 5-the slowest (not recomending do faster then 0.5) 
[Hero1]
number = 1
colour = Red
[Hero2]
number = 2
colour = Green
[Hero3]
number = 3
colour = Blue
+3 main heroes that you will use for pumping other ones.List of heroes by numbers you can see in in HeroesList.txt

[NumberOfPages]
Red = 1
Green = 2
Blue = 2
+number of pages each colour(or type) in section Red - defenders , Green - warriors ,Blue - Wizards
[Resolution]
Monitor Resolution = 2560*1440
+could be 2560*1440 or 1920*1080



HeroList
1 - Cariel Roame /Кариэль Роум
2 -Tyrande / Тиранда
3 -Milhous Manostorm / Милхаус маношторм

For contacts [email protected]

Comments
  • Hello! Question about the language.

    Hello! Question about the language.

    I read this code briefly this morning and I am really curious about this. Seems that this is based on opencv. So if I want to use this, the Hearthstones' language option should be Ruassian? Or I should change pictures into my own language?

    opened by Codefmeister 23
  • [Feature Request] use pynput instead of AHK

    [Feature Request] use pynput instead of AHK

    Hi,

    I use Linux and AHK doesn't work (no AHK for Linux, others libraries needed or Wine needed and possibly a lot of headaches). Could you use pynput ? https://pypi.org/project/pynput/

    It works for Linux, MacOS and Windows : https://pynput.readthedocs.io/en/latest/limitations.html

    Regards

    opened by Efemache 4
  • easeInBounce & easeInElastic mouse movements deleted because of weird behavior

    easeInBounce & easeInElastic mouse movements deleted because of weird behavior

    Sometime the bot don't do the right thing because of this 2 movements Example : when it try to create Botwork group, the heroe card is not drop in the correct zone

    opened by Efemache 2
  • OS detection added and screenshot removed from repo

    OS detection added and screenshot removed from repo

    Some tests needed on Windows to be sure nothing is changed (don't have one to test). On Linux, it should catch the window and focus it.

    I also removed screenshot from repo with .gitignore

    Need more work to support mouse/keyboard on Linux (need to use autopygui on both Windows & Linux instead of AHK)

    opened by Efemache 1
  • lost battle detected and image stored in memory

    lost battle detected and image stored in memory

    • small fixes : lost battle detection added and some clicks added too on Rewards
    • improvement : screenshot are stored in memory now instead of disk (HDD/SDD)
    opened by Efemache 0
  • A lot of improvements for Linux, window support, bug fix,

    A lot of improvements for Linux, window support, bug fix,

    • window experience added (you can use fullscreen or window); should close issue #32
    • select a correct enemy when there is an odd number of enemies; should close issue #34
    • heroes card selection (to put on board) improved and debug mod added; should close issue #23
    • little bit of documentation added for tab 'buttons', 'ui', 'chekers' and 'setings'; should help for issue #31
    • Linux has better support with files renamed (case sensitive)
    • some minor changes
    • README updated to clarify AHK is a prerequisite
    opened by Efemache 0
  • Mouse - easeInBounce & easeInElastic removed due to issues

    Mouse - easeInBounce & easeInElastic removed due to issues

    Sometime the bot don't do the right thing because of this 2 movements Example : when it try to create Botwork group, the heroe card is not drop in the correct zone

    opened by Efemache 0
  • Mouse - easeInBounce & easeInElastic removed

    Mouse - easeInBounce & easeInElastic removed

    Sometime the bot don't do the right thing because of this 2 movements Example : when it try to create Botwork group, the heroe card is not drop in the correct zone

    opened by Efemache 0
  • easeInBounce & easeInElastic mouse muvements deleted beacause of weir…

    easeInBounce & easeInElastic mouse muvements deleted beacause of weir…

    …d behavior with drag&drop (#25)

    Sometime the bot don't do the right thing because of this 2 movements Example : when it try to create Botwork group, the heroe card is not drop in the correct zone

    Co-authored-by: Franck M'Hamed [email protected]

    opened by Deopster 0
  • easeInBounce & easeInElastic mouse muvements deleted beacause of weir…

    easeInBounce & easeInElastic mouse muvements deleted beacause of weir…

    …d behavior with drag&drop (#25)

    Sometime the bot don't do the right thing because of this 2 movements Example : when it try to create Botwork group, the heroe card is not drop in the correct zone

    Co-authored-by: Franck M'Hamed [email protected]

    opened by Deopster 0
  • Linux support added

    Linux support added

    -- Linux -- The bot is (normally) working on Linux. (I have a bug but I think it exists on Windows, I'll open an issue)

    The bot select Wnck/Gtk for Linux and AHK for Windows to focus on the Hearthstone window. For mouse/keyboard support, I add to use autopygui which is multi-platform (windows, linux & macos) instead of AHK.

    Need some tests on Windows too.

    -- bug -- I solved a bug to with screen resolution when calling partscreen : "partscreen(2560, " => replaced with "partscreen(int(setings[0].split('x')[0])"

    --improvement --

    • removed "part.png" from repo (with .gitignore)
    • mouse random movement added (it is no more linear)
    opened by Efemache 0
  • [New version] a new version of the bot is available

    [New version] a new version of the bot is available

    Hi,

    This repository is "freezed" for some times (no new commit).

    I made a lot of improvements (bugs solved) on a new version. If you want it t (we can all come back here when Deopster will be available), you can use my fork : https://github.com/Efemache/Mercenaries-Farm-bot (for now, my code will only be a fork and not a new project, so you need to use the "improve2" branch, no "main")

    I added a Wiki : https://github.com/Efemache/Mercenaries-Hearthstone-game-bot/wiki

    Feel free to help (code, tests, screenshots, other ?)

    [eidt] post updated with new project URL : https://github.com/Efemache/Mercenaries-Farm-bot All my contribution will be on this bot/version

    opened by Efemache 2
  • [Bug] the bot doesn't start a new battle on the quest map

    [Bug] the bot doesn't start a new battle on the quest map

    Hi,

    Sometimes the bot fail to start a new battle. I found 2 patterns where it happens :

    1. when a task is finished after a fight (the bot try to click to find a new battle but HS didn't move the map at that time).
    2. when there is a button to revive a hero on the map => sometimes the bot click on it but you already on the next track
    opened by Efemache 2
  • [Bug] hero[n]_Number in settings.ini is buggy

    [Bug] hero[n]_Number in settings.ini is buggy

    You can't use a number greater than 6 in the section below : [Heroes] hero1_Number = 1 hero2_Number= 2 hero3_Number = 3 hero4_Number = auto hero5_Number = auto hero6_Number = -

    The bot crashes with an error "out of range"

    opened by Efemache 1
  • [Bug] sometime the bot doesn't click right on enemy when the number of enemies is odd

    [Bug] sometime the bot doesn't click right on enemy when the number of enemies is odd

    The bot check some enemies and sometimes, it doesn't know which one to choose. Then, it clicks in the middle. It works when there is an even number of enemies. If there is an odd number, it click between two enemies.

    opened by Efemache 2
  • [bug][Linux] the bot works in window mod but not when HS is fullscreen

    [bug][Linux] the bot works in window mod but not when HS is fullscreen

    Actually, with Linux, the bot manipulate HS when it is in a window.

    I don't know why but in fullscreen there is a problem :

    • some screenshot doesn't match imagefile (but it works in window mode ...)
    • the bot doesn't interract properly in fullscreen
    opened by Efemache 1
Releases(v0.1.2-beta)
  • v0.1.2-beta(Oct 26, 2021)

    1. Group function has been completely rewritten:
    • the algorithm works 2.5 times faster
    • small bugs removed
    • now, when checking the existing group, it passes through all 6 heroes, checking whether the 3 first ones are those indicated in the files and whether the remaining 30 LVL have reached
    • made a reserve for the future with the ability to choose how many supporting heroes you want to add 1 2 or 3
    • now if one of the heroes of the group is not deleted and then reassembled, then this hero is simply deleted and replaced by another.
    1. Has been done work with the pictures search algorithm:
    • AutoScale Images Added
    • now you don't need 4 screens to find a hero, one is enough, which speeds up work a lot.
    • work has begun on auto-scaling under different Resolutions

    Before

    image

    After

    image

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0-beta(Oct 25, 2021)

    Hay people, after almost a week of development, I can finally say that the bot is led to a workable look and therefore I am launching a pre-release. Download, test, write if you encounter any critical error in the issues branch. And most importantly, this version is far from a release version, this is just the beginning of development, I think 40% of the entire roadmap of the project. There is still a lot to do - to correct the existing errors,

    • [ ] add support not only for these 3 heroes,
    • [ ] start the system of auto-execution of quests,
    • [ ] write GUI,

    Btw this version is for FullHD, if you have 2k wait a little bit more. And so on, In general, there is still a lot of work. the installation tutorial you can find here - https://youtu.be/nOZXCkrQ5fk Have a nice day, Andrew.

    Source code(tar.gz)
    Source code(zip)
Owner
Andrew Efimov
Andrew Efimov
(@Tablada32BOT is my bot in twitter) This is a simple bot, its main and only function is to reply to tweets where they mention their bot with their @

Remember If you are going to host your twitter bot on a page where they can read your code, I recommend that you create an .env file and put your twit

null 3 Jun 4, 2021
Simple bot to receive feedback,same as livegram bot but with more features & full control over bot

Kontak Simple bot to receive feedback,same as livegram bot but with more features & full control over bot Deploy to VPS

Mahin Ahmed 2 Dec 16, 2021
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

Aran 1 Oct 13, 2021
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 6, 2022
Bagas Mirror&Leech Bot is a multipurpose Telegram Bot written in Python for mirroring files on the Internet to our beloved Google Drive. Based on python-aria-mirror-bot

- [ MAYBE UPDATE & ADD MORE MODULE ] Bagas Mirror&Leech Bot Bagas Mirror&Leech Bot is a multipurpose Telegram Bot written in Python for mirroring file

null 4 Nov 23, 2021
Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar seu próprio token, e lembrando, é um bot básico, não se utiliza Cogs nem slash commands nele!

BotDiscordPython Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar s

Matheus Muguet 4 Feb 5, 2022
Sunflower-farmers-automated-bot - Sunflower Farmers NFT Game automated bot.IT IS NOT a cheat or hack bot

Sunflower-farmers-auto-bot Sunflower Farmers NFT Game automated bot.IT IS NOT a

Arthur Alves 17 Nov 9, 2022
A Telegram Bot with(Forwarder Bot + User Bot + More Features )

A Telegram Bot with(Forwarder Bot + User Bot + More Features )

Kaif 3 Feb 16, 2022
Twitter bot that turns comment chains into ace attorney scenes. Inspired by and using https://github.com/micah5/ace-attorney-reddit-bot

Ace Attorney twitter Bot Twitter bot that turns comment chains into ace attorney scenes. Inspired by and using https://github.com/micah5/ace-attorney-

Luis Mayo Valbuena 542 Dec 17, 2022
null 471 Dec 24, 2022
A Telegram bot for remotely managing Binance Trade Bot

Binance Trade Bot Manager Telegram A Telegram bot for remotely managing Binance Trade Bot. If you have feature requests please open an issue on this r

Lorenzo Callegari 乐子睿 350 Jan 1, 2023
An Open-Source Discord bot created to provide basic functionality which should be in every discord guild. We use this same bot with additional configurations for our guilds.

A Discord bot completely written to be taken from the source and built according to your own custom needs. This bot supports some core features and is

Tesseract Coding 14 Jan 11, 2022
This is telegram bot to generate string session for using user bots. You can see live bot in https://telegram.dog/string_session_Nsbot

TG String Session Generate Pyrogram String Session Using this bot. Demo Bot: Configs: API_HASH Get from Here. API_ID Get from Here. BOT_TOKEN Telegram

Anonymous 27 Oct 28, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A telegram bot which can show you the status of telegram bot

BotStatus-Ts-Bot An open source telegram Bot Status bot For demo you can check here The status is updated in every 1 hour About Bot This is a Bot stat

Ts_Bots 8 Nov 17, 2022
Benachrichtigungs-Bot für das niedersächische Impfportal / Notification bot for the lower saxony vaccination portal

Ein kleines Wochenend-Projekt von mir. Der Bot überwacht die REST-API des niedersächsischen Impfportals auf freie Impfslots und sendet eine Benachrichtigung mit deinem bevorzugtem Service. Ab da gilt leider: der Schnellste gewinnt. Bitte missbraucht den Bot nicht und verwendet moderate Intervalle.

sibalzer 37 May 11, 2022
Telegram Bot to Filter posts in Bot Inline search

Inline-Filter-Bot A Telegram Bot for filter in Inline Features Unlimited Filters Supports all type of filters Supports Alert Button Using Common Marku

Code X Botz 67 Dec 26, 2022
Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API.

Tg_PHub_Bot Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API. OS Support All linu

TheProgrammerCat 13 Oct 21, 2022