bol_aureus

SidasAutoCarryPlugin - Blitzcrank.lua

Aug 9th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.10 KB | None | 0 0
  1. --[[
  2. Sida's AutoCarry Plugin - Blitzcrank.lua
  3. by Aureus
  4.  
  5. Features:
  6. * Option to use Q, W, E, and R with AutoCarry
  7. * Auto Ult with slider
  8. * Auto KS with ult
  9. * Draw Q Range
  10.  
  11. --]]
  12.  
  13. local SkillQ = {spellKey = _Q, range = 925, speed = 1800, delay = 250, width = 120}
  14.  
  15. function PluginOnLoad()
  16.     mainLoad()
  17.     mainMenu()
  18. end
  19.  
  20. function PluginOnTick()
  21.     Target = AutoCarry.GetAttackTarget()
  22.     QREADY = (myHero:CanUseSpell(_Q) == READY)
  23.     WREADY = (myHero:CanUseSpell(_W) == READY)
  24.     EREADY = (myHero:CanUseSpell(_E) == READY)
  25.     RREADY = (myHero:CanUseSpell(_R) == READY)
  26.  
  27.     if Menu.autoks then
  28.         for i = 1, heroManager.iCount, 1 do
  29.             local ksTarget = heroManager:getHero(i)
  30.             if ValidTarget(ksTarget, QRange) then
  31.                 if ksTarget.health <= getDmg("R", ksTarget, myHero) then CastSpell(_R) end
  32.             end
  33.         end
  34.     end
  35.  
  36.     if Menu2.AutoCarry and Target then
  37.         if Menu.useQ and QREADY and GetDistance(Target) <= QRange and not AutoCarry.GetCollision(SkillQ, myHero, Target) then
  38.             AutoCarry.CastSkillshot(SkillQ, Target)
  39.         end
  40.         if GetDistance(Target) <= 125 then
  41.             if WREADY and Menu.useW then CastSpell(_W) end
  42.             if EREADY and Menu.useE then CastSpell(_E) end
  43.         end
  44.         if Menu.useR then
  45.             local champCount = 0
  46.             for i = 1, heroManager.iCount do
  47.                 local enemy = heroManager:getHero(i)
  48.                 if ValidTarget(enemy, RRange) then
  49.                     champCount = champCount + 1
  50.                 end
  51.             end
  52.  
  53.             if Menu.minR <= champCount then
  54.                 CastSpell(_R)
  55.             end
  56.         end
  57.     end
  58. end
  59.  
  60. function mainLoad()
  61.     AutoCarry.SkillsCrosshair.range = 925
  62.     Menu = AutoCarry.PluginMenu
  63.     Menu2 = AutoCarry.MainMenu
  64.     QRange, RRange = 925, 450
  65.     QREADY, EREADY, RREADY = false, false, false
  66. end
  67.  
  68. function mainMenu()
  69.     Menu:addParam("autoks", "Auto KS with Ult", SCRIPT_PARAM_ONOFF, true)
  70.     Menu:addParam("useQ", "Use Q with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  71.     Menu:addParam("useE", "Use E with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  72.     Menu:addParam("useR", "Auto Ult", SCRIPT_PARAM_ONOFF, true)
  73.     Menu:addParam("minR", "Minimum enemies for Auto Ult", SCRIPT_PARAM_SLICE, 1, 0, 4, 0)
  74.     Menu:addParam("drawQ", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
  75. end
Advertisement
Add Comment
Please, Sign In to add comment