Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. if GetObjectName(GetMyHero()) == "Ekko" then
  2.  
  3. EkkoMenu = Menu("Ekko", "Ekko")
  4. EkkoMenu:SubMenu("Combo", "Combo")
  5. EkkoMenu.Combo:Boolean("Q", "Use Q", true)
  6. EkkoMenu.Combo:Boolean("W", "Use W", true)
  7. EkkoMenu.Combo:Boolean("E", "Use E", true)
  8. EkkoMenu.Combo:Boolean("R", "Use R", true)
  9.  
  10. --Start
  11. OnLoop(function(myHero)
  12. local unit = GetCurrentTarget()
  13. if GetCastName(myHero, _R) == "EkkoR" then
  14. if EkkoMenu.Combo.R:Value() then
  15. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.2 and
  16. CanUseSpell(myHero, _R) == READY and IsObjectAlive(myHero) and GoS:GetDistance(unit, 1000) then
  17. CastTargetSpell(myHero,_R)
  18. end
  19. end
  20. end
  21. if IOW:Mode() == "Combo" then
  22. local unit = GetCurrentTarget()
  23. if GoS:ValidTarget(unit, 1200) then
  24.  
  25. if GetCastName(myHero, _Q) == "EkkoQ" then
  26. local QPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,1075,50,false,true)
  27. if EkkoMenu.Combo.Q:Value() then
  28. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  29. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  30. end
  31. end
  32. end
  33.  
  34. if GetCastName(myHero, _W) == "EkkoW" then
  35. local WPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,1600,50,false,true)
  36. if EkkoMenu.Combo.W:Value then
  37. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  38. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  39. end
  40. end
  41. end
  42.  
  43. if GetCastName(myHero, _E) == "EkkoE" then
  44. local EPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,false,true)
  45. if EkkoMenu.Combo.E:Value() then
  46. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  47. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  48. end
  49. end
  50. end
  51.  
  52. if GetCastName(myHero, _R) == "EkkoR" then
  53. if EkkoMenu.Combo.R:Value() then
  54. local ult = (GetCastLevel(myHero,_R)*150+50)+(GetBonusAP(myHero)*1.30)
  55. local EPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,325,50,false,true)
  56. if CanUseSpell(myHero, _R) and GoS:GetDistance(unit, 325) then
  57. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  58. CastSkillShot(_R,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  59. end
  60. end
  61. end
  62. end
  63. end
  64. end
  65. end)
  66. PrintChat("Sandstorm Ekko by Musti")
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement