Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.60 KB | None | 0 0
  1. local function Combo()
  2.     if menu.combo.q:get() and player:spellSlot(0).level > 0 then
  3.         ts:update((QRange[player:spellSlot(0).level] + 600))
  4.         local target = ts.target
  5.         if target and common.IsValidTarget(target) and player:spellSlot(0).state == 0 and (player.par / player.maxPar) * 100 >= menu.combo.Mana:get() then
  6.             if MiniGun then
  7.                 if menu.combo.qr:get() then
  8.                     if #common.GetEnemyHeroesInRange(525) == 0 and CountEnemyHeroInRange(525) == 0 and target.pos:dist(player.pos) > (525 + player.boundingRadius + 50 + (player:spellSlot(0).level * 25)) then
  9.                         player:castSpell("self", 0)
  10.                     elseif CountEnemyHeroInRange(525) >= 3 then
  11.                         player:castSpell("self", 0)
  12.                     end
  13.                 end
  14.             elseif not MiniGun and menu.combo.qr:get() and target.pos:dist(player.pos) <= 525.5 then
  15.                 common.DelayAction(function()player:castSpell("self", 0)end, 1)
  16.             end
  17.         elseif player:spellSlot(0).state == 0 and (player.par / player.maxPar) * 100 >= menu.combo.Mana:get() and CountEnemyHeroInRange(800) == 0 and menu.combo.qe:get() and not MiniGun then
  18.             common.DelayAction(function()player:castSpell("self", 0)end, 0.5)
  19.         end
  20.     end
  21.     if menu.combo.w:get() and player:spellSlot(1).state == 0 and not Speed and not is_turret_near(player.pos) then
  22.         if #common.GetEnemyHeroesInRange(800) == 0 then
  23.             CastW()
  24.         end
  25.     end
  26.     if menu.combo.r:get() and player:spellSlot(3).state == 0 and not Speed then
  27.         ts:update(2500)
  28.         local target = ts.target
  29.         if target and common.IsValidTarget(target) and target.pos:dist(player.pos) > menu.combo.rr:get() and rDmg(target) > target.health then
  30.             CastR(target)
  31.         end
  32.     end -- here
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement