bol_aureus

SidasAutoCarryPlugin - Ahri.lua

Aug 26th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.80 KB | None | 0 0
  1. --[[
  2.  
  3. SidasAutoCarryPlugin - Ahri.lua
  4. Features:
  5. * Use Q, W, E with AutoCarry
  6. * Use AutoAttacks
  7. * Draw Q Range
  8.  ]]--
  9.  
  10. local SkillQ = {spellKey = _Q, delay = 250, speed = 1650, range = 1000, width = 50}
  11. local SkillE = {spellKey = _E, delay = 250, speed = 1535, range = 1000, width = 50}
  12.  
  13. function PluginOnLoad()
  14.     mainLoad()
  15.     mainMenu()
  16. end
  17.  
  18. function PluginOnTick()
  19.     Target = AutoCarry.GetAttackTarget()
  20.     QREADY = (myHero:CanUseSpell(_Q) == READY)
  21.     WREADY = (myHero:CanUseSpell(_W) == READY)
  22.     EREADY = (myHero:CanUseSpell(_E) == READY)
  23.  
  24.     if Menu2.LastHit then
  25.         AutoCarry.CanAttack = true
  26.     end
  27.  
  28.     if Menu2.AutoCarry and Target then
  29.         if Menu.useQ and QREADY and GetDistance(Target) <= QRange then
  30.             AutoCarry.CastSkillshot(SkillQ, Target)
  31.         end
  32.         if Menu.useW and WREADY and GetDistance(Target) <= WRange then
  33.             CastSpell(_W)
  34.         end
  35.         if Menu.useE and EREADY and GetDistance(Target) <= ERange and not AutoCarry.GetCollision(SkillE, Target) then
  36.             AutoCarry.CastSkillshot(SkillE, Target)
  37.         end
  38.         if Menu.useAA then
  39.             AutoCarry.CanAttack = true
  40.         else
  41.             AutoCarry.CanAttack = false
  42.         end
  43.     end
  44. end
  45.  
  46. function PluginOnDraw()
  47.     if Menu.drawQ and not myHero.dead then
  48.         DrawCircle(QRange, myHero.x, myHero.y, myHero.z, 0x00FF00)
  49.     end
  50. end
  51.  
  52. function mainLoad()
  53.     Menu = AutoCarry.PluginMenu
  54.     Menu2 = AutoCarry.MainMenu
  55.     QREADY, WREADY, EREADY = false, false, false
  56.     QRange, WRange, ERange = 1000, 800, 1000
  57. end
  58.  
  59. function mainMenu()
  60.     Menu:addParam("useQ", "Use Q with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  61.     Menu:addParam("useW", "Use W with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  62.     Menu:addParam("useE", "Use E with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  63.     Menu:addParam("drawQ", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
  64.     Menu:addParam("useAA", "Use AutoAttacks", SCRIPT_PARAM_ONOFF, true)
  65. end
Advertisement
Add Comment
Please, Sign In to add comment