Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if myHero.charName ~= "TwistedFate" then return end
- function PluginOnLoad()
- --AutoCarry.PluginMenu:addParam("throwQ", "Harras enemy", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("A")) -- useless, too hard to get someone hit by bot pred :c
- AutoCarry.PluginMenu:addParam("autoQ", "Automaticly throw Q on stuned targets", SCRIPT_PARAM_ONOFF, true)
- AutoCarry.PluginMenu:addParam("selectgold", "Select Gold Card", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("W"))
- AutoCarry.PluginMenu:addParam("selectblue", "Select Blue Card", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("E"))
- AutoCarry.PluginMenu:addParam("selectred", "Select Red Card", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("T"))
- AutoCarry.PluginMenu:addParam("drawCircle", "Draw Q range", SCRIPT_PARAM_ONOFF, true)
- AutoCarry.PluginMenu:addParam("drawArrow", "Draw arrow to low hp enemies", SCRIPT_PARAM_ONOFF, true)
- AutoCarry.PluginMenu:addParam("selectgoldult", "Select gold card after ult", SCRIPT_PARAM_ONOFF, true)
- --AutoCarry.PluginMenu:addParam("drawQpred", "Draw Q prediction on harras", SCRIPT_PARAM_ONOFF, true) -- cant do this with SAC I think :C
- AutoCarry.PluginMenu:permaShow("autoQ")
- PrintChat("<font color='#E97FA5'>>> TF Helper v2.0 - Rewritten as SAC Plugin!</font>")
- AutoCarry.SkillsCrosshair.range = 1450
- AutoCarry.OverrideCustomChampionSupport = true
- SelectedCard = false
- end
- function PluginOnTick()
- if NextCheck ~= nil then
- if GetTickCount() > NextCheck then
- if myHero:CanUseSpell(_W) == READY then
- if AutoCarry.PluginMenu.selectgold then if myHero:GetSpellData(_W).name == "goldcardlock" then CastSpellEx(_W) elseif myHero:GetSpellData(_W).name == "PickACard" then CastSpellEx(_W) end end
- if AutoCarry.PluginMenu.selectblue then if myHero:GetSpellData(_W).name == "bluecardlock" then CastSpellEx(_W) elseif myHero:GetSpellData(_W).name == "PickACard" then CastSpellEx(_W) end end
- if AutoCarry.PluginMenu.selectred then if myHero:GetSpellData(_W).name == "redcardlock" then CastSpellEx(_W) elseif myHero:GetSpellData(_W).name == "PickACard" then CastSpellEx(_W) end end
- end
- if SelectCardForUlt == true then
- if myHero:GetSpellData(_W).name == "goldcardlock" then
- CastSpellEx(_W)
- SelectCardForUlt = false
- elseif myHero:GetSpellData(_W).name == "PickACard" then
- CastSpellEx(_W)
- end
- end
- NextCheck = GetTickCount() + 250
- end
- else
- NextCheck = 0
- end
- if AutoCarry.PluginMenu.autoQ then
- for _, enemy in pairs(AutoCarry.EnemyTable) do
- if ValidTarget(enemy) and not enemy.canMove and GetDistance(enemy) < 1450 then
- CastSpell(_Q, enemy.x, enemy.z)
- end
- end
- end
- end
- function PluginOnProcessSpell(unit, spell)
- if unit.isMe and spell.name == "gate" then if AutoCarry.PluginMenu.selectgoldult then SelectCardForUlt = true end end
- end
- function PluginOnDraw()
- if not myHero.dead and AutoCarry.PluginMenu.drawCircle then
- DrawCircle(myHero.x, myHero.y, myHero.z, 1450, 0x540069)
- end
- if AutoCarry.PluginMenu.drawArrow and myHero:CanUseSpell(_R) == READY then
- for _, enemy in pairs(AutoCarry.EnemyTable) do
- if ValidTarget(enemy) and enemy.health < enemy.maxHealth*0.25 and GetDistance(enemy) < 6000 then
- local startPos = Vector(myHero.x,myHero.y,myHero.z)
- local endPos = Vector(enemy.x, enemy.y, enemy.z)
- DrawArrows(D3DXVECTOR3(startPos.x,startPos.y,startPos.z),D3DXVECTOR3(endPos.x,endPos.y,endPos.z),100,0xE97FA5,100)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment