Replies: 2 comments 2 replies
-
|
The only problem with this solution is a false positive... but that should not happen... Can you do a PR to add this line, we will see if @Zebiano is ok with it? 😉 Maybe use this since if testColorOR -d "$DEFAULT_DELTA" 540 430 893445; then eventHoe=true; fi |
Beta Was this translation helpful? Give feedback.
-
|
Because now we have 2 events at the same time (Heroes of Esperia and Treasure Scramble) detecting just HoE is no longer enough. arenaOfHeroes() {
if [ "$DEBUG" -ge 4 ]; then printInColor "DEBUG" "arenaOfHeroes" >&2; fi
inputTapSleep 740 1050 3
- if [ "$eventHoe" = false ] && [ "$eventTs" = false ]; then
- inputTapSleep 550 450 3
- else
- inputTapSleep 550 900 3
+ if testColorOR -d 5 560 310 b4bcc4; then inputTapSleep 560 310 3
+ elif testColorOR -d 5 560 800 b4bcc4; then inputTapSleep 560 800 3
+ else inputTapSleep 560 1290 3
fiAlso, to get Legends' Challenger Tournament tokens I have something similar (in this case the click is in the rectangle just bellow AoH): legendsTournament() {
[..]
## For testing only! Keep as comment ##
# inputTapSleep 740 1050 1
## End of testing ##
- if [ "$eventHoe" = false ] && [ "$eventTs" = false ]; then
- inputTapSleep 550 900 # Legend's Challenger Tournament
- else
- inputTapSleep 550 1450 # Legend's Challenger Tournament
+ if testColorOR -d 5 560 310 b4bcc4; then inputTapSleep 560 710 3
+ elif testColorOR -d 5 560 800 b4bcc4; then inputTapSleep 560 1200 3
+ else inputTapSleep 560 1690 3
fi |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you want for the script to just autodetect HOE just add the marked line in the afk-daily.sh script:

or as text:
if testColorOR -d 3 540 430 893445; then eventHoe=true; fiafter line 797 in afk-daily.sh
keep in mind that on any automated script updates you will lose that change.
Beta Was this translation helpful? Give feedback.
All reactions