Advertisement
Cloudhax23

Untitled

Jul 31st, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.84 KB | None | 0 0
  1. -- Ekko
  2. if GetObjectName(GetMyHero()) == "Ekko" then
  3. --Menu
  4. Config = scriptConfig("Ekko", "Ekko.lua")
  5. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  6. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  7. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  8. --Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true) (Disabled until i learn how to code in Below health then cast R)
  9. --Start
  10. OnLoop(function(myHero)
  11. AutoIgnite()
  12. if IWalkConfig.Combo then
  13. local unit = GetCurrentTarget()
  14. if ValidTarget(unit, 1200) then
  15.  
  16. -- Q cast
  17. if GetCastName(myHero, _Q) == "EkkoQ" then
  18. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1075,50,true,true)
  19. if Config.Q then
  20. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  21. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  22. end
  23. end
  24. end
  25. -- W Cast
  26. if GetCastName(myHero, _W) == "EkkoW" then
  27. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1600,50,true,true)
  28. if Config.W then
  29. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  30. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  31. end
  32. end
  33. end
  34. -- E Cast Will cast E and if im correct then GoS will click champ and Ekko will blink Cast = 325 range Blink= 425
  35. if GetCastName(myHero, _E) == "EkkoE" then
  36. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,true,true)
  37. if Config.E then
  38. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  39. CastSkillShot(_E,QPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  40. end
  41. end
  42. end
  43. -- R Cast Disabled till i manage how to Use R when low
  44. --[[ if GetCastName(myHero, _E) == "EkkoR" then
  45. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,5000,50,true,true)
  46. if Config.R then
  47. if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 then
  48. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  49. end
  50. end
  51. end
  52. end]]
  53. end
  54. end
  55. end)
  56.  
  57. --Nidalee
  58. if GetObjectName(GetMyHero()) == "Nidalee" then
  59. --Menu
  60. Config = scriptConfig("Nidalee", "Nidalee.lua")
  61. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  62. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  63. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  64. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  65. Config.addParam("Q2", "Use Q2", SCRIPT_PARAM_ONOFF, true)
  66. Config.addParam("W2", "Use W2", SCRIPT_PARAM_ONOFF, true)
  67. Config.addParam("E2", "Use E2", SCRIPT_PARAM_ONOFF, true)
  68. --Start
  69. OnLoop(function(myHero)
  70. AutoIgnite()
  71. if IWalkConfig.Combo then
  72. local unit = GetCurrentTarget()
  73. if ValidTarget(unit, 1500) then
  74.  
  75. -- Nidalee Human Trap
  76. if GetCastName(myHero, _W) == "Bushwhack" then
  77. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,true,true)
  78. if Config.W then
  79. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  80. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  81. end
  82. end
  83. end
  84. -- Nidalee human spear
  85. if GetCastName(myHero, _Q) == "JavelinToss"then
  86. -- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  87. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,true,true)
  88. if Config.Q then
  89. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  90. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  91. end
  92. end
  93. end
  94. -- Nidalee human heal
  95. if GetCastName(myHero, _E) == "PrimalSurge" then
  96. if Config.E then
  97. if CanUseSpell(myHero, _E) == READY then
  98. CastTargetSpell(myHero, _E)
  99. end
  100. end
  101. end
  102. -- Tansform to cougar
  103. if GetCastName(myHero, _R) == "AspectOfTheCougar" then
  104. if Config.R then
  105. if unit ~= nil then
  106. if CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) == READY and CanUseSpell(myHero, _Q) ~= READY and IsInDistance(unit, 750) then
  107. CastTargetSpell(myHero, _R)
  108. end
  109. end
  110. end
  111. end
  112. -- Cougar attack Q
  113. if GetCastName(myHero, _Q) == "Takedown" then
  114. if Config.Q2 then
  115. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 475) then
  116. CastTargetSpell(unit, _Q)
  117. end
  118. end
  119. end
  120. -- Cougar pounce W
  121. if GetCastName(myHero, _W) == "Pounce" then
  122. if Config.W2 then
  123. if CanUseSpell(myHero, _W) == READY and IsInDistance(unit, 375) then
  124. CastTargetSpell(unit, _W)
  125. end
  126. end
  127. end
  128. -- E cast in cougar form
  129. if GetCastName(myHero, _E) == "Swipe" then
  130. if Config.E2 then
  131. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 300) then
  132. CastTargetSpell(unit, _E)
  133. end
  134. end
  135. end
  136. -- Transform back
  137. if GetCastName(myHero, _R) == "AspectOfTheCougar" then
  138. if Config.R then
  139. if unit ~= nil then
  140. if CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) ~= READY and CanUseSpell(myHero, _Q) ~= READY then
  141. CastSpell(_R)
  142. end
  143. end
  144. end
  145. end
  146.  
  147. end
  148. end
  149. end)
  150. -- Graves
  151. if GetObjectName(GetMyHero()) == "Graves" then
  152. --Menu
  153. Config = scriptConfig("Graves", "Graves.lua")
  154. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  155. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  156. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  157. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  158. --Start
  159. OnLoop(function(myHero)
  160. local target = GetCurrentTarget()
  161. if ValidTarget(target, math.huge) then
  162. if KeyIsDown(32) then
  163. castE(target)
  164. castQ(target)
  165. castW(target)
  166. castR(target)
  167. end
  168. end
  169. end
  170. -- End
  171. -- W cast
  172. )function castW( target )
  173. if Config.W then
  174. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),900,false,true)
  175. if IsInDistance(target, GetCastRange(myHero,_W)) and CanUseSpell(myHero,_W) == READY and pred.HitChance == 1 then
  176. CastSkillShot(_W,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  177. end
  178. end
  179. -- Q cast
  180. function castQ( target )
  181. if Config.Q then
  182. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_Q),900,false,true)
  183. if IsInDistance(target, GetCastRange(myHero,_Q)) and CanUseSpell(myHero,_Q) == READY and pred.HitChance == 1 then
  184. CastSkillShot(_Q,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  185. end
  186. end
  187. -- E cast
  188. end
  189. function castE( target )
  190. if Config.E then
  191. if IsInDistance(target, GetCastRange(myHero,_E)) and CanUseSpell(myHero,_E) == READY then
  192. CastSkillShot(_E, GetMousePos().x, GetMousePos().y, GetMousePos().z)
  193. end
  194. end
  195.  
  196. -- R cast
  197. -- R cast
  198. function castR( target )
  199. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_R),950,false,true)
  200. if CanUseSpell(myHero_R) == READY and pred.HitChance == 1 and IsInDistance(target, GetCastRange(myHero,_R)) and Config.R and CalcDamage(myHero, target, (150*GetCastLevel(myHero,_R)+100+1.5*GetBonusDmg(myHero)), 0) > GetCurrentHP(target) then
  201. CastSkillShot(_R,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  202. end
  203. end
  204. end
  205. end
  206. end
  207. end
  208. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement