bol_aureus

SidasAutoCarryPlugin - Chogath.lua

Aug 7th, 2013
1,496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.35 KB | None | 0 0
  1. local SkillQ = {spellKey = _Q, range = 950, speed = 0.9, width = 190, delay = 290}
  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.     RREADY = (myHero:CanUseSpell(_R) == READY)
  13.  
  14.     if Menu.autoks then
  15.         for i = 1, heroManager.iCount, 1 do
  16.             local ksTarget = heroManager:getHero(i)
  17.             if ValidTarget(ksTarget, RRange) and GetDistance(Target) <= RRange then
  18.                 if ksTarget.health <= getDmg("R", Target, myHero) then
  19.                     CastSpell(_R, Target)
  20.                 end
  21.             end
  22.         end
  23.     end
  24.  
  25.     if Target and Menu2.AutoCarry then
  26.         if Menu.useQ and QREADY and GetDistance(Target) <= QRange then
  27.             AutoCarry.CastSkillshot(SkillQ, Target)
  28.         end
  29.         if Menu.useW and WREADY and GetDistance(Target) <= WRange then
  30.             CastSpell(_W, Target.x, Target.z)
  31.         end
  32.     end
  33. end
  34.  
  35. function mainLoad()
  36.     AutoCarry.SkillsCrosshair.range = 950
  37.     QRange, WRange, RRange = 950, 650, 200
  38.     QREADY, WREADY, RREADY = false, false, false
  39.     Menu = AutoCarry.PluginMenu
  40.     Menu2 = AutoCarry.MainMenu
  41. end
  42.  
  43. function mainMenu()
  44.     Menu:addParam("autoks", "Auto KS with R", SCRIPT_PARAM_ONOFF, true)
  45.     Menu:addParam("useQ", "Use Q with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  46.     Menu:addParam("useW", "Use W with AutoCarry", SCRIPT_PARAM_ONOFF, true)
  47. end
Advertisement
Add Comment
Please, Sign In to add comment