Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SidasAutoCarryPlugin - Warwick --
- function PluginOnLoad()
- mainLoad()
- mainMenu()
- end
- function PluginOnTick()
- Target = AutoCarry.GetAttackTarget()
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- if Menu.autoks then
- for i = 1, heroManager.iCount, 1 do
- local ksTarget = heroManager:getHero(i)
- if ValidTarget(ksTarget, QRange) then
- if ksTarget.health <= getDmg("Q", ksTarget, myHero) then CastSpell(_Q, Target) end
- end
- end
- end
- if Menu2.AutoCarry and Target then
- if WREADY and GetDistance(Target) <= WRange and Menu.useW then
- CastSpell(_W)
- end
- if QREADY and GetDistance(Target) <= QRange and Menu.useQ then
- CastSpell(_Q, Target)
- end
- end
- end
- function mainLoad()
- Menu = AutoCarry.PluginMenu
- Menu2 = AutoCarry.MainMenu
- AutoCarry.SkillsCrosshair.range = 1250
- QREADY, WREADY = false, false
- QRange, WRange = 400, 1250
- end
- function mainMenu()
- Menu:addParam("useQ", "Use Q with AutoCarry", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useW", "Use W with AutoCarry", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("autoks", "Auto KS with Q", SCRIPT_PARAM_ONOFF, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment