You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// May 10, 2019
// - Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 dev 1]
// edited by djo5296 '17-12-30
// now fully handled by chrisreyn
// thanks to tommy8208 for testing
// code and suggestions from atereshkov, GitGud2018
SCREEN_SIZE: 480x800
// ---------- Click Areas
var #enableFairies 1
var #enablePremiumCollect 1
var #agree 1
var #decline 0
var #enableTapping 1
// 1 = (default) hit the titans with your sword master
// 0 = disable hits (except on CQ)
var #enableCO 1
var #PHoM 1
var #astralAwakening 1
// #astralAwakening is also affected by #equipStack below
var #equipStack 0
// if set to 1, will skip some heroes when tapping for Astral Awakening
// ---------- Actions ---------- [ Prestige ]
var #enableAutoprestige 1
var #lateRun 0
// if 0, no change to run
// if #lateRun > 0, will resume run at #minutes = #lateRun
// 2nd run onwards (aka after prestige) will NOT adjust time
var #prestigeStartTime 40
// input minimum time in minutes before prestige
// prestige time range is ALWAYS +10 more minutes greater than StartTime to prevent teapot
// ---------- Actions ---------- [ General ]
var #runActionsEveryXSeconds 94
// recommended equal to total SC+ED+DShift duration minus ~6 or 7 seconds
// ^esp if you cant level SC in the first run
// ^so that when runActions runs, SC is done and script can level up SC
// also note that displayed run time is not very accurate with real time
// IMPORTANT go to line 248 and edit the settings there
var #runActionsOnStart 1
// 1 = (default) run actions on script start
// 0 = run actions after given run time above
// ---------- Actions ---------- [ Change Helm ]
var #changeHelmVARIABLE 1
var #gear1 2
var #gear2 1
var #timeChangeHelm 35
// ---------- Actions ---------- [ ClanQuest ]
var #enableClanQuest 0
//clan boss with max possible hits
var #clanQuestRunsPerReadyUp 3
// 1 = (default) attack every ready up once for free
// 2-99 = spend dias for more attacks
// ---------- Actions ---------- [ Heroes ]
var #enableHeroes 1
var #heroIntensity 2
var #topHeroes 0
//level top hero every X seconds, leave at 0 to disable
// ---------- Actions ---------- [ Skills ]
var #enableSkills 1
var #skipHS 0
//press given skills every X seconds
var #intervalHS 0
var #intervalDS 11
var #intervalFS 31
var #intervalHoM 11
var #intervalWC 11
var #intervalSC 6
var #scActiveCheck 1
//used mainly for SC+Mana Siphon procs
//0 = Activate skills every X seconds normally
//1 = Activate skills every X seconds only if SC is active and has 1/4 duration left
// 1/4th duration of SC is usually enough to generate mana from a decent level of Mana Siphon
var #unlocked 0
// ^dont edit unless you know what it's for
//these will be the skill intervals when #lateRun > 0
//time dependent variable changes in :start will still apply, be sure to check :start section
if #lateRun > 0
#intervalHS = 0
#intervalDS = 11
#intervalFS = 31
#intervalHoM = 11
#intervalWC = 11
#intervalSC = 11
if #lateRun > #maxSkillsAtXMinutes
#unlocked = 8
else
#unlocked = 4
endif
endif
//just level each skill once
var #justUnlockSkills 0
// 1 = (default) just unlock
// 0 = level skills much as possible
// will always max HS and SC whether 1 or 0
// see Tune389 Issue 80 if using #justUnlockSkills 1
//only applicable when #justUnlockSkills == 1
// use 0 if you don't like
var #maxSkillsAtXMinutes 34
var #stopLevelSkillMins 3
//run skill check after prestige (0) or now (1)
var #startSkillCheckNow 1
// ---------- Actions ---------- [ Boss ]
//wait for given skill (2-6) then start boss
var #startBossSkill 6
//optional skill which will be clicked on start (not checked)
var #startBossSecondarySkill 2
// ---------- Developer / Expert
var #maxHitCount 9999999
//show current script runtime
var #showCurrentTime 1
//if you wanna sync the script time with real time you can play around with this value
var #timeScaleAddition 20
// ---------- Dec
var #detour 1
var #randomX 0
var #randomY 0
var #color1 0
var #color2 0
var #loopCount 0
var #clanQuestLoopCount 0
var #pressLevelUpLoopCount 0
var #skillCheckStepper 0
var #actionStepper 0
var #levelHeroesStepper 0
var #skillActive 0
var #colorRed 0
var #colorBlue 0
var #colorGreen 0
var #loopDetectionCount 0
var #skillsUnlocked 0
var #tryWithDelay 0
var #checkRunning 0
var #clanQuestCount 0
var #recheckClanQuest 0
var #count 0
var #hitCount 0
var #skillAvailable 0
var #loopBreak 0
set #rAEXS #runActionsEveryXSeconds
set #iHS #intervalHS
set #iDS #intervalDS
set #iFS #intervalFS
set #iHoM #intervalHoM
set #iWC #intervalWC
set #iSC #intervalSC
calc #minz #lateRun * 60000
var #prestigeAfterXMinutes 60
if #prestigeStartTime > 0
rand #prestigeAfterXMinutes #prestigeStartTime #prestigeEndTime
else
set #prestigeStartTime 29
endif
var #maxedOutSkills 0
if #lateRun > 0
#maxedOutSkills = 2
#startSkillCheckNow = 0
endif
var #tournyFirstRunTimer 0
if #tournyFirstRunTimer > 0
#prestigeAfterXMinutes = #tournyFirstRunTimer
#prestigeStartTime = 35
#timeChangeHelm = 30
endif
calc #prestigeEndTime #prestigeStartTime + 10
var #prestigeSlide 0
var #manualMax 0
var #hero 0
var #scAC 0
// ---------- Delays
var #btnDelay 150
var #hitDelay 40
var #hitDelay2 20
var #menuSlideDelay 200
var #menuPopUpDelay 500
var #loadingClanQuestDelay 3000
var #shipDelay 200
var #skillDelay 50
// ---------- Menu Coords
var #menuY 780
var #menuStats 15
var #menuHeroes 120
var #menuCloseY 455
var #menuCloseX 466
var #gearX 395
if #gear1 == 1
set #gear1 590
elseif #gear1 == 2
set #gear1 670
elseif #gear1 == 3
set #gear1 750
endif
if #gear2 == 1
set #gear2 590
elseif #gear2 == 2
set #gear2 670
elseif #gear2 == 3
set #gear2 750
endif
// ---------- Colors
var #colorWhite -65793
var #colorSkillActivated -20993
var #colorInfoNumber 475629
var #colorDia -7970303
var #colorLevelUpAvailable 1338350
var #skillGray 7829367
var #skillBlue -3693762
var #colorBlack 397861
var #colorStatsButton 3695603
var #colorGray 2695200
// ---------- TimeSets
var #timeLastActionRun 0
var #timeDiff 0
var #time 0
var #seconds 0
var #secondsTotal 0
var #minutes 0
var #lastPressHS 0
var #lastPressDS 0
var #lastPressFS 0
var #lastPressHoM 0
var #lastPressSC 0
var #lastPressWC 0
var #lastTopHeroes 0
var #resultManaPool 0
var #resultCheckBoss 0
var #resultUpdateTime 0
var #resultClanQuest 0
// ---------- MAIN
:start
#loopCount = #loopCount + 1
#resultManaPool = #loopCount % 901
#resultCheckBoss = #loopCount % 302
#resultClanQuest = #loopCount % 101
#resultUpdateTime = #loopCount % 75
#timeDiff = #secondsTotal - #timeLastActionRun
//add general execution delays
#time = #time + #timeScaleAddition
if #resultClanQuest == 0 and #enableClanQuest == 1
goto :checkClanQuest
endif
if #resultUpdateTime == 0
#seconds = (#time/1000)%60
#secondsTotal = #time/1000
#minutes = (#time/1000)/60
if #enableSkills == 1
// May 10, 2019
// - Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 dev 1]
// edited by djo5296 '17-12-30
// now fully handled by chrisreyn
// thanks to tommy8208 for testing
// code and suggestions from atereshkov, GitGud2018
SCREEN_SIZE: 480x800
// ---------- Click Areas
var #enableFairies 1
var #enablePremiumCollect 1
var #agree 1
var #decline 0
var #enableTapping 1
// 1 = (default) hit the titans with your sword master
// 0 = disable hits (except on CQ)
var #enableCO 1
var #PHoM 1
var #astralAwakening 1
// #astralAwakening is also affected by #equipStack below
var #equipStack 0
// if set to 1, will skip some heroes when tapping for Astral Awakening
// ---------- Actions ---------- [ Prestige ]
var #enableAutoprestige 1
var #lateRun 0
// if 0, no change to run
// if #lateRun > 0, will resume run at #minutes = #lateRun
// 2nd run onwards (aka after prestige) will NOT adjust time
var #prestigeStartTime 40
// input minimum time in minutes before prestige
// prestige time range is ALWAYS +10 more minutes greater than StartTime to prevent teapot
// ---------- Actions ---------- [ General ]
var #runActionsEveryXSeconds 94
// recommended equal to total SC+ED+DShift duration minus ~6 or 7 seconds
// ^esp if you cant level SC in the first run
// ^so that when runActions runs, SC is done and script can level up SC
// also note that displayed run time is not very accurate with real time
// IMPORTANT go to line 248 and edit the settings there
var #runActionsOnStart 1
// 1 = (default) run actions on script start
// 0 = run actions after given run time above
// ---------- Actions ---------- [ Change Helm ]
var #changeHelmVARIABLE 1
var #gear1 2
var #gear2 1
var #timeChangeHelm 35
// ---------- Actions ---------- [ ClanQuest ]
var #enableClanQuest 0
//clan boss with max possible hits
var #clanQuestRunsPerReadyUp 3
// 1 = (default) attack every ready up once for free
// 2-99 = spend dias for more attacks
// ---------- Actions ---------- [ Heroes ]
var #enableHeroes 1
var #heroIntensity 2
var #topHeroes 0
//level top hero every X seconds, leave at 0 to disable
// ---------- Actions ---------- [ Skills ]
var #enableSkills 1
var #skipHS 0
var #fullManaSkill 6
// 1 = HS
// 2 = DS
// 3 = HoM
// 4 = FS
// 5 = WC
// 6 = SC
//press given skills every X seconds
var #intervalHS 0
var #intervalDS 11
var #intervalFS 31
var #intervalHoM 11
var #intervalWC 11
var #intervalSC 6
var #scActiveCheck 1
//used mainly for SC+Mana Siphon procs
//0 = Activate skills every X seconds normally
//1 = Activate skills every X seconds only if SC is active and has 1/4 duration left
// 1/4th duration of SC is usually enough to generate mana from a decent level of Mana Siphon
var #unlocked 0
// ^dont edit unless you know what it's for
//these will be the skill intervals when #lateRun > 0
//time dependent variable changes in :start will still apply, be sure to check :start section
if #lateRun > 0
#intervalHS = 0
#intervalDS = 11
#intervalFS = 31
#intervalHoM = 11
#intervalWC = 11
#intervalSC = 11
if #lateRun > #maxSkillsAtXMinutes
#unlocked = 8
else
#unlocked = 4
endif
endif
//just level each skill once
var #justUnlockSkills 0
// 1 = (default) just unlock
// 0 = level skills much as possible
// will always max HS and SC whether 1 or 0
// see Tune389 Issue 80 if using #justUnlockSkills 1
//only applicable when #justUnlockSkills == 1
// use 0 if you don't like
var #maxSkillsAtXMinutes 34
var #stopLevelSkillMins 3
//run skill check after prestige (0) or now (1)
var #startSkillCheckNow 1
// ---------- Actions ---------- [ Boss ]
//wait for given skill (2-6) then start boss
var #startBossSkill 6
//optional skill which will be clicked on start (not checked)
var #startBossSecondarySkill 2
// ---------- Developer / Expert
var #maxHitCount 9999999
//show current script runtime
var #showCurrentTime 1
//if you wanna sync the script time with real time you can play around with this value
var #timeScaleAddition 20
// ---------- Dec
var #detour 1
var #randomX 0
var #randomY 0
var #color1 0
var #color2 0
var #loopCount 0
var #clanQuestLoopCount 0
var #pressLevelUpLoopCount 0
var #skillCheckStepper 0
var #actionStepper 0
var #levelHeroesStepper 0
var #skillActive 0
var #colorRed 0
var #colorBlue 0
var #colorGreen 0
var #loopDetectionCount 0
var #skillsUnlocked 0
var #tryWithDelay 0
var #checkRunning 0
var #clanQuestCount 0
var #recheckClanQuest 0
var #count 0
var #hitCount 0
var #skillAvailable 0
var #loopBreak 0
set #rAEXS #runActionsEveryXSeconds
set #iHS #intervalHS
set #iDS #intervalDS
set #iFS #intervalFS
set #iHoM #intervalHoM
set #iWC #intervalWC
set #iSC #intervalSC
calc #minz #lateRun * 60000
var #prestigeAfterXMinutes 60
if #prestigeStartTime > 0
rand #prestigeAfterXMinutes #prestigeStartTime #prestigeEndTime
else
set #prestigeStartTime 29
endif
var #maxedOutSkills 0
if #lateRun > 0
#maxedOutSkills = 2
#startSkillCheckNow = 0
endif
var #tournyFirstRunTimer 0
if #tournyFirstRunTimer > 0
#prestigeAfterXMinutes = #tournyFirstRunTimer
#prestigeStartTime = 35
#timeChangeHelm = 30
endif
calc #prestigeEndTime #prestigeStartTime + 10
var #prestigeSlide 0
var #manualMax 0
var #hero 0
var #scAC 0
// ---------- Delays
var #btnDelay 150
var #hitDelay 40
var #hitDelay2 20
var #menuSlideDelay 200
var #menuPopUpDelay 500
var #loadingClanQuestDelay 3000
var #shipDelay 200
var #skillDelay 50
// ---------- Menu Coords
var #menuY 780
var #menuStats 15
var #menuHeroes 120
var #menuCloseY 455
var #menuCloseX 466
var #gearX 395
if #gear1 == 1
set #gear1 590
elseif #gear1 == 2
set #gear1 670
elseif #gear1 == 3
set #gear1 750
endif
if #gear2 == 1
set #gear2 590
elseif #gear2 == 2
set #gear2 670
elseif #gear2 == 3
set #gear2 750
endif
// ---------- Colors
var #colorWhite -65793
var #colorSkillActivated -20993
var #colorInfoNumber 475629
var #colorDia -7970303
var #colorLevelUpAvailable 1338350
var #skillGray 7829367
var #skillBlue -3693762
var #colorBlack 397861
var #colorStatsButton 3695603
var #colorGray 2695200
// ---------- TimeSets
var #timeLastActionRun 0
var #timeDiff 0
var #time 0
var #seconds 0
var #secondsTotal 0
var #minutes 0
var #lastPressHS 0
var #lastPressDS 0
var #lastPressFS 0
var #lastPressHoM 0
var #lastPressSC 0
var #lastPressWC 0
var #lastTopHeroes 0
var #resultManaPool 0
var #resultCheckBoss 0
var #resultUpdateTime 0
var #resultClanQuest 0
// ---------- MAIN
:start
#loopCount = #loopCount + 1
#resultManaPool = #loopCount % 901
#resultCheckBoss = #loopCount % 302
#resultClanQuest = #loopCount % 101
#resultUpdateTime = #loopCount % 75
#timeDiff = #secondsTotal - #timeLastActionRun
//time dynamic skill interval clicks
if #minutes > 10
#runActionsEveryXSeconds = 50
endif
endif
endif
:end
:afterPrestige
#detour = 1
#count = 0
#skillsUnlocked = 0
#time = 0
#seconds = 0
#secondsTotal = 0
#minutes = 0
#unlocked = 0
#lateRun = 0
#runActionsEveryXSeconds = #rAEXS
#maxedOutSkills = 0
#prestigeSlide = 0
#startSkillCheckNow = 1
goto :switchHelm2
:switchHelm2
if #changeHelmVARIABLE == 2
sleep 100
//open equipment tab
sleep #btnDelay
touchDown 0 200 780
sleep #btnDelay
touchUp 0
sleep 20
//wait for menu open
sleep #menuSlideDelay
//check if opened right
sleep #menuSlideDelay
getRGB #colorRed #colorGreen #colorBlue 330 480
if #colorRed != 84 or #colorGreen != 76 or #colorBlue != 76 or #loopBreak < 5
sleep 300
#loopBreak = #loopBreak + 1
goto :switchHelm2
endif
//open helm tab
#loopBreak = 0
touchPress 0 130 545
sleep #btnDelay
touchPress 0 130 545
sleep #btnDelay
touchPress 0 130 545
sleep #btnDelay
touchPress 0 130 545
sleep #btnDelay
sleep 500
//equip 2nd gear
touchPress 0 #gearX #gear1
sleep #btnDelay
touchPress 0 #gearX #gear1
sleep #btnDelay
touchPress 0 #gearX #gear1
sleep #btnDelay
touchPress 0 #gearX #gear1
sleep #btnDelay
//close equipment
sleep #btnDelay
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
sleep #menuSlideDelay
#changeHelmVARIABLE = 1
endif
goto :init
// ---------- INIT
:init
if #enablePremiumCollect == 1
if #agree == 1
touchDown 0 350 630
sleep 50
touchUp 0
sleep 50
#time = #time + 100
endif
if #decline == 1
touchDown 0 195 630
sleep 50
touchUp 0
sleep 50
#time = #time + 100
endif
endif
goto :start
:loopDetected
toast loop detected - repeating ...
#loopCount = 0
#loopDetectionCount = 0
goto :start
// ---------- PRESS SKILLS
:pressSkills
//click "Fight Boss"
getColor #color1 372 24
if #color1 == 1076975
toast FightBoss1
touchPress 0 390 36
sleep 40
touchUp
sleep 40
#time = #time + 80
goto :pressSkills
endif
goto :pressSkillsB
:pressSkillsB
#timeDiff = #secondsTotal - #lastPressDS
if #timeDiff >= #intervalDS and #intervalDS > 0
if #scActiveCheck == 1
if #scAC == 0
#scAC = 1
getRGB #colorRed #colorGreen #colorBlue 423 688
#time = #time + 100
endif
goto :pressSkillsC
:pressSkillsC
#timeDiff = #secondsTotal - #lastPressFS
if #timeDiff >= #intervalFS and #intervalFS > 0
if #scActiveCheck == 1
if #scAC == 0
#scAC = 1
getRGB #colorRed #colorGreen #colorBlue 423 688
#time = #time + 100
endif
goto :pressSkillsD
:pressSkillsD
if #topHeroes > 0
#timeDiff = #secondsTotal - #lastTopHeroes
if #timeDiff >= #topHeroes
#lastTopHeroes = #secondsTotal
sleep 100
//open stats
sleep #btnDelay
#time = #time + #btnDelay + 100
touchDown 0 #menuHeroes #menuY
sleep #btnDelay
touchUp 0
sleep 1000
#time = #time + 1000 + #btnDelay
//wait for slide
sleep #menuSlideDelay
#time = #time + #menuSlideDelay
//slide top
touchDown 0 280 650
sleep 200
touchMove 0 280 600
sleep 50
touchMove 0 280 700
sleep 50
touchMove 0 280 750
sleep 50
touchMove 0 280 780
sleep 50
touchUp 0
sleep 750
sleep #btnDelay
#time = #time + #btnDelay + 1150
//level top heroes
touchPress 0 410 580
sleep #btnDelay
touchPress 0 410 650
sleep #btnDelay
touchPress 0 410 730
sleep #btnDelay
#time = #time + #btnDelay * 3
//close stats
sleep #btnDelay
#time = #time + #btnDelay
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
sleep #menuSlideDelay
#time = #time + #menuSlideDelay
endif
endif
goto :start
// ---------- CHECK MANA
:checkMana
getColor #color1 208 638
if #color1 == #colorWhite
goto :startSkill
endif
goto :start
:startSkill
if #fullManaSkill == 1
touchPress 0 40 710
elseif #fullManaSkill == 2
touchPress 0 120 710
elseif #fullManaSkill == 3
touchPress 0 200 710
elseif #fullManaSkill == 4
touchPress 0 280 710
elseif #fullManaSkill == 5
touchPress 0 360 710
elseif #fullManaSkill == 6
touchPress 0 430 710
endif
#time = #time + 150
goto :start
:runActions
#timeLastActionRun = #secondsTotal
#actionStepper = #actionStepper + 1
goto :runActions
// ---------- CHECK PRESTIGE
:checkPrestige
sleep 4000
//#time = #time + 4000
goto :checkPrestigeB
:checkPrestigeB
if #prestigeSlide < 7
//slide down
touchDown 1 280 740
sleep 200
touchMove 1 280 710
sleep 50
touchMove 1 280 500
sleep 50
touchMove 1 280 410
sleep 50
touchMove 1 280 400
sleep 50
touchUp 1
sleep 300
//#time = #time + 700
#prestigeSlide = #prestigeSlide + 1
goto :checkPrestigeB
endif
goto :start
// ---------- CHECK CLAN QUEST
:checkClanQuest
sleep 300
goto :start
:checkClanQuestReady
if #agree == 1
sleep 3500
//getRGB #colorRed #colorGreen #colorBlue 428 639
//if #colorRed == -216 or #colorGreen == -96
touchDown 0 300 630
sleep 50
touchUp 0
sleep 50
touchDown 0 300 630
sleep 50
touchUp 0
sleep 50
touchDown 0 300 630
sleep 50
touchUp 0
sleep 1100
//endif
endif
goto :clanQuestClose
:clanQuestCheckDias
getColor #color1 40 215
:clanQuestHit
if #color1 == -28929 and #clanQuestLoopCount == 0
//add quest
#clanQuestCount = #clanQuestCount + 1
endif
:clanQuestClose
getColor #color1 65 788
if #color1 == #colorStatsButton
goto :clanQuestCloseCheck
else
touchDown 0 415 45
sleep 35
touchUp 0
sleep 200
touchDown 0 420 210
sleep 35
touchUp 0
sleep 200
goto :clanQuestClose
endif
:clanQuestCloseCheck
if #recheckClanQuest == 1 and #clanQuestCount < #clanQuestRunsPerReadyUp
goto :checkClanQuestReady
else
#clanQuestCount = 0
goto :start
endif
// ---------- LEVEL SKILLS
:openSwordMasterTab
if #count < 2
if #lateRun < 1 and #count < 2
if #count == 0
sleep 300
//open sword master tab
sleep #btnDelay
goto :closeMenu
:checkSkills
if #startSkillCheckNow == 0
goto :checkSkillsFinish
endif
goto :checkSkillsB
:checkSkillsB
#manualMax = #manualMax + 1
:checkSkillsC
if #skillCheckStepper == 1
touchPress 0 405 680
sleep 34
touchPress 0 405 680
touchPress 0 405 680
touchPress 0 405 680
sleep 45
touchPress 0 405 680
sleep 38
#time = #time + 115
goto :maxHS
elseif #skillCheckStepper == 6
goto :maxSkill
elseif #skillCheckStepper < 6
goto :checkSkillsUnlock
endif
goto :checkSkillsFinish
:lvlSkill
if #minutes >= #maxSkillsAtXMinutes and #maxSkillsAtXMinutes > 0 and #unlocked < 8 and #skillCheckStepper <= 5
touchPress 0 459 755
sleep 300
#time = #time + 300
#unlocked = #unlocked + 1
endif
goto :endLvlSkill
:endLvlSkill
if #skillCheckStepper == 6 and #maxedOutSkills == 0
#maxedOutSkills = #maxedOutSkills + 1
//slide
touchDown 1 280 750
sleep 200
touchMove 1 280 730
sleep 50
touchMove 1 280 660
sleep 50
touchMove 1 280 655
sleep 50
touchMove 1 280 649
sleep 200
touchUp 1
sleep 200
#time = #time + 750
goto :maxSkill
elseif #skillCheckStepper == 6
goto :checkSkills
else
goto :checkSkillsSlideDown
endif
:maxHS
#loopBreak = #loopBreak + 1
if #loopBreak > 10
#loopBreak = 0
//slide back
touchDown 1 280 650
sleep 200
touchMove 1 280 600
sleep 50
touchMove 1 280 700
sleep 50
touchMove 1 280 750
sleep 50
touchMove 1 280 780
touchUp 1
//slide back
touchDown 1 280 650
sleep 200
touchMove 1 280 600
sleep 50
touchMove 1 280 700
sleep 50
touchMove 1 280 750
sleep 50
touchMove 1 280 780
touchUp 1
#time = #time + 350 * 2
goto :checkSkills
endif
goto :maxHS
:maxSkill
sleep 70
#time = #time + 70
goto :maxSkill
:checkSkillsUnlock
sleep 200
#time = #time + 200
goto :checkSkillsSlideDown
:checkSkillsSlideDown
//slide
touchDown 1 280 750
sleep 200
touchMove 1 280 725
sleep 50
touchMove 1 280 660
sleep 50
touchMove 1 280 655
sleep 50
touchMove 1 280 649
sleep 200
touchUp 1
sleep 200
#time = #time + 750
goto :checkSkills
:checkSkillsFinish
#skillCheckStepper = 0
#maxedOutSkills = #maxedOutSkills + 1
goto :closeMenu
// ---------- LEVEL HEROES
:levelHeroes
goto :levelHeroes2
:levelHeroes2
//open menu
sleep #btnDelay
goto :levelHeroes2
:scrollTop
#loopDetectionCount = #loopDetectionCount + 1
if #loopDetectionCount > 20
#loopDetectionCount = 0
toast scrollTop loop
//goto :loopDetected
goto :lvlTopHero
endif
goto :scrollTop
:lvlTopHero
touchPress 0 466 570
sleep #btnDelay
touchPress 0 466 570
sleep #btnDelay
touchPress 0 466 570
sleep #btnDelay
touchPress 0 460 670
sleep #btnDelay
touchPress 0 460 670
sleep #btnDelay
touchPress 0 460 670
sleep #btnDelay
touchPress 0 460 670
sleep #btnDelay
#time = #time + #btnDelay * 7
goto :levelHeroesScrollDown
:levelHeroesScrollDown
#loopDetectionCount = #loopDetectionCount + 1
if #loopDetectionCount > 29
toast levelHeroesScrollDown loop
goto :loopDetected
endif
goto :levelHeroesScrollDown
:lvlBottomHero
// for legacy coordinates:
// 1 = Finn (Ranged) 466 570
// 2 = Nohni (Melee) 466 645
// 3 = Damon (Mage) 466 720
goto :levelHeroesPressLevelUp
:levelHeroesSlideUpCollection
#loopDetectionCount = #loopDetectionCount + 1
if #loopDetectionCount > 34
#loopDetectionCount = 0
toast levelHeroesSlideUpCollection loop
goto :closeMenu
endif
goto :levelHeroesPressLevelUp
:levelHeroesPressLevelUp
#pressLevelUpLoopCount = #pressLevelUpLoopCount + 1
goto :levelHeroesSlideUpCollection
:closeMenu
//close stats
sleep #btnDelay
#time = #time + #btnDelay
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
sleep #menuSlideDelay
#time = #time + #menuSlideDelay
if #detour == 1
sleep 400
#lastPressHS = -200
#lastPressDS = -200
#lastPressFS = -200
#lastPressHoM = -200
#lastPressSC = -200
#lastPressWC = -200
goto :pressSkills
endif
goto :switchHelm1
:switchHelm1
if #changeHelmVARIABLE == 2
toast done changing
else
toast change helm now??
endif
if #minutes >= #timeChangeHelm
sleep 100
toast checking minutes
goto :switchHelm15
endif
goto :runActions
:switchHelm15
if #changeHelmVARIABLE == 1
sleep #btnDelay
touchDown 0 200 780
sleep #btnDelay
touchUp 0
sleep 900
getRGB #colorRed #colorGreen #colorBlue 330 480
if #colorRed != 84 or #colorGreen != 76 or #colorBlue != 76 or #loopBreak < 5
sleep 300
#loopBreak = #loopBreak + 1
goto :switchHelm15
endif
#loopBreak = 0
touchPress 0 130 545
sleep #btnDelay
touchPress 0 130 545
sleep #btnDelay
touchPress 0 130 545
sleep #btnDelay
touchPress 0 130 545
sleep #btnDelay
sleep 500
touchPress 0 #gearX #gear2
sleep #btnDelay
touchPress 0 #gearX #gear2
sleep #btnDelay
touchPress 0 #gearX #gear2
sleep #btnDelay
touchPress 0 #gearX #gear2
sleep #btnDelay
if #changeHelmVARIABLE == 1 and #minutes > 23
#changeHelmVARIABLE = 2
toast done changing
endif
sleep #btnDelay
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
touchPress 0 #menuCloseX #menuCloseY
sleep #menuSlideDelay
endif
goto :runActions
// ---------- CHECK BOSS
:checkBoss
getColor #color1 139 85
goto :pressSkills
:startBossWithSkills
getColor #color1 372 24
if #color1 == 1204718
toast FightBoss3
touchPress 0 390 36
sleep 300
#time = #time + 300
goto :startBossWithSkills
endif
:startBossWithSecondarySkill
if #startBossSecondarySkill == 2
touchPress 0 120 710
elseif #startBossSecondarySkill == 3
touchPress 0 200 710
elseif #startBossSecondarySkill == 4
touchPress 0 280 710
elseif #startBossSecondarySkill == 5
touchPress 0 360 710
elseif #startBossSecondarySkill == 6
touchPress 0 430 710
endif
goto :pressSkills
// ---------- RANDOM ATTACK
:randomTouch
goto :randomTouchB
:randomTouchB
if #astralAwakening == 1
if #equipmentStacking == 1
if #hero == 11 or #hero == 19
#hero = #hero + 1
endif
endif
goto :randomTouchC
:randomTouchC
if #astralAwakening == 1
if #equipmentStacking == 1
if #hero == 22
#hero = #hero + 1
endif
endif
goto :randomTouchD
:randomTouchD
if #astralAwakening == 1
if #hero == 31
//Miki
touchDown 0 425 225
touchUp 0
elseif #hero == 32
//Mina
touchDown 0 465 120
touchUp 0
elseif #hero == 33
//Yzafa
touchDown 0 385 135
touchUp 0
elseif #hero == 34
//Zolom
touchDown 0 60 170
touchUp 0
elseif #hero == 35
//Finn
touchDown 0 465 125
touchUp 0
elseif #hero == 36
//Nohni
touchDown 0 120 145
touchUp 0
elseif #hero == 37
//Damon
touchDown 0 420 80
touchUp 0
endif
goto :start
:extra
#hitCount = 0
if #PHoM == 1
touchDown 0 270 370
sleep 12
touchUp 0
sleep 14
touchPress 0 270 370
sleep 2
touchUp
sleep 3
touchPress 0 270 370
sleep 16
touchUp 0
sleep 18
touchDown 0 270 370
sleep 10
touchUp 0
sleep 18
#time = #time + 60
endif
goto :randomTouch
The text was updated successfully, but these errors were encountered: