Advertisement
Cloudhax23

Untitled

Aug 1st, 2015
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 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)
  9. --Start
  10. OnLoop(function(myHero)
  11. AutoIgnite()
  12. if IWalkConfig.Combo and IsObjectAlive(target) 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,false,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,false,true)
  37. if Config.E then
  38. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  39. CastSkillShot(_E,EPred.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 --THANKS SNOWBALL
  44. if GetCastName(myHero, _R) == "EkkoR" then
  45. if Config.R then
  46. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.2 and
  47. CanUseSpell(myHero, _R) == READY and IsObjectAlive(myHero) then
  48. CastTargetSpell(myHero,_R)
  49. end
  50. end
  51. end
  52. end
  53. end
  54. end)
  55.  
  56. --Nidalee
  57. if GetObjectName(GetMyHero()) == "Nidalee" then
  58. --Menu
  59. Config = scriptConfig("Nidalee", "Nidalee.lua")
  60. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  61. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  62. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  63. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  64. Config.addParam("Q2", "Use Q2", SCRIPT_PARAM_ONOFF, true)
  65. Config.addParam("W2", "Use W2", SCRIPT_PARAM_ONOFF, true)
  66. Config.addParam("E2", "Use E2", SCRIPT_PARAM_ONOFF, true)
  67. --Start
  68. OnLoop(function(myHero)
  69. AutoIgnite()
  70. if IWalkConfig.Combo and IsObjectAlive(target) then
  71. local unit = GetCurrentTarget()
  72. if ValidTarget(unit, 1500) then
  73.  
  74. -- Nidalee Human Trap
  75. if GetCastName(myHero, _W) == "Bushwhack" then
  76. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,true,true)
  77. if Config.W then
  78. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  79. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  80. end
  81. end
  82. end
  83. -- Nidalee human spear
  84. if GetCastName(myHero, _Q) == "JavelinToss"then
  85. -- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  86. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,true,true)
  87. if Config.Q then
  88. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  89. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  90. end
  91. end
  92. end
  93. -- Nidalee human heal --THANKS SNOWBALL
  94. if GetCastName(myHero, _E) == "PrimalSurge" then
  95. if Config.E then
  96. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.2 and
  97. CanUseSpell(myHero, _E) == READY and IsObjectAlive(myHero) 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.  
  151. -- Graves
  152. if GetObjectName(GetMyHero()) == "Graves" then
  153. --Menu
  154. Config = scriptConfig("Graves", "Graves.lua")
  155. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  156. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  157. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  158. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  159. --Start
  160. OnLoop(function(myHero)
  161. local target = GetCurrentTarget()
  162. if ValidTarget(target, math.huge) then
  163. if KeyIsDown(32) then
  164. castE(target)
  165. castQ(target)
  166. castW(target)
  167. castR(target)
  168. end
  169. end
  170. end
  171. -- End
  172. -- W cast
  173. )function castW( target )
  174. if Config.W then
  175. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),900,false,true)
  176. if IsInDistance(target, GetCastRange(myHero,_W)) and CanUseSpell(myHero,_W) == READY and pred.HitChance == 1 then
  177. CastSkillShot(_W,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  178. end
  179. end
  180. -- Q cast
  181. function castQ( target )
  182. if Config.Q then
  183. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_Q),900,false,true)
  184. if IsInDistance(target, GetCastRange(myHero,_Q)) and CanUseSpell(myHero,_Q) == READY and pred.HitChance == 1 then
  185. CastSkillShot(_Q,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  186. end
  187. end
  188. -- E cast
  189. end
  190. function castE( target )
  191. if Config.E then
  192. if IsInDistance(target, GetCastRange(myHero,_E)) and CanUseSpell(myHero,_E) == READY then
  193. CastSkillShot(_E, GetMousePos().x, GetMousePos().y, GetMousePos().z)
  194. end
  195. end
  196.  
  197. -- R cast
  198. -- R cast
  199. function castR( target )
  200. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_R),950,false,true)
  201. 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
  202. CastSkillShot(_R,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  203. end
  204. end
  205. end
  206. end
  207. end
  208. end
  209. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement