Last active
October 14, 2018 12:42
-
-
Save nopjia/26c9b60dee376d2e650dcfb0584af0d2 to your computer and use it in GitHub Desktop.
ADB bash script for auto-clicking through Magikarp Jump Elite League 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Magikarp Jump | |
# Expert League 3 Automated Clicker | |
# | |
# Notes: | |
# | |
# All tap positions are hardcoded to my OnePlus3. | |
# Please re-adjust positions if phone resolution is different. | |
# | |
# Any league-triggered event will interrupt this script. | |
# It is best that level is maxed out before starting the league. | |
# The only event left that will interrupt is trainer level up. | |
# | |
# If script is interrupted, please terminate the script. | |
# Continue by copy-pasting the rest of the "doLeagueAt" lines | |
XM=540 | |
XL=316 | |
XR=758 | |
YB=1765 # bottom | |
YD=1310 # dialog | |
YD2=1445 # dialog lower | |
function doClick() { | |
echo -e "click\t"$1","$2"\t"$3 | |
input tap $1 $2 | |
} | |
function repeatClick() { | |
local COUNTER=1 | |
while [ $COUNTER -lt $1+1 ]; do | |
doClick $2 $3 $COUNTER"/"$1 | |
let COUNTER=COUNTER+1 | |
done | |
} | |
function repeatRoutine() { | |
local COUNTER=1 | |
while [ $COUNTER -lt $1+1 ]; do | |
echo Iteration $COUNTER"/"$1... | |
let COUNTER=COUNTER+1 | |
$2 | |
done | |
} | |
function doLeagueAt() { | |
doClick $1 $2 "battle location" | |
sleep 0.2 | |
doClick $XR $YD2 "Battle!" | |
sleep 0.2 | |
doClick $XR $YD "Skip" | |
sleep 4 | |
doClick $XR $YD2 "OK Results" | |
sleep 4 | |
doClick $XR $YB "OK exp" | |
sleep 2 | |
doClick $XR $YD "OK money" | |
sleep 9 | |
doClick $XR $YD "OK Congratulations!" | |
sleep 0.5 | |
} | |
function doLeague15() { | |
doClick 725 480 "battle 15 location" | |
sleep 0.2 | |
doClick $XR $YD2 "Battle!" | |
sleep 12 | |
doClick 905 1234 "click little skip" | |
sleep 1 | |
doClick $XR $YB "Jump!" | |
sleep 24 | |
doClick $XR $YD2 "OK Results" | |
sleep 18 | |
doClick $XR $YD "tap to continue" | |
sleep 5 | |
doClick $XR $YD "tap to continue" | |
sleep 2 | |
doClick $XR $YD "OK money" | |
sleep 2 | |
doClick $XR $YD "OK diamonds" | |
sleep 2 | |
doClick $XR $YD "OK candy" | |
sleep 10 | |
doClick $XR $YD "tap to continue retirement" | |
sleep 2 | |
doClick $XR $YD "tap to continue retirement" | |
sleep 2 | |
doClick 753 737 "Continue" | |
} | |
function doNewFish() { | |
sleep 5 | |
repeatClick 60 $XR $YD | |
doClick 472 836 "select rod" | |
sleep 0.5 | |
doClick $XR $YD "yes" | |
sleep 10 | |
repeatClick 40 $XR $YD | |
doClick $XR $YB "select karp" | |
sleep 1 | |
repeatClick 30 $XR $YD | |
} | |
function doFeedFish() { | |
input swipe 1000 960 100 960; | |
sleep 17 | |
doClick $XM $YD "dialog"; | |
sleep 13 | |
doClick $XM $YD "dialog"; | |
sleep 13 | |
doClick $XM $YD "go to league"; | |
sleep 4 | |
} | |
function doLeagues { | |
doLeagueAt 278 1240 | |
doLeagueAt 540 1240 | |
doLeagueAt 540 860 | |
doLeagueAt 400 860 | |
doLeagueAt 385 480 # 5 | |
doLeagueAt 540 480 | |
doLeagueAt 540 480 | |
doLeagueAt 540 480 | |
doLeagueAt 540 860 | |
doLeagueAt 540 1240 # 10 | |
doLeagueAt 540 1240 | |
doLeagueAt 725 1240 | |
doLeagueAt 540 860 | |
doLeagueAt 725 860 | |
doLeague15 | |
doNewFish | |
} | |
function doAll { | |
doFeedFish | |
doLeagues | |
sleep 15 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment