Advertisement
Cloudhax23

Untitled

Jul 31st, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1.  
  2. --Menu
  3. Config = scriptConfig("Ekko", "Ekko.lua")
  4. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  5. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  6. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  7. --Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true) (Disabled until i learn how to code in Below health then cast R)
  8. --Start
  9. OnLoop(function(myHero)
  10. AutoIgnite()
  11. if IWalkConfig.Combo then
  12. local unit = GetCurrentTarget()
  13. if ValidTarget(unit, 1200) then
  14.  
  15. -- Q cast
  16. if GetCastName(myHero, _Q) == "EkkoQ" then
  17. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1075,50,true,true)
  18. if Config.Q then
  19. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  20. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  21. end
  22. end
  23. end
  24. -- W Cast
  25. if GetCastName(myHero, _W) == "EkkoW" then
  26. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1600,50,true,true)
  27. if Config.W then
  28. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  29. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  30. end
  31. end
  32. end
  33. -- E Cast Will cast E and if im correct then GoS will click champ and Ekko will blink Cast = 325 range Blink= 425
  34. if GetCastName(myHero, _E) == "EkkoE" then
  35. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,true,true)
  36. if Config.E then
  37. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  38. CastSkillShot(_E,QPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  39. end
  40. end
  41. end
  42. -- R Cast Disabled till i manage how to Use R when low
  43. --[[ if GetCastName(myHero, _E) == "EkkoR" then
  44. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,5000,50,true,true)
  45. if Config.R then
  46. if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 then
  47. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  48. end
  49. end
  50. end
  51. end]]
  52. end
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement