Hey, been successfully using the advanced script with my HS build, however i'd love to change my build to SC, but i can't seem to figure out how to stop maxing skills. If anyone would be so kind as to edit my script to level up skills once (Dont level HS at all) or even better make it so skills would be level'ed X amount of times.
`DEVICE: SM-N935F 5.1.1
SCREEN_SIZE: 480x800 (softkey)
:start
// - Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 dev 1]
// edited by djo5296 '17-12-30
// chrisreyn SC Mana Siphon July 19 2018
// 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 18
// 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
var #runActionsOnStart 1
// 1 = (default) run actions on script start
// 0 = run actions after given run time above
// ---------- Actions ---------- [ ClanQuest ]
var #enableClanQuest 1
//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 4
var #intervalDS 11
var #intervalFS 31
var #intervalHoM 11
var #intervalWC 11
var #intervalSC 10
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
//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 5
//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 #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 180
if #prestigeStartTime > 0
calc #prestigeEndTime #prestigeStartTime + 10
rand #prestigeAfterXMinutes #prestigeStartTime #prestigeEndTime
else
set #prestigeStartTime 45
calc #prestigeEndTime #prestigeStartTime + 10
endif
var #maxedOutSkills 0
if #lateRun > 0
maxedOutSkills = 2
#startSkillCheckNow = 0
endif
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
// ---------- 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
//since skills should have been maxed, it wont go to openSwordMasterTab after
if #unlocked >= 8 or #maxedOutSkills > 1
#actionStepper = #actionStepper + 1
endif
if #justUnlockSkills == 0 and #minutes >= #stopLevelSkillMins
#actionStepper = #actionStepper + 1
endif
//lvl up only nearby heroes at this time onwards
//edit as you see fit
if #minutes >= 5 or #lateRun > 0
//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
touchUp 1
sleep 300
#time = #time + 650
goto :levelHeroesPressLevelUp
endif
Hey, been successfully using the advanced script with my HS build, however i'd love to change my build to SC, but i can't seem to figure out how to stop maxing skills. If anyone would be so kind as to edit my script to level up skills once (Dont level HS at all) or even better make it so skills would be level'ed X amount of times. `DEVICE: SM-N935F 5.1.1 SCREEN_SIZE: 480x800 (softkey)
:start // - Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 dev 1] // edited by djo5296 '17-12-30 // chrisreyn SC Mana Siphon July 19 2018 // 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 18 // 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
var #runActionsOnStart 1 // 1 = (default) run actions on script start // 0 = run actions after given run time above // ---------- Actions ---------- [ ClanQuest ] var #enableClanQuest 1
//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 4 var #intervalDS 11 var #intervalFS 31 var #intervalHoM 11 var #intervalWC 11 var #intervalSC 10
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 = 4
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 5
//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 #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 180 if #prestigeStartTime > 0 calc #prestigeEndTime #prestigeStartTime + 10 rand #prestigeAfterXMinutes #prestigeStartTime #prestigeEndTime else set #prestigeStartTime 45 calc #prestigeEndTime #prestigeStartTime + 10 endif var #maxedOutSkills 0 if #lateRun > 0
maxedOutSkills = 2
endif 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 // ---------- 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
//time dynamic skill interval clicks if #minutes > 10
runActionsEveryXSeconds = 50
:end
:afterPrestige
count = 0
goto :init // ---------- INIT
:init if #enablePremiumCollect == 1 if #agree == 1 touchDown 0 350 630 sleep 50 touchUp 0 sleep 50
time = #time + 100
goto :start
:loopDetected toast loop detected - repeating ...
loopCount = 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 :pressSkillsB
:pressSkillsB
timeDiff = #secondsTotal - #lastPressDS
goto :pressSkillsC
:pressSkillsC
timeDiff = #secondsTotal - #lastPressFS
goto :pressSkillsD
:pressSkillsD if #topHeroes > 0
timeDiff = #secondsTotal - #lastTopHeroes
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
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 :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
: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
// ---------- LEVEL SKILLS :openSwordMasterTab //open sword master tab sleep #btnDelay touchDown 0 #menuStats #menuY sleep #btnDelay touchUp 0
time = #time + #btnDelay * 2
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 :checkSkillsFinish
:lvlSkill if #minutes >= #maxSkillsAtXMinutes and #maxSkillsAtXMinutes > 0 and #unlocked < 8 and #skillCheckStepper <= 5 touchPress 0 459 755 sleep 300
time = #time + 300
goto :endLvlSkill
:endLvlSkill if #skillCheckStepper == 6 and #maxedOutSkills == 0
maxedOutSkills = #maxedOutSkills + 1
:maxHS
loopBreak = #loopBreak + 1
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
goto :closeMenu // ---------- LEVEL HEROES :levelHeroes if #count < 2 if #lateRun < 1 and #count < 2 if #count == 0 sleep 100 //open stats sleep #btnDelay
time = #time + #btnDelay + 100
goto :levelHeroes
:scrollTop
loopDetectionCount = #loopDetectionCount + 1
goto :scrollTop
:lvlTopHero 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 * 4
goto :levelHeroesScrollDown
:levelHeroesScrollDown
loopDetectionCount = #loopDetectionCount + 1
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
goto :levelHeroesPressLevelUp
:levelHeroesPressLevelUp
pressLevelUpLoopCount = #pressLevelUpLoopCount + 1
goto :levelHeroesSlideUpCollection
:closeMenu //close stats sleep #btnDelay
time = #time + #btnDelay
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
: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
goto :randomTouchC
:randomTouchC if #astralAwakening == 1 if #equipmentStacking == 1 if #hero == 22
hero = #hero + 1
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
goto :randomTouch
:end `