Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- SidasAutoCarryPlugin - Ahri.lua
- Features:
- * Use Q, W, E with AutoCarry
- * Use AutoAttacks
- * Draw Q Range
- ]]--
- local SkillQ = {spellKey = _Q, delay = 250, speed = 1650, range = 1000, width = 50}
- local SkillE = {spellKey = _E, delay = 250, speed = 1535, range = 1000, width = 50}
- 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)
- if Menu2.LastHit then
- AutoCarry.CanAttack = true
- end
- if Menu2.AutoCarry and Target then
- if Menu.useQ and QREADY and GetDistance(Target) <= QRange then
- AutoCarry.CastSkillshot(SkillQ, Target)
- end
- if Menu.useW and WREADY and GetDistance(Target) <= WRange then
- CastSpell(_W)
- end
- if Menu.useE and EREADY and GetDistance(Target) <= ERange and not AutoCarry.GetCollision(SkillE, Target) then
- AutoCarry.CastSkillshot(SkillE, Target)
- 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(QRange, myHero.x, myHero.y, myHero.z, 0x00FF00)
- end
- end
- function mainLoad()
- Menu = AutoCarry.PluginMenu
- Menu2 = AutoCarry.MainMenu
- QREADY, WREADY, EREADY = false, false, false
- QRange, WRange, ERange = 1000, 800, 1000
- 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("useE", "Use E with AutoCarry", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("drawQ", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("useAA", "Use AutoAttacks", SCRIPT_PARAM_ONOFF, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment