s5w95 / Tap-Titans-2-Progress-Bot

A HiroMacro Progress Bot for Tap Titans 2
44 stars 82 forks source link

justUnlockSkills is not working #35

Open chrismok opened 6 years ago

chrismok commented 6 years ago

I put 0 into justUnlockSkills

I expected to level up skills as much as possible but it only level-up one time

jayrc commented 6 years ago

Here are a few little edits that may help:

From:

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

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

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

if #skillsUnlocked == 5 and #justUnlockSkills == 1 and #skillCheckStepper == 2 and #maxOutHeavenlyStrike == 1
    goto :checkSkillsFinish
endif

#skillCheckStepper = #skillCheckStepper + 1

if #maxOutHeavenlyStrike == 1
    #colorBlue = 2
else
    getRGB #colorRed #colorGreen #colorBlue 450 634
endif

if #skillCheckStepper == 1 and #colorBlue == 2
    // 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 180 650
sleep 200
touchMove 1 180 600
sleep 50
touchMove 1 180 700
sleep 50
touchMove 1 180 750
sleep 50
touchMove 1 180 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

To:

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

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

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

if #skillsUnlocked == 5 and #justUnlockSkills == 1 and #skillCheckStepper == 2 and #maxOutHeavenlyStrike == 1
    goto :checkSkillsFinish
endif

#skillCheckStepper = #skillCheckStepper + 1

if #maxOutHeavenlyStrike == 1
    #colorBlue = 2
else
    getRGB #colorRed #colorGreen #colorBlue 450 634
endif

if #skillCheckStepper == 1 and #colorBlue == 2
    // first skill
    sleep #btnDelay
    #time = #time + #btnDelay
    touchDown 0 466 650
    sleep #btnDelay
    #time = #time + #btnDelay
    touchUp 0
    //My extra hit to max the Strike Skill
    sleep 50
    touchPress 0 466 650
    sleep 50
    touchPress 0 466 650
    sleep 50
    touchPress 0 300 650
    sleep 50
    #time = #time + 750
    goto :checkSkills
elseif #skillCheckStepper <= 6
    goto :checkSkillsUnlock
endif

//slide back
touchDown 1 180 650
sleep 200
touchMove 1 180 600
sleep 50
touchMove 1 180 700
sleep 50
touchMove 1 180 750
sleep 50
touchMove 1 180 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
    //moved the hit to hit the pullout, it may not continue to run, but it will at least max them once.
    touchPress 0 300 730
    sleep 50
    #time = #time + 750
endif