Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SkillE = {spellKey = _E, range = 850, speed = math.huge, delay = 200, 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)
- RREADY = (myHero:CanUseSpell(_R) == READY)
- if Menu2.AutoCarry and Target then
- if Menu.useE and GetDistance(Target) <= ERange and EREADY then
- AutoCarry.CastSkillshot(SkillE, Target)
- end
- if (Menu.useQ and GetDistance(Target) <= QRange and QREADY) or Menu2.MixedMode then
- CastSpell(_Q, Target.x, Target.z)
- end
- if Menu.useW and GetDistance(Target) <= WRange and WREADY then
- CastSpell(_W)
- end
- end
- end
- function PluginOnDraw()
- if Menu.drawE and EREADY then
- DrawCircle(myHero.x, myHero.y, myHero.z, ERange, 0x00FF00)
- end
- end
- function mainLoad()
- AutoCarry.SkillsCrosshair.range = 850
- Menu = AutoCarry.PluginMenu
- Menu2 = AutoCarry.MainMenu
- QRange, WRange, ERange = 770, 300, 850
- QREADY, WREADY, EREADY, RREADY = false, false, false, false
- 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("drawE", "Draw E Range", SCRIPT_PARAM_ONOFF, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment