Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
quest click auto
Browse files Browse the repository at this point in the history
  • Loading branch information
HoloKi committed Jul 30, 2021
1 parent a647f95 commit dc7db30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ClassBot/DungeonAuto.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def dungeonrepeat(run, difficult):
else:
if difficult == norm:
difficulty = classe.bit(r"image\raid\normal.png", 0.6)

quest = classe.bit(r"image\quest.png",0.5)
dungeon = classe.bit(r"image\dungeon\dungeon.png", 0.5)
accetta = classe.bit(r"image\accept.png", 0.5)
si = classe.bit(r"image\yes.png", 0.5)
Expand All @@ -49,7 +49,6 @@ def dungeonrepeat(run, difficult):
colored(" difficult = ", 'green', attrs=['bold']), colored(difficult, 'white'))
print(" ")
logging.debug(f"run = {run}, difficoltà = {difficult}")
time.sleep(3)
# caso in cui le run sono minori di 0, ritorna 0
if int(run) <= 0:
logging.debug("run < 0")
Expand All @@ -61,8 +60,14 @@ def dungeonrepeat(run, difficult):
logging.debug("run=0")
return 0
else:
error = quest.bottone()
if error == 0:
cprint(errore)
return 0
error = dungeon.bottone()
if error == 0:
cprint("Probably something gone wrong with screen")
cprint("Please check the wiki or discord server!")
cprint(errore)
return 0
error = difficulty.bottone()
Expand Down

0 comments on commit dc7db30

Please sign in to comment.