Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PluginOnLoad()
- mainLoad()
- mainMenu()
- end
- function PluginOnTick()
- Target = AutoCarry.GetAttackTarget()
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- RREADY = (myHero:CanUseSpell(_R) == READY)
- if Menu.autoks and (QREADY or WREADY or EREADY or RREADY)
- for i = 1, heroManager.iCount, 1 do
- local ksTarget = heroManager:getHero(i)
- if ValidTarget(ksTarget, 700) then
- if ksTarget.health <= getDmg("E", ksTarget, myHero) then
- CastSpell(_E, ksTarget.x, ksTarget.z)
- end
- end
- if ValidTarget(ksTarget, 850) then
- if ksTarget.health <= getDmg("R", ksTarget, myHero) then
- CastSpell(_R, ksTarget)
- end
- end
- end
- end
- if Menu2.AutoCarry then
- if QREADY and GetDistance(Target) <= 600 then
- CastSpell(_Q)
- end
- if WREADY then
- CastSpell(_W, myHero)
- end
- if EREADY and GetDistance(Target) <= 700 then
- CastSpell(_E, Target.x, Target.z)
- end
- if RREADY and GetDistance(Target) <= 850 then
- CastSpell(_R, Target)
- end
- end
- if not Target then
- CastSpell(_R, mousePos.x, mousePos.z)
- end
- end
- function OnAttacked()
- if Target and Menu2.AutoCarry then
- if QREADY and Menu.useQ and GetDistance(Target) <= 125 then CastSpell(_Q) end
- end
- end
- function mainLoad()
- Menu = AutoCarry.PluginMenu
- Menu2 = AutoCarry.MainMenu
- QREADY, WREADY, EREADY, RREADY = false, false, false, false
- end
- function mainMenu()
- Menu:addParam("autoks", "Auto Kill with E and R", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("sep", "-- Abilities --", SCRIPT_PARAM_INFO, "")
- Menu:addParam("useQ", "Use Q with Combo", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useW", "Use W on self with Combo", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useE", "Use E with Combo", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useR" "Use R with Combo", SCRIPT_PARAM_ONOFF, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment