bol_aureus

SidasAutoCarryPlugin - JarvanIV.lua

Sep 16th, 2013
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. local SkillE = {spellKey = _E, range = 850, speed = math.huge, delay = 200, width = 50}
  2.  
  3. function PluginOnLoad()
  4.     mainLoad()
  5.     mainMenu()
  6. end
  7.  
  8. function PluginOnTick()
  9.     Target = AutoCarry.GetAttackTarget()
  10.     QREADY = (myHero:CanUseSpell(_Q) == READY)
  11.     WREADY = (myHero:CanUseSpell(_W) == READY)
  12.     EREADY = (myHero:CanUseSpell(_E) == READY)
  13.     RREADY = (myHero:CanUseSpell(_R) == READY)
  14.  
  15.     if Menu2.AutoCarry and Target then
  16.         if Menu.useE and GetDistance(Target) <= ERange and EREADY then
  17.             AutoCarry.CastSkillshot(SkillE, Target)
  18.         end
  19.         if (Menu.useQ and GetDistance(Target) <= QRange and QREADY) or Menu2.MixedMode then
  20.             CastSpell(_Q, Target.x, Target.z)
  21.         end
  22.         if Menu.useW and GetDistance(Target) <= WRange and WREADY then
  23.             CastSpell(_W)
  24.         end
  25.     end
  26. end
  27.  
  28. function PluginOnDraw()
  29.     if Menu.drawE and EREADY then
  30.         DrawCircle(myHero.x, myHero.y, myHero.z, ERange, 0x00FF00)
  31.     end
  32. end
  33.  
  34. function mainLoad()
  35.     AutoCarry.SkillsCrosshair.range = 850
  36.     Menu = AutoCarry.PluginMenu
  37.     Menu2 = AutoCarry.MainMenu
  38.     QRange, WRange, ERange = 770, 300, 850
  39.     QREADY, WREADY, EREADY, RREADY = false, false, false, false
  40. end
  41.  
  42. function mainMenu()
  43.     Menu:addParam("useQ", "Use Q with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  44.     Menu:addParam("useW", "Use W with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  45.     Menu:addParam("useE", "Use E with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  46.     Menu:addParam("drawE", "Draw E Range", SCRIPT_PARAM_ONOFF, true)
  47. end
Advertisement
Add Comment
Please, Sign In to add comment