Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.14 KB | None | 0 0
  1.  
  2. function Lee:KillSteal()
  3.     if not self.menu.ks.enable:get() and (not self.menu.combo.rkick:get() or myHero.spellbook:CanUseSpell(3) ~= 0) then return end
  4.     for i, enemy in ipairs(enemy) do
  5.         if self:ValidTarget(enemy) and enemy.isTargetable then
  6.             local hp = enemy.health
  7.             local d = GetDistanceSqr(enemy)
  8.             local q = myHero.spellbook:CanUseSpell(0) == 0
  9.             local e = myHero.spellbook:CanUseSpell(2) == 0
  10.             local r = myHero.spellbook:CanUseSpell(3) == 0
  11.             local qd = self:Q3Dmg(enemy)
  12.             local qd1 = self:Q1Dmg(enemy)
  13.             local ed = self:EDmg(enemy)
  14.             local rd = self:RDmg(enemy)
  15.             if self.menu.combo.rkick:get() and r and d <= 350 ^ 2 and not self.menu.keys.insec:get() then
  16.                 self:CountEnemiesInR(enemy.boundingRadius * 2, myHero, Vector(enemy):extended(myHero, GetDistance(enemy) - 800), enemy, self.menu.combo.rkickhit:get())
  17.             end
  18.             if self.menu.ks.enable:get() then
  19.                 if self.menu.ks.q3:get() and not self.menu.ks.q2:get() and not self.menu.ks.q1:get() then
  20.                     if q and self:FirstSpell(0) and hp <= qd and d <= (1100 * 1100) then
  21.                         self:CastQ(enemy)
  22.                     elseif q and hp <= qd1 and enemy.buffManager:HasBuff('BlindMonkQOne') and not self:FirstSpell(0) and d <= 1300 ^ 2 then
  23.                         myHero.spellbook:CastSpell(0, myHero.networkId)
  24.                     end
  25.                 elseif not self.menu.ks.q3:get() and self.menu.ks.q2:get() and q and hp < qd1 and enemy.buffManager:HasBuff('BlindMonkQOne') and not self:FirstSpell(0) and d < (1300 * 1300) then
  26.                     myHero.spellbook:CastSpell(0, myHero.networkId)
  27.                 elseif not self.menu.ks.q3:get() and self.menu.ks.q1:get() and q and hp < qd1 and self:FirstSpell(0) and d < (1100 * 1100) then
  28.                     self:CastQ(enemy)
  29.                 elseif self.menu.ks.e:get() and e and self:FirstSpell(2) and hp < ed and d < (410 * 410) then
  30.                     myHero.spellbook:CastSpell(2, myHero.networkId)
  31.                 elseif self.menu.ks.r:get() and r and d <= (375 + enemy.boundingRadius) ^ 2 and hp <= rd then
  32.                     myHero.spellbook:CastSpell(3, enemy.networkId)
  33.                 end
  34.                 for i, enemy2 in ipairs(enemy) do
  35.                     if self:ValidTarget(enemy2) then
  36.                         if enemy2 ~= enemy and self:GetDistanceSqr(enemy, enemy2) <= 1100 and self:GetDistanceSqr(myHero, enemy2) <= 375 ^ 2 then
  37.                             if rd < hp then
  38.                                 local input = {delay = 0.25, speed = 1500, width = enemy2.boundingRadius, range = 1100,type = "linear",}
  39.                                 local pred = _G.Prediction.GetPrediction(enemy, input, enemy2)
  40.                                 if pred and pred.castPosition then
  41.                                     myHero.spellbook:CastSpell(3, enemy2.networkId)
  42.                                 end
  43.                             end
  44.                         end
  45.                     end
  46.                 end
  47.             end
  48.         end
  49.     end
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement