Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Sidas AutoCarry Plugin - Xin Zhao
- Made by: Aureus †
- Features:
- * AA Reset with Q and W
- * Initiate with E
- * Use ult with minimum champs(slider)
- * Auto KS with E and R (toggleable)
- --]]
- 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)
- --Auto KS
- if Menu.autoks and EREADY or RREADY then
- for i = 1, heroManager.iCount, 1 do
- local ksTarget = heroManager:getHero(i)
- if ValidTarget(ksTarget, ERange) then
- if ksTarget.health <= getDmg("E", ksTarget, myHero) then
- CastSpell(_E, ksTarget)
- end
- end
- if ValidTarget(ksTarget, 187.5) then
- if ksTarget.health <= getDmg("R", ksTarget, myHero) then
- CastSpell(_R)
- end
- end
- end
- end
- --Min Ult Count
- if Menu.useR and RREADY then
- local champCount = 0
- for i = 1, heroManager.iCount do
- local enemy = heroManager:getHero(i)
- if ValidTarget(enemy, 187.5) then
- champCount = champCount + 1
- end
- end
- if champCount >= (Menu.minR) then
- CastSpell(_R)
- end
- end
- --Main Combo / AutoCarry
- if Target and Menu2.AutoCarry then
- if EREADY and Menu.useE and GetDistance(Target) <= ERange then
- CastSpell(_E, Target)
- end
- if WREADY and Menu.useW and GetDistance(Target) <= 175 then
- CastSpell(_W)
- end
- end
- end
- function OnAttacked()
- if Target and Menu2.AutoCarry then
- if WREADY and Menu.useW and GetDistance(Target) <= 175 then CastSpell(_W) end
- if QREADY and Menu.useQ and GetDistance(Target) <= 175 then CastSpell(_Q) end
- end
- end
- function mainLoad()
- AutoCarry.SkillsCrosshair.range = 600
- Menu = AutoCarry.PluginMenu
- Menu2 = AutoCarry.MainMenu
- QREADY, WREADY, EREADY, RREADY = false, false, false, false
- ERange, RRange = 600, 187.5
- end
- function mainMenu()
- Menu:addParam("autoks", "Auto KS with E and R", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("sep", "-- Abilities --", SCRIPT_PARAM_INFO, "")
- Menu:addParam("useQ", "Use Q with AutoCarry", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useW", "Use W with AutoCarry", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useE", "Use E with AutoCarry", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useR", "Auto use ULt", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("minR", "Minimum enemies to use Ult", SCRIPT_PARAM_SLICE, 1, 0, 4, 0)
- end
Advertisement
Add Comment
Please, Sign In to add comment