Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by ta ( 13 years ago )
if myHero.charName == "LeeSin" then 



require "AllClass"

local Q = false

local wardRange = 550 --Ward range is 600. I set it smaller so the ward won't pop too far to the other side of the wall, rendering your jump out of reach.

local jumpDelay = 100 -- a slight delay after warding before jumping

local HK = 88 --z

local wardTarget

local scriptActive 

local so = false

local shk = 32

local lastJump = 0

local jumpReady = false

local range = 975

local juke = false

local jukeHK = 67

local Qf = false

local QfHK = 85

local kill = {}

local proHK = 84

local pro = false 

local ggultHK = 88

local ggult = false

local ts = TargetSelector(TARGET_LOW_HP,range)

local tr = TargetSelector(TARGET_LOW_HP,375)

function OnLoad()

if player.charName == "LeeSin" then

  jumpSlot = _W

  jumpRange = 700

end

end





function OnCreateObj(obj)



 if obj.name:find("_Watched") then 



  for i=1, heroManager.iCount do

   local target = heroManager:GetHero(i) 

  if target.team ~= myHero.team and GetDistance(target,obj) <80 then

  Q = true

 end

end

end

end



function jumpNowAlready()

 if scriptActive or ggult and jumpReady == true then

  for k = 1, objManager.maxObjects do

  local object = objManager:GetObject(k)

   if object ~= nil and (string.find(object.name, "Ward") ~= nil or string.find(object.name, "Wriggle") ~= nil) and math.sqrt((mousePos.x - object.x)*(mousePos.x - object.x) + (mousePos.z - object.z)*(mousePos.z - object.z)) < 300 then

    CastSpell( jumpSlot, object)

    jumpReady = false

   end

  end

 end

end



function OnTick()

Damage()



if Qf then

  local myE = math.floor((player:GetSpellData(_E).level-1)*35 + 60 + player.damage * 1)

    for k = 1, objManager.maxObjects do

     local mini

   if minionObjectI ~= nil and string.find(minionObjectI.name,"Minion_") == 1 and minionObjectI.team ~= player.team and minionObjectI.dead == false then

       if  player:GetDistance(minionObjectI) < 375 and minionObjectI.health <= player:CalcMagicDamage(minionObjectI, myE) and myHero:GetSpellData(_E).name == "BlindMonkEOne" then

     CastSpell(_E, minionObjectI)

       end

      end

  end

end









if jumpReady == true and GetTickCount() - lastJump > jumpDelay then

  jumpNowAlready()

end

 if scriptActive then



  local x = mousePos.x

  local z = mousePos.z

  local dx = x - player.x

  local dz = z - player.z

  local rad1 = math.atan2(dz, dx)



  --Crap code here needs cleaning up

  if GetInventorySlotItem(3154) ~= nil then

   wardSlot = GetInventorySlotItem(3154)



   if player:CanUseSpell(wardSlot) ~= READY then

    if GetInventorySlotItem(2044) ~= nil then

     wardSlot = GetInventorySlotItem(2044)

    elseif GetInventorySlotItem(2043) ~= nil then

     wardSlot = GetInventorySlotItem(2043)

    else

     wardSlot = nil

    end

   end

  elseif GetInventorySlotItem(2044) ~= nil then

   wardSlot = GetInventorySlotItem(2044)

  elseif GetInventorySlotItem(2043) ~= nil then

   wardSlot = GetInventorySlotItem(2043)

  else

   wardSlot = nil

  end

  

   if player:CanUseSpell(jumpSlot) == READY and GetTickCount() - lastJump > 2000 and wardSlot ~= nil and math.sqrt(dx*dx + dz*dz) < 600 then --Increase this number for smoother flash. (might fail if too large)

    CastSpell( wardSlot, x, z )

    jumpReady = true

        lastJump = GetTickCount()

   end

  

 end





for i=1, heroManager.iCount do

 local target = heroManager:GetHero(i)

-- JumpStuff



 

 if pro then

  if target.type == "obj_AI_Hero" and target.team ~= myHero.team and target.dead == false and myHero:GetSpellData(_Q).name == "blindmonkqtwo" and myHero:GetSpellData(_E).level > 0 and myHero:CanUseSpell(_E) == READY and  myHero:CanUseSpell(_R) == READY and myHero:GetDistance(target) < 350 then

   CastSpell(_E)

   CastSpell(_E)

   CastSpell(_R,target)

  end

  if myHero:CanUseSpell(_R) == COOLDOWN and myHero:GetDistance(target) > 800 then

   CastSpell(_Q)

   end

 

  if target.type == "obj_AI_Hero" and  target.team == myHero.team and target.dead == false and myHero:CanUseSpell(_W) == READY and myHero.charName ~= target.charName and myHero:GetSpellData(_W).name == "BlindMonkWOne" and myHero:GetDistance(target) < 700 then

   CastSpell(_W,target)

  end

  

 end

  

 

 if ggult and target.team ~= myHero.team and target.visible == true and target.dead == false and myHero:GetDistance(target) < 800 and target.type == "obj_AI_Hero" then



  local x = mousePos.x

  local z = mousePos.z

  local dx = x - player.x

  local dz = z - player.z

  local rad1 = math.atan2(dz, dx)



  --Crap code here needs cleaning up

  if GetInventorySlotItem(3154) ~= nil then

   wardSlot = GetInventorySlotItem(3154)



   if player:CanUseSpell(wardSlot) ~= READY then

    if GetInventorySlotItem(2044) ~= nil then

     wardSlot = GetInventorySlotItem(2044)

    elseif GetInventorySlotItem(2043) ~= nil then

     wardSlot = GetInventorySlotItem(2043)

    else

     wardSlot = nil

    end

   end

  elseif GetInventorySlotItem(2044) ~= nil then

   wardSlot = GetInventorySlotItem(2044)

  elseif GetInventorySlotItem(2043) ~= nil then

   wardSlot = GetInventorySlotItem(2043)

  else

   wardSlot = nil

  end

  

  

   if player:CanUseSpell(jumpSlot) == READY and GetTickCount() - lastJump > 2000 and wardSlot ~= nil and math.sqrt(dx*dx + dz*dz) < 600 then --Increase this number for smoother flash. (might fail if too large)

    CastSpell( wardSlot, x, z)

    if myHero:GetDistance(target)<375 then

    CastSpell(_R,target)

    end

    jumpReady = true

        lastJump = GetTickCount()

   

  end

  if myHero:GetDistance(target)<375 then

    CastSpell(_R,target)

    end

 end





















-- Leesin Stuff

if so then

 CastSpell(_Q,mousePos.x,mousePos.z)

  if Q then

   CastSpell(_Q)

  end

if target ~= nil and myHero:GetDistance(target) < 200 and target.type == "obj_AI_Hero" and target.team ~= myHero.team then 

  CastSpell(_E)

  CastSpell(_E)

 end





end







if juke then

 --if member ~= nil and member.type == "obj_AI_Hero" and member.team == team then

  if target ~= nil and target.type == "obj_AI_Hero" and target.team == myHero.team and target.charName ~= myHero.charName and myHero:GetDistance(target)  < 700 and not target.dead and myHero:GetSpellData(_Q).name == "blindmonkqtwo" and myHero:CanUseSpell(_W) == READY then

   CastSpell(_Q)

   CastSpell(_W,target)

    

  end

 end

end

end

--End of LeeSinStuff









function Damage()

ts:update()

 for i=1, heroManager.iCount do

    local enemy = heroManager:GetHero(i)

    if ValidTarget(enemy) then

  local qdmg = getDmg("Q",enemy,myHero)

  local qdmg2 = getDmg("Q",enemy,myHero,2)

  local edmg = getDmg("E",enemy,myHero)

  local rdmg = getDmg("R",enemy,myHero)

  

  local possible = qdmg + qdmg2 + edmg 

  local thatkill = 0

  local thatkillgg = 0

 

  if myHero:CanUseSpell(_Q) == READY then

   thatkill = thatkill + qdmg + qdmg2

   thatkillgg = thatkillgg + qdmg + qdmg2

  end

  if myHero:CanUseSpell(_E) == READY then

   thatkill = thatkill + edmg

   thatkillgg = thatkillgg + edmg

  end

  if myHero:CanUseSpell(_R) == READY then

   thatkillgg = thatkillgg + rdmg

  end

  if thatkill >= enemy.health then 

   kill[i] = 2

  elseif possible>= enemy.health then

   kill[i] = 1

  else 

   kill[i] = 0

  end

 end

end

end







function OnWndMsg(msg,key)

    if key == HK then

        if msg == KEY_DOWN then

            scriptActive = true

        else

            scriptActive = false

        end

    end

  if key == jukeHK then

        if msg == KEY_DOWN then

            juke = true

        else

            juke = false

        end

    end

   if key == shk then

        if msg == KEY_DOWN then

            so = true

        else

            so = false

        end

    end

 

 if key == QfHK then

  if msg == KEY_DOWN then

   if Qf then

    Qf = false

    PrintChat("Auto E Farm Disabled")

   else

    Qf = true

    PrintChat("Auto E Farm Enabled")

   end

  end

 end

 if key == ggultHK then

        if msg == KEY_DOWN then

            ggult = true

        else

            ggult = false

        end

    end

 if key == proHK then

        if msg == KEY_DOWN then

            pro = true

        else

            pro = false

        end

    end

end



function OnDraw()

DrawCircle(myHero.x,myHero.y,myHero.z,range,0xFF80FF00)

DrawCircle(myHero.x,myHero.y,myHero.z,700,0xFF80FF00)

DrawCircle(myHero.x,myHero.y,myHero.z,600,0xB820C3)

for i=1, heroManager.iCount do

    local enemydraw = heroManager:GetHero(i)

     if ValidTarget(enemydraw) then

     if kill[i] == 1 then

      PrintFloatText(enemydraw,0,"Cooldown")

      DrawCircle(enemydraw.x,enemydraw.y, enemydraw.z, 100, 0xFF80FF00)

     elseif kill[i] == 2 then

      PrintFloatText(enemydraw,0,"ComboKill")

      DrawCircle(enemydraw.x, enemydraw.y, enemydraw.z, 100, 0xFF80FF00)

      DrawCircle(enemydraw.x, enemydraw.y, enemydraw.z, 150, 0xFF80FF00)

     end

     end

    

  end



if ts.target~= nil then

DrawCircle(ts.target.x,ts.target.y,ts.target.z,100,0xFF80FF00)

end



for i=1, heroManager.iCount do

 local target = heroManager:GetHero(i)

  if target.dead == false and target.visible == true and target.type == "obj_AI_Hero" and target.team ~= myHero.team and myHero:CanUseSpell(_R) == READY then

  DrawCircle(target.x,target.y,target.z,350,0xFF80FF00)

end

end

end

PrintChat(">> UnlimitedLeeSin Loaded!")

end

 

Revise this Paste

Your Name: Code Language: