Tap Titans 2 Advanced ClickBot (HiroMacro)

10/11/2017 01:12 JasonF01#586
Quote:
Originally Posted by Whoadie View Post
I'm on the way towards it, once I hit 6K I'll send you a PM with my skill tree and reasoning behind it.

I have already used my skill points (my impulsivity fucks me over every time), and now I'm highly regretting it, so DEFINITELY wait until things stabilize.

You think there's any way we can figure out how to implement Heavenly Strike? I have no idea how / why but after this update when I use Heavenly Strike I get a decent splash effect. I was thinking about experimenting tonight and trying to make it work.
I think it'd be pretty easy to add Heavenly Strike in. I'll have a look at it tomorrow, a HS build could mean faster runs and more relics which is what everyone using this script wants.

The issue is how many times do you level the heavenly strike skill up. I guess it's something you want to do over time to maximise your mana and that might be beyond my coding capabilities unlike the guy who wrote this script who unfortunately seems to have given up on it.

Maybe the answer is to level HS every time it levels the sword master, that might be something I can do.
10/11/2017 01:15 Whoadie#587
Quote:
Originally Posted by JasonF01 View Post
I think it'd be pretty easy to add Heavenly Strike in. I'll have a look at it tomorrow, a HS build could mean faster runs and more relics which is what everyone using this script wants.

The issue is how many times do you level the heavenly strike skill up. I guess it's something you want to do over time to maximise your mana and that might be beyond my coding capabilities unlike the guy who wrote this script who unfortunately seems to have given up on it.

Maybe the answer is to level HS every time it levels the sword master, that might be something I can do.
Yeah, I'm just trying to maximize my splash right now, since my heroes all do pretty good damage thanks to decent levels on my artifacts. I need to spend more time researching this.

Out of curiosity, how good / high as you splashing right now and what is your configuration?
10/11/2017 01:55 JasonF01#588
Quote:
Originally Posted by Whoadie View Post
Yeah, I'm just trying to maximize my splash right now, since my heroes all do pretty good damage thanks to decent levels on my artifacts. I need to spend more time researching this.

Out of curiosity, how good / high as you splashing right now and what is your configuration?
Splashing with HS? I've got 0 skill points used at the moment so it's hard to say. Otherwise I can splash 4x to 5k.

I have 14M% All Artifact Damage, 600 BoS, but less than 200 SP and only 4 full sets of Hero Weapons. If anything stops me hitting 6k and beyond it'll be SP and Hero Weapons.
10/11/2017 02:32 Whoadie#589
Quote:
Originally Posted by JasonF01 View Post
Splashing with HS? I've got 0 skill points used at the moment so it's hard to say. Otherwise I can splash 4x to 5k.

I have 14M% All Artifact Damage, 600 BoS, but less than 200 SP and only 4 full sets of Hero Weapons. If anything stops me hitting 6k and beyond it'll be SP and Hero Weapons.
God damn. I have three hero weapons LOL. I'm regretting not doing tournaments now.

14M% AD oh my ....

I'm stuck at 5500 at the moment, not stuck, but it's getting a lot slower
10/11/2017 03:04 JasonF01#590
Quote:
Originally Posted by Whoadie View Post
God damn. I have three hero weapons LOL. I'm regretting not doing tournaments now.

14M% AD oh my ....

I'm stuck at 5500 at the moment, not stuck, but it's getting a lot slower
What's your AD%? 5500 is pretty good. I'm in one of the top 20 clans and only 1 member went past that since release.

Did you mostly use the Knight tier? I hear Clan Ship damage is meant to be really good too.
10/11/2017 03:32 Whoadie#591
Quote:
Originally Posted by JasonF01 View Post
What's your AD%? 5500 is pretty good. I'm in one of the top 20 clans and only 1 member went past that since release.

Did you mostly use the Knight tier? I hear Clan Ship damage is meant to be really good too.
Yeah, my tree is mostly built around splash since I've managed to find a spot in a pretty decent clan, so the damage is never an issue. I currently splash 20 with my clan ship.

I'm wondering, do you know or have any experience with the "Lightning Burst" ability under the Knight tree? Do you know if that pet splash continues to increase by 2 every upgrade? Cause that seems pretty powerful too and I may have to shell out for some diamonds to respec (I stupidly spent too many SP on Mana when I barely use any other skills besides Heavenly Strike).

My AD% is only 1M since I've been recklessly spending on BoS. I'm slowly starting to build it up though. Compared to BoS the other upgrades feel so much cheaper haha.
10/11/2017 03:43 JasonF01#592
Quote:
Originally Posted by Whoadie View Post
Yeah, my tree is mostly built around splash since I've managed to find a spot in a pretty decent clan, so the damage is never an issue. I currently splash 20 with my clan ship.

I'm wondering, do you know or have any experience with the "Lightning Burst" ability under the Knight tree? Do you know if that pet splash continues to increase by 2 every upgrade? Cause that seems pretty powerful too and I may have to shell out for some diamonds to respec (I stupidly spent too many SP on Mana when I barely use any other skills besides Heavenly Strike).

My AD% is only 1M since I've been recklessly spending on BoS. I'm slowly starting to build it up though. Compared to BoS the other upgrades feel so much cheaper haha.
You can see how much it increases per level here: [Only registered and activated users can see links. Click Here To Register...]

20 levels of it takes the max splash to 45 apparently!

Your build sounds pretty good if you can hit 5.5k with 1M% AD. I'm very interested in splashing more with clan ship and pets for quicker runs.
10/11/2017 03:54 Whoadie#593
Quote:
Originally Posted by JasonF01 View Post
You can see how much it increases per level here: [Only registered and activated users can see links. Click Here To Register...]

20 levels of it takes the max splash to 45 apparently!

Your build sounds pretty good if you can hit 5.5k with 1M% AD. I'm very interested in splashing more with clan ship and pets for quicker runs.
I just hit 5.6K (finally)

I think since we (you so more than me), have pretty solid damage, finding a way to implement Heavenly Strike optimally would increase our run times significantly (I splashed through 47 enemies at a time, but could only do it a few times since it costs like 80 mana per use @ max level).

Since you're in a top 20 clan, I already assume you have a pretty high level Kit (Mine is only 19 :/). I may buy some diamonds, respec and instead of focusing on clan ship splash, focus on combining Lightning Burst + Kit and see where that takes me (I'd have enough SP to take it to level 16, which is 33).

I'll let you know how that goes ^

There is one game mechanic that puzzles me a little bit that I'm hoping you could shed some light on. In terms of the titans actually respawning, is tapping even remotely significant for me at this point of the game? Since my heroes seem to kill the titan before my clicks even register (and SM doesn't splash), I see no difference with/without tapping, and without tapping I can avoid the occasional "ad fairy".
10/11/2017 04:16 JasonF01#594
Changelog
  • Confirmed Working with 2.1
  • Eggs collect positioning fixed
  • Coordinated Offense (Glowing Clan Ship) added
  • Heavenly Strike added

Code:
// -  Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 - Modded by JasonF01 ]

SCREEN_SIZE: 480x800

// ----------- Settings
var #enableFairies 1
var #enablePremiumCollect 0
var #hatchEggs 1
var #enableClanShip 1
var #enableTapping 1

// ----------- Actions ----------- [ General ]
var #runActionsOnStart 1
var #runActionsEveryXMinutes 3
var #fullManaSkill 3

//Action Order | 1,2,3 = push heroes | 2,3,1 = push ms
var #orderLevelHeroes 1
var #orderLevelMaster 2
var #orderLevelSkills 3

// ----------- Actions ----------- [ ClanQuest ]
var #enableClanQuest 1
var #clanQuestRunsPerReadyUp 1

// ----------- Actions ----------- [ Heroes ]
var #enableHeroes 1
//clicks on level up per run
var #skillIntensity 1
//0 = disabled | 1 = Damon (Mage) | 2 = Finn (Ranged) | 3 = Nohni (Meel)
var #maxOutHero 3

// ----------- Actions ----------- [ Skills ]
var #enableSkills 1
//prevent sword master leveling after all skills are unlocked ( > lvl 600)
var #stopMasterAfterSkillsUnlocked 0

//press given skills every X seconds
var #intervalHeavenlyStrike 10
var #intervalCrit 240
var #intervalFireBlade 240
var #intervalMidas 240
var #intervalHeroes 120
var #intervalShadowClone 120

//just level each skill once
var #justUnlockSkills 1

//run skill check after prestige or now
var #startSkillCheckNow 1

// ----------- Actions ----------- [ Boss ]
//cancel actions if boss fight running
var #checkBossFight 0
//wait for given skill (2-6) then start boss
var #startBossSkill 0
//optional skill which will be clicked on start (not checked)
var #startBossSecondarySkill 0

// ----------- Actions ----------- [ Prestige ]
var #enableAutoprestige 1
var #prestigeAfterXMinutes 70

// ----------- Developer / Expert
var #maxHitCount 9999999

//show current script time
var #showCurrentTime 0

//if you wanna sync the script time with real time you can play around with this value
var #timeScaleAddition 17


// ----------- 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 #bossFightInProgress 0
var #skillActive 0
var #colorRed 0
var #colorBlue 0
var #colorGreen 0
var #loopDetectionCount 0
var #prestige 0
var #skillsUnlocked 0
var #tryWithDelay 0
var #checkRunning 0
var #clanQuestCount 0
var #calc1 0
var #recheckClanQuest 0

// ----------- Delays
var #btnDelay 150
var #hitDelay 40
var #shipDelay 5
var #menuSlideDelay 200
var #menuPopUpDelay 500
var #loadingClanQuestDelay 3000

// ----------- 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 #colorBlack 397861
var #colorStatsButton 3826675
var #colorGray 2695200
//var #colorItemBossActive 2432264 127 70

// ----------- TimeSets
var #timeLastActionRun 0

var #timeDiff 0

var #time 0
var #seconds 0
var #secondsTotal 0
var #minutes 0

var #lastPressHeavenlyStrike 0
var #lastPressCrit 0
var #lastPressFireBlade 0
var #lastPressMidas 0
var #lastPressShadowClone 0
var #lastPressHeroes 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 % 80

	#timeDiff = #minutes - #timeLastActionRun
	
	//add general execution delays
	#time = #time + #timeScaleAddition
	
	if #resultClanQuest == 0 and #enableClanQuest == 1
		goto :checkClanQuest
	endif
	
	if #showCurrentTime == 1 and #resultUpdateTime == 0
		toast #minutes:#seconds
	endif
	
	if #resultUpdateTime == 0
		#seconds = (#time/1000)%60
		#secondsTotal = #time/1000
		#minutes = (#time/1000)/60
	endif
	
	if #resultUpdateTime == 0 and #enablePremiumCollect == 1
		touchDown 0 350 630
		sleep 100
		touchUp 0
		sleep 100
	endif
	
	if #resultUpdateTime == 0 and #timeDiff < #runActionsEveryXMinutes
		goto :pressSkills
	endif
		
	if #loopCount == 1 and #enableClanQuest == 1
		goto :checkClanQuest
	elseif #loopCount == 2
		goto :init
	elseif #minutes >= #prestigeAfterXMinutes and #enableAutoprestige == 1
		goto :checkPrestige
	elseif #timeDiff >= #runActionsEveryXMinutes
		goto :runActions
	elseif #resultCheckBoss == 0
		goto :checkBoss
	elseif #resultManaPool == 0
		goto :checkMana
	elseif #loopCount == #maxHitCount
		#loopCount = 0
		goto :randomTouch
	else
		goto :randomTouch
	endif
:end

:afterPrestige
	#prestige = #prestige+1
	#skillsUnlocked = 0
	#time = 0
	#seconds = 0
	#secondsTotal = 0
	#minutes = 0
goto :init


// ----------- INIT
:init

	CheckApp #checkRunning com.gamehivecorp.taptitans2
	if #checkRunning == 0
		RunApp com.gamehivecorp.taptitans2
		WaitApp com.gamehivecorp.taptitans2
		sleep 10000
	endif

	if #enablePremiumCollect == 1
		touchDown 0 350 630
		sleep 100
		touchUp 0
		sleep 100
	endif

	#lastPressHeavenlyStrike = 0
	#lastPressCrit = 0
	#lastPressFireBlade = 0
	#lastPressMidas = 0
	#lastPressShadowClone = 0
	#lastPressHeroes = 0
	#timeLastActionRun = 0

	touchDown 0 #menuCloseX #menuCloseY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay
	
	if #runActionsOnStart == 1
		goto :runActions
	endif
goto :start

:loopDetected
	toast loop detected - restarting ...
	#loopCount = 0
goto :init

// ----------- PRESS SKILLS
:pressSkills

	// check running state
	CheckApp #checkRunning com.gamehivecorp.taptitans2
	if #checkRunning == 0
		RunApp com.gamehivecorp.taptitans2
		sleep 10000
		goto :init
	endif

	touchDown 0 #menuCloseX #menuCloseY
	sleep 50
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + 200

	#timeDiff = #secondsTotal - #lastPressHeavenlyStrike
	if #timeDiff >= #intervalHeavenlyStrike and #intervalHeavenlyStrike > 0
		#lastPressHeavenlyStrike = #secondsTotal
		touchPress 0 40 710
		#time = #time + 200
	endif	
	#timeDiff = #secondsTotal - #lastPressCrit
	if #timeDiff >= #intervalCrit and #intervalCrit > 0
		#lastPressCrit = #secondsTotal
		touchPress 0 120 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressFireBlade
	if #timeDiff >= #intervalFireBlade and #intervalFireBlade > 0
		#lastPressFireBlade = #secondsTotal
		touchPress 0 280 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressMidas
	if #timeDiff >= #intervalMidas and #intervalMidas > 0
		#lastPressMidas = #secondsTotal
		touchPress 0 200 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressHeroes
	if #timeDiff >= #intervalHeroes and #intervalHeroes > 0
		#lastPressHeroes = #secondsTotal
		touchPress 0 360 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressShadowClone
	if #timeDiff >= #intervalShadowClone and #intervalShadowClone > 0
		#lastPressShadowClone = #secondsTotal
		touchPress 0 430 710
		#time = #time + 200
	endif
goto :start

// ----------- CHECK MANA
:checkMana
	//checking Manabar
	getColor #color1 208 638
	if #color1 == #colorWhite
		//Mana full starting something and dont waste regen time
		goto :startSkill
	endif
goto :start

:startSkill
	if #fullManaSkill == 2
		touchPress 0 120 710
	elseif #fullManaSkill == 3
		touchPress 0 200 710
	elseif #fullManaSkill == 5
		touchPress 0 360 710
	elseif #fullManaSkill == 6
		touchPress 0 430 710
	elseif #fullManaSkill == 4
		touchPress 0 280 710
	endif
	#time = #time + 200
goto :start

:runActions
	#timeLastActionRun = #minutes
	#actionStepper = #actionStepper + 1
	
	if #checkBossFight == 1
		getColor #color1 139 85
	endif
	
	if #checkBossFight == 1 and #color1 == #colorWhite
		touchPress 0 #menuCloseX #menuCloseY
		toast skipping actions - bossfight in progress
		goto :pressSkills
	endif

	if #actionStepper == #orderLevelMaster and #skillsUnlocked < 5 and #stopMasterAfterSkillsUnlocked == 1
		goto :levelUp
	elseif #actionStepper == #orderLevelMaster and #stopMasterAfterSkillsUnlocked == 0
		goto :levelUp
	elseif #actionStepper == #orderLevelSkills and #enableSkills == 1 and  #skillsUnlocked < 5
		#skillsUnlocked = 0
		goto :checkSkills
	elseif #actionStepper == #orderLevelHeroes and #enableHeroes == 1
		goto :levelHeroes
	elseif #actionStepper == 5 and #enableClanQuest == 1
		#actionStepper = 0
		goto :checkClanQuest
	else 
		#actionStepper = 0
		goto :checkBoss
	endif
goto :runActions

// ----------- CHECK PRESTIGE
:checkPrestige
	sleep 1000
	#time = #time + 1000

	//open stats
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuStats #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #btnDelay
	#time = #time + #btnDelay
	
	//wait for slide
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay

	//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

	touchDown 0 400 720
	touchUp 0
	sleep #menuPopUpDelay
	#time = #time + #menuPopUpDelay

	touchDown 0 240 640
	sleep #btnDelay
	touchUp 0
	sleep #menuPopUpDelay
	getColor #color1 430 540
	
	if #color1 == 6384247
		touchDown 0 330 535
		sleep #btnDelay
		touchUp 0
		sleep 9000
		goto :afterPrestige
	else
		touchPress 470 450
		touchPress 470 450
		touchPress 470 450
		touchPress 470 450
		goto :checkPrestige
	endif 
goto :start


// ----------- CHECK CLAN QUEST
:checkClanQuest
	getRGB #colorRed #colorGreen #colorBlue 72 21
	
	if #colorRed < 190 and #colorRed > 120
		#recheckClanQuest = 1
		goto :checkClanQuestReady
	endif

goto :start
	
:checkClanQuestReady

	//open menu
	sleep #btnDelay
	touchDown 0 80 25
	sleep #btnDelay
	touchUp 0
	sleep #btnDelay
	
	//touch clan icon bottom
	touchDown 0 100 730
	sleep #btnDelay
	touchUp 0
	sleep #loadingClanQuestDelay
	
	getColor #color1 420 725
	
	if #color1 == -1785765 and #clanQuestCount == 0
		#recheckClanQuest = 0
		goto :clanQuestClose
	endif
	
	//boss progress color 
	getColor #color1 175 335
	
	#clanQuestLoopCount = 0
	
	if #color1 == 2055160
		//boss up
		touchDown 0 310 740
		sleep #btnDelay
		touchUp 0
		sleep #menuPopUpDelay
		goto :clanQuestCheckDias
	elseif #color1 == 0
		//boss down
		#recheckClanQuest = 0
	endif

	//close (and recheck)
goto :clanQuestClose

:clanQuestCheckDias
	getColor #color1 40 215
	
	if #color1 == -7775689
		//no dias left
		#recheckClanQuest = 0
		goto :clanQuestClose
	else
		touchDown 0 325 450
		sleep #btnDelay
		touchUp 0
		
		sleep 3000
		getColor #color1 20 770
		
		goto :clanQuestHit
	endif
	
:clanQuestHit

	if #color1 == -28929 and #clanQuestLoopCount == 0
		//add quest
		#clanQuestCount = #clanQuestCount + 1
	endif

	#clanQuestLoopCount = #clanQuestLoopCount + 1
	
	if #color1 == -28929 and #clanQuestLoopCount < 1000
		//hit the boss
		touchDown 0 180 730
		touchUp 0
		sleep 28
		#time = #time + #btnDelay
		goto :clanQuestHit
	elseif #clanQuestLoopCount > 950
		goto :clanQuestClose
	endif

:clanQuestClose
	getColor #color1 65 795
	if #color1 == #colorStatsButton
		goto :clanQuestCloseCheck
	else
		touchDown 0 415 45
		touchUp 0
		sleep 200
		touchDown 0 420 210
		touchUp 0
		sleep 200
		#time = #time + #btnDelay
		goto :clanQuestClose
	endif
	
:clanQuestCloseCheck
	if #recheckClanQuest == 1 and #clanQuestCount < #clanQuestRunsPerReadyUp
		goto :checkClanQuestReady
	else
		#clanQuestCount = 0
		goto :start
	endif


	
// ----------- CHECK SKILLS
:checkSkills

	if #prestige == 0 and #startSkillCheckNow == 0
		goto :checkSkillsFinish
	endif

	if #skillsUnlocked == 5 and #justUnlockSkills == 1
		toast skills unlocked, stop now until next prestige
		goto :checkSkillsFinish
	endif

	#skillCheckStepper = #skillCheckStepper + 1

	if #skillCheckStepper == 1
		// first skill
		sleep #btnDelay
		#time = #time + #btnDelay
		touchDown 0 466 650
		sleep #btnDelay
		#time = #time + #btnDelay
		touchUp 0
		goto :checkSkills
	elseif #skillCheckStepper <= 6
		goto :checkSkillsUnlock
	endif

	//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
goto :checkSkillsFinish

:checkSkillsUnlock
	
	sleep 200
	#time = #time + 250
	
	getRGB #colorRed #colorGreen #colorBlue 450 710
	
	if #colorBlue == 2 or #colorBlue == 5
		#skillsUnlocked = #skillsUnlocked + 1
	endif
	
	if #colorBlue == 2
		sleep 100
		touchDown 0 466 730
		sleep 250
		touchUp 0
		sleep 200
		#time = #time + 450
	endif
	
	if #justUnlockSkills == 0
		touchPress 0 466 730
		sleep 50
		touchPress 0 466 730
		sleep 50
		touchPress 0 466 730
		sleep 50
		#time = #time + 750
	endif
	
	if #skillCheckStepper == 6
		goto :checkSkills
	endif
goto :checkSkillsSlideDown

:checkSkillsFinish
	#skillCheckStepper = 0
	if #enableHeroes == 1
		goto :runActions
	endif
goto :closeMenu

	
: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
	#time = #time + 550
goto :checkSkills

:closeMenu
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuCloseX #menuCloseY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay
goto :runActions

// ----------- LEVEL HEROES
:levelHeroes
	//open menu
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuHeroes #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep 1000
	#time = #time + 1000
	
	if #tryWithDelay == 1
		sleep 3000
	endif
	
	getColor #color1 95 765
	if #color1 == #colorWhite
		#tryWithDelay = 0
	
		#loopDetectionCount = 0
		#time = #time + 2000
		
		//force 1 down scroll
		touchDown 1 280 750
		touchMove 1 280 745
		sleep 100
		touchMove 1 280 740
		touchMove 1 280 735
		sleep 50
		touchMove 1 280 700
		touchMove 1 280 690
		sleep 50
		touchMove 1 280 500
		touchMove 1 280 450
		sleep 20
		touchMove 1 280 420
		touchMove 1 280 410
		sleep 50
		touchMove 1 280 400
		touchUp 1
		sleep 200
		
		#time = #time + 470
		
		goto :levelHeroesScrollDown
	endif
	
	#tryWithDelay = 1
	
goto :levelHeroes


:levelHeroesScrollDown
	#loopDetectionCount = #loopDetectionCount + 1
	if #loopDetectionCount == 50
		goto :loopDetected
	endif

	getColor #color1 440 760
	if #color1 == #colorGray
		#loopDetectionCount = 0
		goto :levelHeroesMaxOutMain
	endif

	touchDown 1 280 750
	touchMove 1 280 745
	sleep 100
	touchMove 1 280 740
	touchMove 1 280 735
	sleep 50
	touchMove 1 280 700
	touchMove 1 280 690
	sleep 50
	touchMove 1 280 500
	touchMove 1 280 450
	sleep 20
	touchMove 1 280 420
	touchMove 1 280 410
	sleep 50
	touchMove 1 280 400
	touchUp 1
	sleep 200
	
	#time = #time + 470
	
	goto :levelHeroesScrollDown

:levelHeroesMaxOutMain
	if #maxOutHero == 1
		touchDown 1 466 570
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 570
		sleep 40
		touchUp 1
	elseif #maxOutHero == 2
		touchDown 1 466 645
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 645
		sleep 40
		touchUp 1
	elseif #maxOutHero == 2
		touchDown 1 466 720
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 720
		sleep 40
		touchUp 1
	endif		
goto :levelHeroesPressLevelUp
	
	
:levelHeroesSlideUpCollection

	#loopDetectionCount = #loopDetectionCount + 1
	if #loopDetectionCount == 50
		goto :loopDetected
	endif

	getColor #color1 475 510
	if #color1 == #colorGray
		goto :closeMenu
	endif

	touchDown 1 280 510
	sleep 20
	touchMove 1 280 512
	touchMove 1 280 514
	touchMove 1 280 516
	sleep 20
	touchMove 1 280 520
	touchMove 1 280 540
	sleep 20
	touchMove 1 280 580
	touchMove 1 280 600
	sleep 20
	touchMove 1 280 630
	touchMove 1 280 670
	sleep 20
	touchMove 1 280 690
	touchMove 1 280 700
	sleep 20
	touchMove 1 280 736
	touchMove 1 280 738
	sleep 20
	touchMove 1 280 740
	touchMove 1 280 742
	sleep 200
	touchUp 1
	touchPress 1 280 750
	
	#time = #time + 540
	
goto :levelHeroesPressLevelUp

:levelHeroesPressLevelUp
	#pressLevelUpLoopCount = #pressLevelUpLoopCount + 1
	
	touchDown 1 466 720
	sleep 40
	touchUp 1
	touchDown 1 466 700
	sleep 40
	touchUp 1
	touchDown 1 466 680
	sleep 40
	touchUp 1
	touchDown 1 466 660
	sleep 40
	touchUp 1
	touchDown 1 466 640
	sleep 40
	touchUp 1
	touchDown 1 466 620
	sleep 40
	touchUp 1
	touchDown 1 466 600
	sleep 40
	touchUp 1
	touchDown 1 466 580
	sleep 40
	touchUp 1
	touchDown 1 466 560
	sleep 40
	touchUp 1
	touchDown 1 466 540
	sleep 40
	touchUp 1

	#time = #time + 440
	
	if #pressLevelUpLoopCount < #skillIntensity
		goto :levelHeroesPressLevelUp
	endif
	#pressLevelUpLoopCount = 0
goto :levelHeroesSlideUpCollection

// ----------- LEVEL UP
:levelUp
	//collect gold
	touchPress 0 30 215
	//open stats
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuStats #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
		
	//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
	touchUp 0
	sleep 750
	#time = #time + 1100
	
goto :levelUpLoop


:levelUpLoop
	//lvl up
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 466 580
	touchUp 0
	getColor #color1 460 600
	if #color1 == #colorLevelUpAvailable
		goto :levelUpLoop
	elseif #enableSkills == 1 or #enableHeroes == 1
		goto :runActions
	endif
goto :closeMenu

: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
goto :runActions

// ----------- CHECK BOSS
:checkBoss

	getColor #color1 139 85

	if #color1 == #colorWhite
		goto :pressSkills
	endif

	#color1 = 0
	#color2 = 0
	
	getColor #color2 459 29
		
	if #startBossSkill == 2
		getColor #color1 108 685
	elseif #startBossSkill == 4
		getColor #color1 268 685
	elseif #startBossSkill == 3
		getColor #color1 189 685
	elseif #startBossSkill == 5
		getColor #color1 348 685
	elseif #startBossSkill == 6
		getColor #color1 428 685
	endif

	if #color1 == #colorWhite and #color2 == #colorBlack
		goto :startBossWithSkills
	elseif #color2 == #colorBlack and #startBossSkill == 0
		touchDown 0 420 40
		sleep #btnDelay
		#time = #time + #btnDelay
		touchUp 0
		sleep #btnDelay
		#time = #time + #btnDelay
	elseif #hatchEggs == 1
		touchPress 0 30 285
		sleep #btnDelay
		#time = #time + #btnDelay
	elseif #enableClanShip == 1
		touchPress 0 30 165
		sleep #shipDelay
		#time = #time + #shipDelay
	endif
		
goto :pressSkills

:startBossWithSkills
	if #startBossSkill == 2 or #startBossSecondarySkill == 2
		touchPress 0 120 710
	endif
	if #startBossSkill == 4 or #startBossSecondarySkill == 4
		touchPress 0 280 710
	endif
	if #startBossSkill == 3 or #startBossSecondarySkill == 3
		touchPress 0 200 710
	endif
	if #startBossSkill == 5 or #startBossSecondarySkill == 5
		touchPress 0 360 710
	endif
	if #startBossSkill == 6 or #startBossSecondarySkill == 6
		touchPress 0 430 710
	endif
	
	#time = #time + 400
	
	//start boss
	touchDown 0 420 40
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #btnDelay
	#time = #time + #btnDelay
goto :pressSkills

// ----------- RANDOM ATTACK
:randomTouch
	if #enableFairies == 1
		rand #randomX 60 415
		rand #randomY 160 420
	else
		rand #randomX 60 415
		rand #randomY 270 420
	endif
	
	//equipment stacking
	if #randomX > 280 and #randomX < 430 and #randomY > 300
		goto :randomTouch
	endif
	
	if #enableTapping == 1
		touchDown 0 #randomX #randomY
		touchUp 0
	endif
	sleep #hitDelay
	#time = #time + #hitDelay
goto :start
Follow the usual setup instructions from the first page. Back up your current script, as this is not heavily tested. You'll likely need to level your Heavenly Strike up (either manually or with your config) for it to be effective.
10/11/2017 05:01 Whoadie#595
Quote:
Originally Posted by JasonF01 View Post
Changelog
  • Confirmed Working with 2.1
  • Eggs collect positioning fixed
  • Coordinated Offense (Glowing Clan Ship) added
  • Heavenly Strike added

Code:
// -  Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 - Modded by JasonF01 ]

SCREEN_SIZE: 480x800

// ----------- Settings
var #enableFairies 1
var #enablePremiumCollect 0
var #hatchEggs 1
var #enableClanShip 1
var #enableTapping 1

// ----------- Actions ----------- [ General ]
var #runActionsOnStart 1
var #runActionsEveryXMinutes 3
var #fullManaSkill 3

//Action Order | 1,2,3 = push heroes | 2,3,1 = push ms
var #orderLevelHeroes 1
var #orderLevelMaster 2
var #orderLevelSkills 3

// ----------- Actions ----------- [ ClanQuest ]
var #enableClanQuest 1
var #clanQuestRunsPerReadyUp 1

// ----------- Actions ----------- [ Heroes ]
var #enableHeroes 1
//clicks on level up per run
var #skillIntensity 1
//0 = disabled | 1 = Damon (Mage) | 2 = Finn (Ranged) | 3 = Nohni (Meel)
var #maxOutHero 3

// ----------- Actions ----------- [ Skills ]
var #enableSkills 1
//prevent sword master leveling after all skills are unlocked ( > lvl 600)
var #stopMasterAfterSkillsUnlocked 0

//press given skills every X seconds
var #intervalHeavenlyStrike 10
var #intervalCrit 240
var #intervalFireBlade 240
var #intervalMidas 240
var #intervalHeroes 120
var #intervalShadowClone 120

//just level each skill once
var #justUnlockSkills 1

//run skill check after prestige or now
var #startSkillCheckNow 1

// ----------- Actions ----------- [ Boss ]
//cancel actions if boss fight running
var #checkBossFight 0
//wait for given skill (2-6) then start boss
var #startBossSkill 0
//optional skill which will be clicked on start (not checked)
var #startBossSecondarySkill 0

// ----------- Actions ----------- [ Prestige ]
var #enableAutoprestige 1
var #prestigeAfterXMinutes 70

// ----------- Developer / Expert
var #maxHitCount 9999999

//show current script time
var #showCurrentTime 0

//if you wanna sync the script time with real time you can play around with this value
var #timeScaleAddition 17


// ----------- 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 #bossFightInProgress 0
var #skillActive 0
var #colorRed 0
var #colorBlue 0
var #colorGreen 0
var #loopDetectionCount 0
var #prestige 0
var #skillsUnlocked 0
var #tryWithDelay 0
var #checkRunning 0
var #clanQuestCount 0
var #calc1 0
var #recheckClanQuest 0

// ----------- Delays
var #btnDelay 150
var #hitDelay 40
var #shipDelay 5
var #menuSlideDelay 200
var #menuPopUpDelay 500
var #loadingClanQuestDelay 3000

// ----------- 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 #colorBlack 397861
var #colorStatsButton 3826675
var #colorGray 2695200
//var #colorItemBossActive 2432264 127 70

// ----------- TimeSets
var #timeLastActionRun 0

var #timeDiff 0

var #time 0
var #seconds 0
var #secondsTotal 0
var #minutes 0

var #lastPressHeavenlyStrike 0
var #lastPressCrit 0
var #lastPressFireBlade 0
var #lastPressMidas 0
var #lastPressShadowClone 0
var #lastPressHeroes 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 % 80

	#timeDiff = #minutes - #timeLastActionRun
	
	//add general execution delays
	#time = #time + #timeScaleAddition
	
	if #resultClanQuest == 0 and #enableClanQuest == 1
		goto :checkClanQuest
	endif
	
	if #showCurrentTime == 1 and #resultUpdateTime == 0
		toast #minutes:#seconds
	endif
	
	if #resultUpdateTime == 0
		#seconds = (#time/1000)%60
		#secondsTotal = #time/1000
		#minutes = (#time/1000)/60
	endif
	
	if #resultUpdateTime == 0 and #enablePremiumCollect == 1
		touchDown 0 350 630
		sleep 100
		touchUp 0
		sleep 100
	endif
	
	if #resultUpdateTime == 0 and #timeDiff < #runActionsEveryXMinutes
		goto :pressSkills
	endif
		
	if #loopCount == 1 and #enableClanQuest == 1
		goto :checkClanQuest
	elseif #loopCount == 2
		goto :init
	elseif #minutes >= #prestigeAfterXMinutes and #enableAutoprestige == 1
		goto :checkPrestige
	elseif #timeDiff >= #runActionsEveryXMinutes
		goto :runActions
	elseif #resultCheckBoss == 0
		goto :checkBoss
	elseif #resultManaPool == 0
		goto :checkMana
	elseif #loopCount == #maxHitCount
		#loopCount = 0
		goto :randomTouch
	else
		goto :randomTouch
	endif
:end

:afterPrestige
	#prestige = #prestige+1
	#skillsUnlocked = 0
	#time = 0
	#seconds = 0
	#secondsTotal = 0
	#minutes = 0
goto :init


// ----------- INIT
:init

	CheckApp #checkRunning com.gamehivecorp.taptitans2
	if #checkRunning == 0
		RunApp com.gamehivecorp.taptitans2
		WaitApp com.gamehivecorp.taptitans2
		sleep 10000
	endif

	if #enablePremiumCollect == 1
		touchDown 0 350 630
		sleep 100
		touchUp 0
		sleep 100
	endif

	#lastPressHeavenlyStrike = 0
	#lastPressCrit = 0
	#lastPressFireBlade = 0
	#lastPressMidas = 0
	#lastPressShadowClone = 0
	#lastPressHeroes = 0
	#timeLastActionRun = 0

	touchDown 0 #menuCloseX #menuCloseY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay
	
	if #runActionsOnStart == 1
		goto :runActions
	endif
goto :start

:loopDetected
	toast loop detected - restarting ...
	#loopCount = 0
goto :init

// ----------- PRESS SKILLS
:pressSkills

	// check running state
	CheckApp #checkRunning com.gamehivecorp.taptitans2
	if #checkRunning == 0
		RunApp com.gamehivecorp.taptitans2
		sleep 10000
		goto :init
	endif

	touchDown 0 #menuCloseX #menuCloseY
	sleep 50
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + 200

	#timeDiff = #secondsTotal - #lastPressHeavenlyStrike
	if #timeDiff >= #intervalHeavenlyStrike and #intervalHeavenlyStrike > 0
		#lastPressHeavenlyStrike = #secondsTotal
		touchPress 0 40 710
		#time = #time + 200
	endif	
	#timeDiff = #secondsTotal - #lastPressCrit
	if #timeDiff >= #intervalCrit and #intervalCrit > 0
		#lastPressCrit = #secondsTotal
		touchPress 0 120 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressFireBlade
	if #timeDiff >= #intervalFireBlade and #intervalFireBlade > 0
		#lastPressFireBlade = #secondsTotal
		touchPress 0 280 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressMidas
	if #timeDiff >= #intervalMidas and #intervalMidas > 0
		#lastPressMidas = #secondsTotal
		touchPress 0 200 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressHeroes
	if #timeDiff >= #intervalHeroes and #intervalHeroes > 0
		#lastPressHeroes = #secondsTotal
		touchPress 0 360 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressShadowClone
	if #timeDiff >= #intervalShadowClone and #intervalShadowClone > 0
		#lastPressShadowClone = #secondsTotal
		touchPress 0 430 710
		#time = #time + 200
	endif
goto :start

// ----------- CHECK MANA
:checkMana
	//checking Manabar
	getColor #color1 208 638
	if #color1 == #colorWhite
		//Mana full starting something and dont waste regen time
		goto :startSkill
	endif
goto :start

:startSkill
	if #fullManaSkill == 2
		touchPress 0 120 710
	elseif #fullManaSkill == 3
		touchPress 0 200 710
	elseif #fullManaSkill == 5
		touchPress 0 360 710
	elseif #fullManaSkill == 6
		touchPress 0 430 710
	elseif #fullManaSkill == 4
		touchPress 0 280 710
	endif
	#time = #time + 200
goto :start

:runActions
	#timeLastActionRun = #minutes
	#actionStepper = #actionStepper + 1
	
	if #checkBossFight == 1
		getColor #color1 139 85
	endif
	
	if #checkBossFight == 1 and #color1 == #colorWhite
		touchPress 0 #menuCloseX #menuCloseY
		toast skipping actions - bossfight in progress
		goto :pressSkills
	endif

	if #actionStepper == #orderLevelMaster and #skillsUnlocked < 5 and #stopMasterAfterSkillsUnlocked == 1
		goto :levelUp
	elseif #actionStepper == #orderLevelMaster and #stopMasterAfterSkillsUnlocked == 0
		goto :levelUp
	elseif #actionStepper == #orderLevelSkills and #enableSkills == 1 and  #skillsUnlocked < 5
		#skillsUnlocked = 0
		goto :checkSkills
	elseif #actionStepper == #orderLevelHeroes and #enableHeroes == 1
		goto :levelHeroes
	elseif #actionStepper == 5 and #enableClanQuest == 1
		#actionStepper = 0
		goto :checkClanQuest
	else 
		#actionStepper = 0
		goto :checkBoss
	endif
goto :runActions

// ----------- CHECK PRESTIGE
:checkPrestige
	sleep 1000
	#time = #time + 1000

	//open stats
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuStats #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #btnDelay
	#time = #time + #btnDelay
	
	//wait for slide
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay

	//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

	touchDown 0 400 720
	touchUp 0
	sleep #menuPopUpDelay
	#time = #time + #menuPopUpDelay

	touchDown 0 240 640
	sleep #btnDelay
	touchUp 0
	sleep #menuPopUpDelay
	getColor #color1 430 540
	
	if #color1 == 6384247
		touchDown 0 330 535
		sleep #btnDelay
		touchUp 0
		sleep 9000
		goto :afterPrestige
	else
		touchPress 470 450
		touchPress 470 450
		touchPress 470 450
		touchPress 470 450
		goto :checkPrestige
	endif 
goto :start


// ----------- CHECK CLAN QUEST
:checkClanQuest
	getRGB #colorRed #colorGreen #colorBlue 72 21
	
	if #colorRed < 190 and #colorRed > 120
		#recheckClanQuest = 1
		goto :checkClanQuestReady
	endif

goto :start
	
:checkClanQuestReady

	//open menu
	sleep #btnDelay
	touchDown 0 80 25
	sleep #btnDelay
	touchUp 0
	sleep #btnDelay
	
	//touch clan icon bottom
	touchDown 0 100 730
	sleep #btnDelay
	touchUp 0
	sleep #loadingClanQuestDelay
	
	getColor #color1 420 725
	
	if #color1 == -1785765 and #clanQuestCount == 0
		#recheckClanQuest = 0
		goto :clanQuestClose
	endif
	
	//boss progress color 
	getColor #color1 175 335
	
	#clanQuestLoopCount = 0
	
	if #color1 == 2055160
		//boss up
		touchDown 0 310 740
		sleep #btnDelay
		touchUp 0
		sleep #menuPopUpDelay
		goto :clanQuestCheckDias
	elseif #color1 == 0
		//boss down
		#recheckClanQuest = 0
	endif

	//close (and recheck)
goto :clanQuestClose

:clanQuestCheckDias
	getColor #color1 40 215
	
	if #color1 == -7775689
		//no dias left
		#recheckClanQuest = 0
		goto :clanQuestClose
	else
		touchDown 0 325 450
		sleep #btnDelay
		touchUp 0
		
		sleep 3000
		getColor #color1 20 770
		
		goto :clanQuestHit
	endif
	
:clanQuestHit

	if #color1 == -28929 and #clanQuestLoopCount == 0
		//add quest
		#clanQuestCount = #clanQuestCount + 1
	endif

	#clanQuestLoopCount = #clanQuestLoopCount + 1
	
	if #color1 == -28929 and #clanQuestLoopCount < 1000
		//hit the boss
		touchDown 0 180 730
		touchUp 0
		sleep 28
		#time = #time + #btnDelay
		goto :clanQuestHit
	elseif #clanQuestLoopCount > 950
		goto :clanQuestClose
	endif

:clanQuestClose
	getColor #color1 65 795
	if #color1 == #colorStatsButton
		goto :clanQuestCloseCheck
	else
		touchDown 0 415 45
		touchUp 0
		sleep 200
		touchDown 0 420 210
		touchUp 0
		sleep 200
		#time = #time + #btnDelay
		goto :clanQuestClose
	endif
	
:clanQuestCloseCheck
	if #recheckClanQuest == 1 and #clanQuestCount < #clanQuestRunsPerReadyUp
		goto :checkClanQuestReady
	else
		#clanQuestCount = 0
		goto :start
	endif


	
// ----------- CHECK SKILLS
:checkSkills

	if #prestige == 0 and #startSkillCheckNow == 0
		goto :checkSkillsFinish
	endif

	if #skillsUnlocked == 5 and #justUnlockSkills == 1
		toast skills unlocked, stop now until next prestige
		goto :checkSkillsFinish
	endif

	#skillCheckStepper = #skillCheckStepper + 1

	if #skillCheckStepper == 1
		// first skill
		sleep #btnDelay
		#time = #time + #btnDelay
		touchDown 0 466 650
		sleep #btnDelay
		#time = #time + #btnDelay
		touchUp 0
		goto :checkSkills
	elseif #skillCheckStepper <= 6
		goto :checkSkillsUnlock
	endif

	//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
goto :checkSkillsFinish

:checkSkillsUnlock
	
	sleep 200
	#time = #time + 250
	
	getRGB #colorRed #colorGreen #colorBlue 450 710
	
	if #colorBlue == 2 or #colorBlue == 5
		#skillsUnlocked = #skillsUnlocked + 1
	endif
	
	if #colorBlue == 2
		sleep 100
		touchDown 0 466 730
		sleep 250
		touchUp 0
		sleep 200
		#time = #time + 450
	endif
	
	if #justUnlockSkills == 0
		touchPress 0 466 730
		sleep 50
		touchPress 0 466 730
		sleep 50
		touchPress 0 466 730
		sleep 50
		#time = #time + 750
	endif
	
	if #skillCheckStepper == 6
		goto :checkSkills
	endif
goto :checkSkillsSlideDown

:checkSkillsFinish
	#skillCheckStepper = 0
	if #enableHeroes == 1
		goto :runActions
	endif
goto :closeMenu

	
: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
	#time = #time + 550
goto :checkSkills

:closeMenu
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuCloseX #menuCloseY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay
goto :runActions

// ----------- LEVEL HEROES
:levelHeroes
	//open menu
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuHeroes #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep 1000
	#time = #time + 1000
	
	if #tryWithDelay == 1
		sleep 3000
	endif
	
	getColor #color1 95 765
	if #color1 == #colorWhite
		#tryWithDelay = 0
	
		#loopDetectionCount = 0
		#time = #time + 2000
		
		//force 1 down scroll
		touchDown 1 280 750
		touchMove 1 280 745
		sleep 100
		touchMove 1 280 740
		touchMove 1 280 735
		sleep 50
		touchMove 1 280 700
		touchMove 1 280 690
		sleep 50
		touchMove 1 280 500
		touchMove 1 280 450
		sleep 20
		touchMove 1 280 420
		touchMove 1 280 410
		sleep 50
		touchMove 1 280 400
		touchUp 1
		sleep 200
		
		#time = #time + 470
		
		goto :levelHeroesScrollDown
	endif
	
	#tryWithDelay = 1
	
goto :levelHeroes


:levelHeroesScrollDown
	#loopDetectionCount = #loopDetectionCount + 1
	if #loopDetectionCount == 50
		goto :loopDetected
	endif

	getColor #color1 440 760
	if #color1 == #colorGray
		#loopDetectionCount = 0
		goto :levelHeroesMaxOutMain
	endif

	touchDown 1 280 750
	touchMove 1 280 745
	sleep 100
	touchMove 1 280 740
	touchMove 1 280 735
	sleep 50
	touchMove 1 280 700
	touchMove 1 280 690
	sleep 50
	touchMove 1 280 500
	touchMove 1 280 450
	sleep 20
	touchMove 1 280 420
	touchMove 1 280 410
	sleep 50
	touchMove 1 280 400
	touchUp 1
	sleep 200
	
	#time = #time + 470
	
	goto :levelHeroesScrollDown

:levelHeroesMaxOutMain
	if #maxOutHero == 1
		touchDown 1 466 570
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 570
		sleep 40
		touchUp 1
	elseif #maxOutHero == 2
		touchDown 1 466 645
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 645
		sleep 40
		touchUp 1
	elseif #maxOutHero == 2
		touchDown 1 466 720
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 720
		sleep 40
		touchUp 1
	endif		
goto :levelHeroesPressLevelUp
	
	
:levelHeroesSlideUpCollection

	#loopDetectionCount = #loopDetectionCount + 1
	if #loopDetectionCount == 50
		goto :loopDetected
	endif

	getColor #color1 475 510
	if #color1 == #colorGray
		goto :closeMenu
	endif

	touchDown 1 280 510
	sleep 20
	touchMove 1 280 512
	touchMove 1 280 514
	touchMove 1 280 516
	sleep 20
	touchMove 1 280 520
	touchMove 1 280 540
	sleep 20
	touchMove 1 280 580
	touchMove 1 280 600
	sleep 20
	touchMove 1 280 630
	touchMove 1 280 670
	sleep 20
	touchMove 1 280 690
	touchMove 1 280 700
	sleep 20
	touchMove 1 280 736
	touchMove 1 280 738
	sleep 20
	touchMove 1 280 740
	touchMove 1 280 742
	sleep 200
	touchUp 1
	touchPress 1 280 750
	
	#time = #time + 540
	
goto :levelHeroesPressLevelUp

:levelHeroesPressLevelUp
	#pressLevelUpLoopCount = #pressLevelUpLoopCount + 1
	
	touchDown 1 466 720
	sleep 40
	touchUp 1
	touchDown 1 466 700
	sleep 40
	touchUp 1
	touchDown 1 466 680
	sleep 40
	touchUp 1
	touchDown 1 466 660
	sleep 40
	touchUp 1
	touchDown 1 466 640
	sleep 40
	touchUp 1
	touchDown 1 466 620
	sleep 40
	touchUp 1
	touchDown 1 466 600
	sleep 40
	touchUp 1
	touchDown 1 466 580
	sleep 40
	touchUp 1
	touchDown 1 466 560
	sleep 40
	touchUp 1
	touchDown 1 466 540
	sleep 40
	touchUp 1

	#time = #time + 440
	
	if #pressLevelUpLoopCount < #skillIntensity
		goto :levelHeroesPressLevelUp
	endif
	#pressLevelUpLoopCount = 0
goto :levelHeroesSlideUpCollection

// ----------- LEVEL UP
:levelUp
	//collect gold
	touchPress 0 30 215
	//open stats
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuStats #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
		
	//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
	touchUp 0
	sleep 750
	#time = #time + 1100
	
goto :levelUpLoop


:levelUpLoop
	//lvl up
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 466 580
	touchUp 0
	getColor #color1 460 600
	if #color1 == #colorLevelUpAvailable
		goto :levelUpLoop
	elseif #enableSkills == 1 or #enableHeroes == 1
		goto :runActions
	endif
goto :closeMenu

: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
goto :runActions

// ----------- CHECK BOSS
:checkBoss

	getColor #color1 139 85

	if #color1 == #colorWhite
		goto :pressSkills
	endif

	#color1 = 0
	#color2 = 0
	
	getColor #color2 459 29
		
	if #startBossSkill == 2
		getColor #color1 108 685
	elseif #startBossSkill == 4
		getColor #color1 268 685
	elseif #startBossSkill == 3
		getColor #color1 189 685
	elseif #startBossSkill == 5
		getColor #color1 348 685
	elseif #startBossSkill == 6
		getColor #color1 428 685
	endif

	if #color1 == #colorWhite and #color2 == #colorBlack
		goto :startBossWithSkills
	elseif #color2 == #colorBlack and #startBossSkill == 0
		touchDown 0 420 40
		sleep #btnDelay
		#time = #time + #btnDelay
		touchUp 0
		sleep #btnDelay
		#time = #time + #btnDelay
	elseif #hatchEggs == 1
		touchPress 0 30 285
		sleep #btnDelay
		#time = #time + #btnDelay
	elseif #enableClanShip == 1
		touchPress 0 30 165
		sleep #shipDelay
		#time = #time + #shipDelay
	endif
		
goto :pressSkills

:startBossWithSkills
	if #startBossSkill == 2 or #startBossSecondarySkill == 2
		touchPress 0 120 710
	endif
	if #startBossSkill == 4 or #startBossSecondarySkill == 4
		touchPress 0 280 710
	endif
	if #startBossSkill == 3 or #startBossSecondarySkill == 3
		touchPress 0 200 710
	endif
	if #startBossSkill == 5 or #startBossSecondarySkill == 5
		touchPress 0 360 710
	endif
	if #startBossSkill == 6 or #startBossSecondarySkill == 6
		touchPress 0 430 710
	endif
	
	#time = #time + 400
	
	//start boss
	touchDown 0 420 40
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #btnDelay
	#time = #time + #btnDelay
goto :pressSkills

// ----------- RANDOM ATTACK
:randomTouch
	if #enableFairies == 1
		rand #randomX 60 415
		rand #randomY 160 420
	else
		rand #randomX 60 415
		rand #randomY 270 420
	endif
	
	//equipment stacking
	if #randomX > 280 and #randomX < 430 and #randomY > 300
		goto :randomTouch
	endif
	
	if #enableTapping == 1
		touchDown 0 #randomX #randomY
		touchUp 0
	endif
	sleep #hitDelay
	#time = #time + #hitDelay
goto :start
Follow the usual setup instructions from the first page. Back up your current script, as this is not heavily tested. You'll likely need to level your Heavenly Strike up (either manually or with your config) for it to be effective.
Cheers for this brother.

I just tested this, adjusted the config a little bit (just the numbers), and after upgrading the SM, Hiromacro crashes. I assume this is before the script is supposed to purchase Heavenly Strike.
10/11/2017 05:42 JasonF01#596
Quote:
Originally Posted by Whoadie View Post
Cheers for this brother.

I just tested this, adjusted the config a little bit (just the numbers), and after upgrading the SM, Hiromacro crashes. I assume this is before the script is supposed to purchase Heavenly Strike.
Hmm, I didn't make any changes to the part where it buys the skills, and the buying of HS already worked before, so I'm surprised to hear about the error. Did it repeat? I've had it running for a few hours without any crashes.
10/11/2017 07:05 Whoadie#597
Quote:
Originally Posted by JasonF01 View Post
Hmm, I didn't make any changes to the part where it buys the skills, and the buying of HS already worked before, so I'm surprised to hear about the error. Did it repeat? I've had it running for a few hours without any crashes.
After I click OK on the Hiromacro error message, the script automatically resumes after a 1-2 second pause, but from the beginning. Then when it gets there, it hiccups and crashes again.

I'm going to try this again directly copy + pasting yours, and changing nothing except for the skill times.

Maybe I fucked around with too many variables and some actions are tripping over one another.

Quote:
Originally Posted by JasonF01 View Post
Hmm, I didn't make any changes to the part where it buys the skills, and the buying of HS already worked before, so I'm surprised to hear about the error. Did it repeat? I've had it running for a few hours without any crashes.
I've managed to get it working. I still face the same issues of it not upgrading to the max, and I've been looking through the code but can't make sense of why it's clicking my SM so many times. It's blanked out (I don't have enough $), but it legitimately spends 3 full minutes clicking a black spot.

Perfection would be cutting down SM clicking and making sure skills are properly upgraded to the max.

Not to burden you but if you have time could you try and make sense of it? I'm planning to try again tomorrow.
10/11/2017 11:12 FranaXS#598
Hi guys.

Since TTv2 I have hiromacro problems. When I activate script the only thing that does is an endless loop opening and closing hero tab. No upgrades, pet collect or clan quests. Nothing.

I'm using nox player 5.2.0.0 and latest hiromacro app from google play. I tryed vintage script from github and JasonF01 from this posts.

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

Do you know what could be happening?
10/12/2017 03:37 djo_5296#599
How do you fix the checkBoss thing? both my StartBossWithSkills work but it doesnt click the Fight Boss :(
10/12/2017 15:24 RivenCDE#600
Quote:
Originally Posted by JasonF01 View Post
Changelog
  • Confirmed Working with 2.1
  • Eggs collect positioning fixed
  • Coordinated Offense (Glowing Clan Ship) added
  • Heavenly Strike added

Code:
// -  Tap Titans 2 AdvancedClickBot by Tune389 [ v1.3 - Modded by JasonF01 ]

SCREEN_SIZE: 480x800

// ----------- Settings
var #enableFairies 1
var #enablePremiumCollect 0
var #hatchEggs 1
var #enableClanShip 1
var #enableTapping 1

// ----------- Actions ----------- [ General ]
var #runActionsOnStart 1
var #runActionsEveryXMinutes 3
var #fullManaSkill 3

//Action Order | 1,2,3 = push heroes | 2,3,1 = push ms
var #orderLevelHeroes 1
var #orderLevelMaster 2
var #orderLevelSkills 3

// ----------- Actions ----------- [ ClanQuest ]
var #enableClanQuest 1
var #clanQuestRunsPerReadyUp 1

// ----------- Actions ----------- [ Heroes ]
var #enableHeroes 1
//clicks on level up per run
var #skillIntensity 1
//0 = disabled | 1 = Damon (Mage) | 2 = Finn (Ranged) | 3 = Nohni (Meel)
var #maxOutHero 3

// ----------- Actions ----------- [ Skills ]
var #enableSkills 1
//prevent sword master leveling after all skills are unlocked ( > lvl 600)
var #stopMasterAfterSkillsUnlocked 0

//press given skills every X seconds
var #intervalHeavenlyStrike 10
var #intervalCrit 240
var #intervalFireBlade 240
var #intervalMidas 240
var #intervalHeroes 120
var #intervalShadowClone 120

//just level each skill once
var #justUnlockSkills 1

//run skill check after prestige or now
var #startSkillCheckNow 1

// ----------- Actions ----------- [ Boss ]
//cancel actions if boss fight running
var #checkBossFight 0
//wait for given skill (2-6) then start boss
var #startBossSkill 0
//optional skill which will be clicked on start (not checked)
var #startBossSecondarySkill 0

// ----------- Actions ----------- [ Prestige ]
var #enableAutoprestige 1
var #prestigeAfterXMinutes 70

// ----------- Developer / Expert
var #maxHitCount 9999999

//show current script time
var #showCurrentTime 0

//if you wanna sync the script time with real time you can play around with this value
var #timeScaleAddition 17


// ----------- 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 #bossFightInProgress 0
var #skillActive 0
var #colorRed 0
var #colorBlue 0
var #colorGreen 0
var #loopDetectionCount 0
var #prestige 0
var #skillsUnlocked 0
var #tryWithDelay 0
var #checkRunning 0
var #clanQuestCount 0
var #calc1 0
var #recheckClanQuest 0

// ----------- Delays
var #btnDelay 150
var #hitDelay 40
var #shipDelay 5
var #menuSlideDelay 200
var #menuPopUpDelay 500
var #loadingClanQuestDelay 3000

// ----------- 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 #colorBlack 397861
var #colorStatsButton 3826675
var #colorGray 2695200
//var #colorItemBossActive 2432264 127 70

// ----------- TimeSets
var #timeLastActionRun 0

var #timeDiff 0

var #time 0
var #seconds 0
var #secondsTotal 0
var #minutes 0

var #lastPressHeavenlyStrike 0
var #lastPressCrit 0
var #lastPressFireBlade 0
var #lastPressMidas 0
var #lastPressShadowClone 0
var #lastPressHeroes 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 % 80

	#timeDiff = #minutes - #timeLastActionRun
	
	//add general execution delays
	#time = #time + #timeScaleAddition
	
	if #resultClanQuest == 0 and #enableClanQuest == 1
		goto :checkClanQuest
	endif
	
	if #showCurrentTime == 1 and #resultUpdateTime == 0
		toast #minutes:#seconds
	endif
	
	if #resultUpdateTime == 0
		#seconds = (#time/1000)%60
		#secondsTotal = #time/1000
		#minutes = (#time/1000)/60
	endif
	
	if #resultUpdateTime == 0 and #enablePremiumCollect == 1
		touchDown 0 350 630
		sleep 100
		touchUp 0
		sleep 100
	endif
	
	if #resultUpdateTime == 0 and #timeDiff < #runActionsEveryXMinutes
		goto :pressSkills
	endif
		
	if #loopCount == 1 and #enableClanQuest == 1
		goto :checkClanQuest
	elseif #loopCount == 2
		goto :init
	elseif #minutes >= #prestigeAfterXMinutes and #enableAutoprestige == 1
		goto :checkPrestige
	elseif #timeDiff >= #runActionsEveryXMinutes
		goto :runActions
	elseif #resultCheckBoss == 0
		goto :checkBoss
	elseif #resultManaPool == 0
		goto :checkMana
	elseif #loopCount == #maxHitCount
		#loopCount = 0
		goto :randomTouch
	else
		goto :randomTouch
	endif
:end

:afterPrestige
	#prestige = #prestige+1
	#skillsUnlocked = 0
	#time = 0
	#seconds = 0
	#secondsTotal = 0
	#minutes = 0
goto :init


// ----------- INIT
:init

	CheckApp #checkRunning com.gamehivecorp.taptitans2
	if #checkRunning == 0
		RunApp com.gamehivecorp.taptitans2
		WaitApp com.gamehivecorp.taptitans2
		sleep 10000
	endif

	if #enablePremiumCollect == 1
		touchDown 0 350 630
		sleep 100
		touchUp 0
		sleep 100
	endif

	#lastPressHeavenlyStrike = 0
	#lastPressCrit = 0
	#lastPressFireBlade = 0
	#lastPressMidas = 0
	#lastPressShadowClone = 0
	#lastPressHeroes = 0
	#timeLastActionRun = 0

	touchDown 0 #menuCloseX #menuCloseY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay
	
	if #runActionsOnStart == 1
		goto :runActions
	endif
goto :start

:loopDetected
	toast loop detected - restarting ...
	#loopCount = 0
goto :init

// ----------- PRESS SKILLS
:pressSkills

	// check running state
	CheckApp #checkRunning com.gamehivecorp.taptitans2
	if #checkRunning == 0
		RunApp com.gamehivecorp.taptitans2
		sleep 10000
		goto :init
	endif

	touchDown 0 #menuCloseX #menuCloseY
	sleep 50
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + 200

	#timeDiff = #secondsTotal - #lastPressHeavenlyStrike
	if #timeDiff >= #intervalHeavenlyStrike and #intervalHeavenlyStrike > 0
		#lastPressHeavenlyStrike = #secondsTotal
		touchPress 0 40 710
		#time = #time + 200
	endif	
	#timeDiff = #secondsTotal - #lastPressCrit
	if #timeDiff >= #intervalCrit and #intervalCrit > 0
		#lastPressCrit = #secondsTotal
		touchPress 0 120 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressFireBlade
	if #timeDiff >= #intervalFireBlade and #intervalFireBlade > 0
		#lastPressFireBlade = #secondsTotal
		touchPress 0 280 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressMidas
	if #timeDiff >= #intervalMidas and #intervalMidas > 0
		#lastPressMidas = #secondsTotal
		touchPress 0 200 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressHeroes
	if #timeDiff >= #intervalHeroes and #intervalHeroes > 0
		#lastPressHeroes = #secondsTotal
		touchPress 0 360 710
		#time = #time + 200
	endif
	#timeDiff = #secondsTotal - #lastPressShadowClone
	if #timeDiff >= #intervalShadowClone and #intervalShadowClone > 0
		#lastPressShadowClone = #secondsTotal
		touchPress 0 430 710
		#time = #time + 200
	endif
goto :start

// ----------- CHECK MANA
:checkMana
	//checking Manabar
	getColor #color1 208 638
	if #color1 == #colorWhite
		//Mana full starting something and dont waste regen time
		goto :startSkill
	endif
goto :start

:startSkill
	if #fullManaSkill == 2
		touchPress 0 120 710
	elseif #fullManaSkill == 3
		touchPress 0 200 710
	elseif #fullManaSkill == 5
		touchPress 0 360 710
	elseif #fullManaSkill == 6
		touchPress 0 430 710
	elseif #fullManaSkill == 4
		touchPress 0 280 710
	endif
	#time = #time + 200
goto :start

:runActions
	#timeLastActionRun = #minutes
	#actionStepper = #actionStepper + 1
	
	if #checkBossFight == 1
		getColor #color1 139 85
	endif
	
	if #checkBossFight == 1 and #color1 == #colorWhite
		touchPress 0 #menuCloseX #menuCloseY
		toast skipping actions - bossfight in progress
		goto :pressSkills
	endif

	if #actionStepper == #orderLevelMaster and #skillsUnlocked < 5 and #stopMasterAfterSkillsUnlocked == 1
		goto :levelUp
	elseif #actionStepper == #orderLevelMaster and #stopMasterAfterSkillsUnlocked == 0
		goto :levelUp
	elseif #actionStepper == #orderLevelSkills and #enableSkills == 1 and  #skillsUnlocked < 5
		#skillsUnlocked = 0
		goto :checkSkills
	elseif #actionStepper == #orderLevelHeroes and #enableHeroes == 1
		goto :levelHeroes
	elseif #actionStepper == 5 and #enableClanQuest == 1
		#actionStepper = 0
		goto :checkClanQuest
	else 
		#actionStepper = 0
		goto :checkBoss
	endif
goto :runActions

// ----------- CHECK PRESTIGE
:checkPrestige
	sleep 1000
	#time = #time + 1000

	//open stats
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuStats #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #btnDelay
	#time = #time + #btnDelay
	
	//wait for slide
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay

	//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

	touchDown 0 400 720
	touchUp 0
	sleep #menuPopUpDelay
	#time = #time + #menuPopUpDelay

	touchDown 0 240 640
	sleep #btnDelay
	touchUp 0
	sleep #menuPopUpDelay
	getColor #color1 430 540
	
	if #color1 == 6384247
		touchDown 0 330 535
		sleep #btnDelay
		touchUp 0
		sleep 9000
		goto :afterPrestige
	else
		touchPress 470 450
		touchPress 470 450
		touchPress 470 450
		touchPress 470 450
		goto :checkPrestige
	endif 
goto :start


// ----------- CHECK CLAN QUEST
:checkClanQuest
	getRGB #colorRed #colorGreen #colorBlue 72 21
	
	if #colorRed < 190 and #colorRed > 120
		#recheckClanQuest = 1
		goto :checkClanQuestReady
	endif

goto :start
	
:checkClanQuestReady

	//open menu
	sleep #btnDelay
	touchDown 0 80 25
	sleep #btnDelay
	touchUp 0
	sleep #btnDelay
	
	//touch clan icon bottom
	touchDown 0 100 730
	sleep #btnDelay
	touchUp 0
	sleep #loadingClanQuestDelay
	
	getColor #color1 420 725
	
	if #color1 == -1785765 and #clanQuestCount == 0
		#recheckClanQuest = 0
		goto :clanQuestClose
	endif
	
	//boss progress color 
	getColor #color1 175 335
	
	#clanQuestLoopCount = 0
	
	if #color1 == 2055160
		//boss up
		touchDown 0 310 740
		sleep #btnDelay
		touchUp 0
		sleep #menuPopUpDelay
		goto :clanQuestCheckDias
	elseif #color1 == 0
		//boss down
		#recheckClanQuest = 0
	endif

	//close (and recheck)
goto :clanQuestClose

:clanQuestCheckDias
	getColor #color1 40 215
	
	if #color1 == -7775689
		//no dias left
		#recheckClanQuest = 0
		goto :clanQuestClose
	else
		touchDown 0 325 450
		sleep #btnDelay
		touchUp 0
		
		sleep 3000
		getColor #color1 20 770
		
		goto :clanQuestHit
	endif
	
:clanQuestHit

	if #color1 == -28929 and #clanQuestLoopCount == 0
		//add quest
		#clanQuestCount = #clanQuestCount + 1
	endif

	#clanQuestLoopCount = #clanQuestLoopCount + 1
	
	if #color1 == -28929 and #clanQuestLoopCount < 1000
		//hit the boss
		touchDown 0 180 730
		touchUp 0
		sleep 28
		#time = #time + #btnDelay
		goto :clanQuestHit
	elseif #clanQuestLoopCount > 950
		goto :clanQuestClose
	endif

:clanQuestClose
	getColor #color1 65 795
	if #color1 == #colorStatsButton
		goto :clanQuestCloseCheck
	else
		touchDown 0 415 45
		touchUp 0
		sleep 200
		touchDown 0 420 210
		touchUp 0
		sleep 200
		#time = #time + #btnDelay
		goto :clanQuestClose
	endif
	
:clanQuestCloseCheck
	if #recheckClanQuest == 1 and #clanQuestCount < #clanQuestRunsPerReadyUp
		goto :checkClanQuestReady
	else
		#clanQuestCount = 0
		goto :start
	endif


	
// ----------- CHECK SKILLS
:checkSkills

	if #prestige == 0 and #startSkillCheckNow == 0
		goto :checkSkillsFinish
	endif

	if #skillsUnlocked == 5 and #justUnlockSkills == 1
		toast skills unlocked, stop now until next prestige
		goto :checkSkillsFinish
	endif

	#skillCheckStepper = #skillCheckStepper + 1

	if #skillCheckStepper == 1
		// first skill
		sleep #btnDelay
		#time = #time + #btnDelay
		touchDown 0 466 650
		sleep #btnDelay
		#time = #time + #btnDelay
		touchUp 0
		goto :checkSkills
	elseif #skillCheckStepper <= 6
		goto :checkSkillsUnlock
	endif

	//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
goto :checkSkillsFinish

:checkSkillsUnlock
	
	sleep 200
	#time = #time + 250
	
	getRGB #colorRed #colorGreen #colorBlue 450 710
	
	if #colorBlue == 2 or #colorBlue == 5
		#skillsUnlocked = #skillsUnlocked + 1
	endif
	
	if #colorBlue == 2
		sleep 100
		touchDown 0 466 730
		sleep 250
		touchUp 0
		sleep 200
		#time = #time + 450
	endif
	
	if #justUnlockSkills == 0
		touchPress 0 466 730
		sleep 50
		touchPress 0 466 730
		sleep 50
		touchPress 0 466 730
		sleep 50
		#time = #time + 750
	endif
	
	if #skillCheckStepper == 6
		goto :checkSkills
	endif
goto :checkSkillsSlideDown

:checkSkillsFinish
	#skillCheckStepper = 0
	if #enableHeroes == 1
		goto :runActions
	endif
goto :closeMenu

	
: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
	#time = #time + 550
goto :checkSkills

:closeMenu
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuCloseX #menuCloseY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #menuSlideDelay
	#time = #time + #menuSlideDelay
goto :runActions

// ----------- LEVEL HEROES
:levelHeroes
	//open menu
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuHeroes #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep 1000
	#time = #time + 1000
	
	if #tryWithDelay == 1
		sleep 3000
	endif
	
	getColor #color1 95 765
	if #color1 == #colorWhite
		#tryWithDelay = 0
	
		#loopDetectionCount = 0
		#time = #time + 2000
		
		//force 1 down scroll
		touchDown 1 280 750
		touchMove 1 280 745
		sleep 100
		touchMove 1 280 740
		touchMove 1 280 735
		sleep 50
		touchMove 1 280 700
		touchMove 1 280 690
		sleep 50
		touchMove 1 280 500
		touchMove 1 280 450
		sleep 20
		touchMove 1 280 420
		touchMove 1 280 410
		sleep 50
		touchMove 1 280 400
		touchUp 1
		sleep 200
		
		#time = #time + 470
		
		goto :levelHeroesScrollDown
	endif
	
	#tryWithDelay = 1
	
goto :levelHeroes


:levelHeroesScrollDown
	#loopDetectionCount = #loopDetectionCount + 1
	if #loopDetectionCount == 50
		goto :loopDetected
	endif

	getColor #color1 440 760
	if #color1 == #colorGray
		#loopDetectionCount = 0
		goto :levelHeroesMaxOutMain
	endif

	touchDown 1 280 750
	touchMove 1 280 745
	sleep 100
	touchMove 1 280 740
	touchMove 1 280 735
	sleep 50
	touchMove 1 280 700
	touchMove 1 280 690
	sleep 50
	touchMove 1 280 500
	touchMove 1 280 450
	sleep 20
	touchMove 1 280 420
	touchMove 1 280 410
	sleep 50
	touchMove 1 280 400
	touchUp 1
	sleep 200
	
	#time = #time + 470
	
	goto :levelHeroesScrollDown

:levelHeroesMaxOutMain
	if #maxOutHero == 1
		touchDown 1 466 570
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 570
		sleep 40
		touchUp 1
	elseif #maxOutHero == 2
		touchDown 1 466 645
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 645
		sleep 40
		touchUp 1
	elseif #maxOutHero == 2
		touchDown 1 466 720
		sleep 40
		touchUp 1
		sleep 300
		touchDown 1 466 720
		sleep 40
		touchUp 1
	endif		
goto :levelHeroesPressLevelUp
	
	
:levelHeroesSlideUpCollection

	#loopDetectionCount = #loopDetectionCount + 1
	if #loopDetectionCount == 50
		goto :loopDetected
	endif

	getColor #color1 475 510
	if #color1 == #colorGray
		goto :closeMenu
	endif

	touchDown 1 280 510
	sleep 20
	touchMove 1 280 512
	touchMove 1 280 514
	touchMove 1 280 516
	sleep 20
	touchMove 1 280 520
	touchMove 1 280 540
	sleep 20
	touchMove 1 280 580
	touchMove 1 280 600
	sleep 20
	touchMove 1 280 630
	touchMove 1 280 670
	sleep 20
	touchMove 1 280 690
	touchMove 1 280 700
	sleep 20
	touchMove 1 280 736
	touchMove 1 280 738
	sleep 20
	touchMove 1 280 740
	touchMove 1 280 742
	sleep 200
	touchUp 1
	touchPress 1 280 750
	
	#time = #time + 540
	
goto :levelHeroesPressLevelUp

:levelHeroesPressLevelUp
	#pressLevelUpLoopCount = #pressLevelUpLoopCount + 1
	
	touchDown 1 466 720
	sleep 40
	touchUp 1
	touchDown 1 466 700
	sleep 40
	touchUp 1
	touchDown 1 466 680
	sleep 40
	touchUp 1
	touchDown 1 466 660
	sleep 40
	touchUp 1
	touchDown 1 466 640
	sleep 40
	touchUp 1
	touchDown 1 466 620
	sleep 40
	touchUp 1
	touchDown 1 466 600
	sleep 40
	touchUp 1
	touchDown 1 466 580
	sleep 40
	touchUp 1
	touchDown 1 466 560
	sleep 40
	touchUp 1
	touchDown 1 466 540
	sleep 40
	touchUp 1

	#time = #time + 440
	
	if #pressLevelUpLoopCount < #skillIntensity
		goto :levelHeroesPressLevelUp
	endif
	#pressLevelUpLoopCount = 0
goto :levelHeroesSlideUpCollection

// ----------- LEVEL UP
:levelUp
	//collect gold
	touchPress 0 30 215
	//open stats
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 #menuStats #menuY
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
		
	//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
	touchUp 0
	sleep 750
	#time = #time + 1100
	
goto :levelUpLoop


:levelUpLoop
	//lvl up
	sleep #btnDelay
	#time = #time + #btnDelay
	touchDown 0 466 580
	touchUp 0
	getColor #color1 460 600
	if #color1 == #colorLevelUpAvailable
		goto :levelUpLoop
	elseif #enableSkills == 1 or #enableHeroes == 1
		goto :runActions
	endif
goto :closeMenu

: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
goto :runActions

// ----------- CHECK BOSS
:checkBoss

	getColor #color1 139 85

	if #color1 == #colorWhite
		goto :pressSkills
	endif

	#color1 = 0
	#color2 = 0
	
	getColor #color2 459 29
		
	if #startBossSkill == 2
		getColor #color1 108 685
	elseif #startBossSkill == 4
		getColor #color1 268 685
	elseif #startBossSkill == 3
		getColor #color1 189 685
	elseif #startBossSkill == 5
		getColor #color1 348 685
	elseif #startBossSkill == 6
		getColor #color1 428 685
	endif

	if #color1 == #colorWhite and #color2 == #colorBlack
		goto :startBossWithSkills
	elseif #color2 == #colorBlack and #startBossSkill == 0
		touchDown 0 420 40
		sleep #btnDelay
		#time = #time + #btnDelay
		touchUp 0
		sleep #btnDelay
		#time = #time + #btnDelay
	elseif #hatchEggs == 1
		touchPress 0 30 285
		sleep #btnDelay
		#time = #time + #btnDelay
	elseif #enableClanShip == 1
		touchPress 0 30 165
		sleep #shipDelay
		#time = #time + #shipDelay
	endif
		
goto :pressSkills

:startBossWithSkills
	if #startBossSkill == 2 or #startBossSecondarySkill == 2
		touchPress 0 120 710
	endif
	if #startBossSkill == 4 or #startBossSecondarySkill == 4
		touchPress 0 280 710
	endif
	if #startBossSkill == 3 or #startBossSecondarySkill == 3
		touchPress 0 200 710
	endif
	if #startBossSkill == 5 or #startBossSecondarySkill == 5
		touchPress 0 360 710
	endif
	if #startBossSkill == 6 or #startBossSecondarySkill == 6
		touchPress 0 430 710
	endif
	
	#time = #time + 400
	
	//start boss
	touchDown 0 420 40
	sleep #btnDelay
	#time = #time + #btnDelay
	touchUp 0
	sleep #btnDelay
	#time = #time + #btnDelay
goto :pressSkills

// ----------- RANDOM ATTACK
:randomTouch
	if #enableFairies == 1
		rand #randomX 60 415
		rand #randomY 160 420
	else
		rand #randomX 60 415
		rand #randomY 270 420
	endif
	
	//equipment stacking
	if #randomX > 280 and #randomX < 430 and #randomY > 300
		goto :randomTouch
	endif
	
	if #enableTapping == 1
		touchDown 0 #randomX #randomY
		touchUp 0
	endif
	sleep #hitDelay
	#time = #time + #hitDelay
goto :start
Follow the usual setup instructions from the first page. Back up your current script, as this is not heavily tested. You'll likely need to level your Heavenly Strike up (either manually or with your config) for it to be effective.
Thanks again for you work Jason, you've helped us a lot. Any chance you can post your skill trees?
:handsdown::handsdown::handsdown: