N7Reny

Blue Eagle Solari Combo

Jul 20th, 2015
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.45 KB | None | 0 0
  1. Config = scriptConfig("Leona", "Leona")
  2. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  3. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  4. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  5. Config.addParam("R", "Use R in combo", SCRIPT_PARAM_ONOFF, true)
  6. PrintChat("Blue Eagle Solari 0.1 by N7Reny")
  7. OnLoop(function(myHero)
  8.         local rang = GetTarget(1700)
  9.             if KeyIsDown(0x20) then
  10.                    if ValidTarget(rang, 1250) then
  11. if Config.E then
  12.                 local EPred = GetPredictionForPlayer(GetMyHeroPos(),rang,GetMoveSpeed(rang),1900,500,875,70,true,true)
  13.                  if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  14.                  CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  15.                  end
  16. if Config.Q then
  17.                 if CanUseSpell(myHero, _Q) == READY and IsInDistance(rang, 400)  then
  18.                         CastTargetSpell(rang,_Q)
  19.             end
  20. if Config.W then
  21.                 if  CanUseSpell(myHero, _W) == READY and IsInDistance(rang, 600) then
  22.                         CastTargetSpell(myHero,_W)
  23.             end
  24.  
  25. if Config.R then
  26.                 local RPred = GetPredictionForPlayer(GetMyHeroPos(),rang,GetMoveSpeed(rang),1900,500,1200,70,true,true)
  27.                  if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 and READY then
  28.                  CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  29.                         end    
  30.                 end
  31.             end
  32.         end
  33.     end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment