Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- SidasAutoCarryPlugin - Morgana
- by Aureus
- Features:
- * Use Q and W with AutoCarry
- * Auto Ult with minimum enemies
- * Use AutoAttacks
- * Draw Q Range
- Credits to Hex for template, vadash for Q values (practically copy-pasted from his goodevade), and ofcourse Sida for this wonderful feature
- ]]--
- local SkillQ = {spellKey = _Q, range = 1300, speed = 1200, width = 70, delay = 250}
- function PluginOnLoad()
- mainLoad()
- mainMenu()
- end
- function PluginOnTick()
- Target = AutoCarry.GetAttackTarget()
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- RREADY = (myHero:CanUseSpell(_R) == READY)
- if Menu2.LastHit then
- AutoCarry.CanAttack = true
- end
- if Menu.useR and RREADY then
- local champCount = 0
- for i = 1, heroManager.iCount do
- local enemy = heroManager:getHero(i)
- if ValidTarget(enemy, RRange) then
- champCount = champCount + 1
- end
- end
- if Menu.minR <= champCount then
- CastSpell(_R)
- end
- end
- if Menu2.AutoCarry and Target then
- if Menu.useQ and QREADY and GetDistance(Target) <= QRange and not AutoCarry.GetCollision(SkillQ, Target) then
- AutoCarry.CastSkillshot(SkillQ, Target)
- end
- if Menu.useW and WREADY and GetDistance(Target) <= WRange and not Target.canMove then
- CastSpell(_W, Target.x, Target.z)
- end
- if Menu.useAA then
- AutoCarry.CanAttack = true
- else
- AutoCarry.CanAttack = false
- end
- end
- end
- function PluginOnDraw()
- if Menu.drawQ and not myHero.dead then
- DrawCircle(myHero.x, myHero.y, myHero.z, QRange, 0x00FF00)
- end
- end
- function mainLoad()
- Menu = AutoCarry.PluginMenu
- Menu2 = AutoCarry.MainMenu
- AutoCarry.SkillsCrosshair.range = 1300
- QREADY, WREADY, RREADY = false, false, false
- QRange, WRange, RRange = 1300, 900, 600
- 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("useR", "Auto Ult", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("minR", "Minimum enemies to Auto Ult", SCRIPT_PARAM_SLICE, 1, 0, 4, 0)
- Menu:addParam("useAA", "Use AutoAttacks", SCRIPT_PARAM_ONOFF, false)
- Menu:addParam("drawQ", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment