Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run 4 bot in the same time? #466

Closed
donkeykongz opened this issue Dec 24, 2021 · 13 comments
Closed

How to run 4 bot in the same time? #466

donkeykongz opened this issue Dec 24, 2021 · 13 comments

Comments

@donkeykongz
Copy link

How to run 4 bot in the same time, not in vm

@mGranTY
Copy link

mGranTY commented Dec 24, 2021

see here #431 (comment)

@donkeykongz
Copy link
Author

just add

import pygetwindow into index.py? What about the other setup?

@mGranTY
Copy link

mGranTY commented Dec 24, 2021

just add

import pygetwindow into index.py? What about the other setup?

nope, you need to edit the def main() as i said in the other comment.

first import and then edit the main

def main():
    time.sleep(5)
    t = c['time_intervals']
    

    windows = []

    for w in pygetwindow.getWindowsWithTitle('bombcrypto'):
        windows.append({
            "window": w,
            "login" : 0,
            "heroes" : 0,
            "new_map" : 0,
            "check_for_captcha" : 0,
            "refresh_heroes" : 0
            })

    while True:
        now = time.time()

        for last in windows:
            last["window"].activate()
            time.sleep(2)

            if now - last["check_for_captcha"] > addRandomness(t['check_for_captcha'] * 60):
                last["check_for_captcha"] = now
                solveCaptcha(pause)

            if now - last["heroes"] > addRandomness(t['send_heroes_for_work'] * 60):
                last["heroes"] = now
                refreshHeroes()

            if now - last["login"] > addRandomness(t['check_for_login'] * 60):
                sys.stdout.flush()
                last["login"] = now
                login()

            if now - last["new_map"] > t['check_for_new_map_button']:
                last["new_map"] = now

                if clickBtn(images['new-map']):
                    loggerMapClicked()


            if now - last["refresh_heroes"] > addRandomness( t['refresh_heroes_positions'] * 60):
                solveCaptcha(pause)
                last["refresh_heroes"] = now
                refreshHeroesPositions()

            #clickBtn(teasureHunt)
            logger(None, progress_indicator=True)

            sys.stdout.flush()

            time.sleep(1)
            
main()

@donkeykongz
Copy link
Author

just add
import pygetwindow into index.py? What about the other setup?

nope, you need to edit the def main() as i said in the other comment.

first import and then edit the main

def main():
    time.sleep(5)
    t = c['time_intervals']
    

    windows = []

    for w in pygetwindow.getWindowsWithTitle('bombcrypto'):
        windows.append({
            "window": w,
            "login" : 0,
            "heroes" : 0,
            "new_map" : 0,
            "check_for_captcha" : 0,
            "refresh_heroes" : 0
            })

    while True:
        now = time.time()

        for last in windows:
            last["window"].activate()
            time.sleep(2)

            if now - last["check_for_captcha"] > addRandomness(t['check_for_captcha'] * 60):
                last["check_for_captcha"] = now
                solveCaptcha(pause)

            if now - last["heroes"] > addRandomness(t['send_heroes_for_work'] * 60):
                last["heroes"] = now
                refreshHeroes()

            if now - last["login"] > addRandomness(t['check_for_login'] * 60):
                sys.stdout.flush()
                last["login"] = now
                login()

            if now - last["new_map"] > t['check_for_new_map_button']:
                last["new_map"] = now

                if clickBtn(images['new-map']):
                    loggerMapClicked()


            if now - last["refresh_heroes"] > addRandomness( t['refresh_heroes_positions'] * 60):
                solveCaptcha(pause)
                last["refresh_heroes"] = now
                refreshHeroesPositions()

            #clickBtn(teasureHunt)
            logger(None, progress_indicator=True)

            sys.stdout.flush()

            time.sleep(1)
            
main()

What should I edit, I have really no idea

@Yumiizera
Copy link

Eu fiz a edição e não funcionou.

@mGranTY
Copy link

mGranTY commented Dec 24, 2021

just add
import pygetwindow into index.py? What about the other setup?

nope, you need to edit the def main() as i said in the other comment.
first import and then edit the main

def main():
    time.sleep(5)
    t = c['time_intervals']
    

    windows = []

    for w in pygetwindow.getWindowsWithTitle('bombcrypto'):
        windows.append({
            "window": w,
            "login" : 0,
            "heroes" : 0,
            "new_map" : 0,
            "check_for_captcha" : 0,
            "refresh_heroes" : 0
            })

    while True:
        now = time.time()

        for last in windows:
            last["window"].activate()
            time.sleep(2)

            if now - last["check_for_captcha"] > addRandomness(t['check_for_captcha'] * 60):
                last["check_for_captcha"] = now
                solveCaptcha(pause)

            if now - last["heroes"] > addRandomness(t['send_heroes_for_work'] * 60):
                last["heroes"] = now
                refreshHeroes()

            if now - last["login"] > addRandomness(t['check_for_login'] * 60):
                sys.stdout.flush()
                last["login"] = now
                login()

            if now - last["new_map"] > t['check_for_new_map_button']:
                last["new_map"] = now

                if clickBtn(images['new-map']):
                    loggerMapClicked()


            if now - last["refresh_heroes"] > addRandomness( t['refresh_heroes_positions'] * 60):
                solveCaptcha(pause)
                last["refresh_heroes"] = now
                refreshHeroesPositions()

            #clickBtn(teasureHunt)
            logger(None, progress_indicator=True)

            sys.stdout.flush()

            time.sleep(1)
            
main()

What should I edit, I have really no idea

you need to edit index.py, change the part that i pasted :)

add the import at one of the first lines like this:
image

then starting from line 452 paste the code i sent above

image

and open the game using the direct link: https://app.bombcrypto.io/webgl/index.html

add me on discord :0 GranTY#8475

@mGranTY
Copy link

mGranTY commented Dec 24, 2021

Eu fiz a edição e não funcionou.

tem que entrar pelo link do jogo direito maninho https://app.bombcrypto.io/webgl/index.html

se não der certo me chama discord GranTY#8475

@Yumiizera
Copy link

Eu fiz a edição e não funcionou.

tem que entrar pelo link do jogo direito maninho https://app.bombcrypto.io/webgl/index.html

se não der certo me chama discord GranTY#8475

Eu fiz, porém
image

@mGranTY
Copy link

mGranTY commented Dec 24, 2021

Eu fiz a edição e não funcionou.

tem que entrar pelo link do jogo direito maninho https://app.bombcrypto.io/webgl/index.html
se não der certo me chama discord GranTY#8475

Eu fiz, porém image

provavelmente substituiu alguma linha que não era pra ter trocado :(

vou mandar o meu codigo, copia e cola ele por inteiro

(https://pastebin.com/raw/BWWyteSq)

@Yumiizera
Copy link

Eu fiz a edição e não funcionou.

tem que entrar pelo link do jogo direito maninho https://app.bombcrypto.io/webgl/index.html
se não der certo me chama discord GranTY#8475

Eu fiz, porém image

provavelmente substituiu alguma linha que não era pra ter trocado :(

vou mandar o meu codigo, copia e cola ele por inteiro

https://pastebin.com/raw/DStP99kx

Vou te chamar no discord

@mfsousa
Copy link

mfsousa commented Dec 24, 2021

(For english, please translate with google translator...)

Boa tarde, essa solução indicada foi criada por mim há algum tempo. Esta aqui neste fork: https://github.com/mfsousa/bombcrypto-bot

Tem um pull request, que eu acabei por fechar, onde voces podem seguir os comentarios (especialmente os ultimos) e ver como devem fazer para configurar: #169

@Yoyozuya
Copy link

just add
import pygetwindow into index.py? What about the other setup?

nope, you need to edit the def main() as i said in the other comment.

first import and then edit the main

def main():
    time.sleep(5)
    t = c['time_intervals']
    

    windows = []

    for w in pygetwindow.getWindowsWithTitle('bombcrypto'):
        windows.append({
            "window": w,
            "login" : 0,
            "heroes" : 0,
            "new_map" : 0,
            "check_for_captcha" : 0,
            "refresh_heroes" : 0
            })

    while True:
        now = time.time()

        for last in windows:
            last["window"].activate()
            time.sleep(2)

            if now - last["check_for_captcha"] > addRandomness(t['check_for_captcha'] * 60):
                last["check_for_captcha"] = now
                solveCaptcha(pause)

            if now - last["heroes"] > addRandomness(t['send_heroes_for_work'] * 60):
                last["heroes"] = now
                refreshHeroes()

            if now - last["login"] > addRandomness(t['check_for_login'] * 60):
                sys.stdout.flush()
                last["login"] = now
                login()

            if now - last["new_map"] > t['check_for_new_map_button']:
                last["new_map"] = now

                if clickBtn(images['new-map']):
                    loggerMapClicked()


            if now - last["refresh_heroes"] > addRandomness( t['refresh_heroes_positions'] * 60):
                solveCaptcha(pause)
                last["refresh_heroes"] = now
                refreshHeroesPositions()

            #clickBtn(teasureHunt)
            logger(None, progress_indicator=True)

            sys.stdout.flush()

            time.sleep(1)
            
main()

hello my error is
Screenshot_1

@donkeykongz
Copy link
Author

But sometime I will get this error, then the bot will stop work

Screenshot 2021-12-25 at 5 11 32 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants