Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 KB | None | 0 0
  1. if GetMyHero().charName ~= "Ryze" then return end
  2. function oldPatch()
  3. qRange = 650
  4. wRange = 625
  5. eRange = 649 -- Real range is 675
  6. ts.range = qRange
  7. print("OLD PATCH DETECTED")
  8. end
  9. function OnLoad()
  10. if Burst == default then Burst = "G" end
  11. if Rotation == default then Rotation = " " end
  12. qRange = 600
  13. wRange = 600
  14. eRange = 600
  15. lastcast = _E -- Less ugly now
  16. DCConfig = scriptConfig("Ryze Combo", "Ryze")
  17.  
  18. DCConfig:addParam("scriptActive", "Rotation", SCRIPT_PARAM_ONKEYDOWN, false, GetKey(Rotation))
  19. DCConfig:addParam("burstActive", "Burst", SCRIPT_PARAM_ONKEYDOWN, false, GetKey(Burst))
  20. DCConfig:permaShow("scriptActive")
  21. DCConfig:permaShow("burstActive")
  22. ts = TargetSelector(TARGET_LOW_HP,qRange,DAMAGE_MAGIC,false)
  23. ts.name = "Ryze"
  24. DCConfig:addTS(ts)
  25. RyzeDrawLoad()
  26. patchnotchecked = true
  27. end
  28.  
  29. function timercalc()
  30. currentcdQ = myHero:GetSpellData(_Q).cd*(1+myHero.cdr)*1000
  31. currentcdW = myHero:GetSpellData(_W).cd*(1+myHero.cdr)*1000
  32. currentcdE = myHero:GetSpellData(_E).cd*(1+myHero.cdr)*1000
  33. end
  34.  
  35. function RyzeDrawLoad()
  36. RyzeDraw = scriptConfig("Ryze Drawer", "Ryze Draw")
  37. RyzeDraw:addParam("drawtext", "Draw Text", SCRIPT_PARAM_ONOFF, true)
  38. RyzeDraw:addParam("drawcircles", "Draw Circles", SCRIPT_PARAM_ONOFF, true)
  39. currentcdQ,currentcdW,currentcdE = 0,0,0
  40. timetokill = {}
  41. for i = 1, heroManager.iCount do
  42. local hero = heroManager:getHero(i)
  43. timetokill[i] = 0
  44. end
  45. step1 = 0
  46. step2 = 0
  47. step3 = 0
  48. step4 = 0
  49. step5 = 0
  50. end
  51.  
  52. function doSpell(ts, spell, range)
  53. if ts.target ~= nil and GetMyHero():CanUseSpell(spell) == READY then
  54. CastSpell(spell, ts.target)
  55. end
  56. end
  57.  
  58. function OnDraw()
  59. RyzeOnDraw()
  60. if myHero.dead then return end
  61.  
  62. if DCConfig.scriptActive then
  63. DrawText("Script Active",16,100,80,0xFF80FF00)
  64. end
  65.  
  66. if DCConfig.burstActive then
  67. DrawText("Burst Active",16,100,80,0xFF80FF00)
  68. end
  69. if RyzeDraw.drawcircles then
  70. DrawCircle(myHero.x, myHero.y, myHero.z, qRange, 0xFF80FF00)
  71. if ts.target ~= nil then
  72. DrawText("Targetting: " .. ts.target.charName, 16, 100, 100, 0xFFFF0000)
  73. DrawCircle(ts.target.x, ts.target.y, ts.target.z, 100, 0xFF80FF00)
  74. end
  75. end
  76. end
  77.  
  78.  
  79. function OnWndMsg(msg,key)
  80. if not DCConfig.scriptActive and not DCConfig.burstActive then lastcast = _E end
  81.  
  82. end
  83.  
  84. function OnTick()
  85. if patchnotchecked then
  86. for i = 0,2 do
  87. if GetSpellData(i).level ~= 0 then
  88. patchnotchecked = false
  89. if GetSpellData(i).range ~= 600 then
  90. oldPatch()
  91. end
  92. end
  93. end
  94. end
  95. ts:update()
  96. RyzeDrawTick()
  97. if not myHero.dead and DCConfig.scriptActive and myHero.cdr <= -0.35 and ts ~= nil then
  98. if myHero:CanUseSpell(_Q) == READY
  99. then
  100. doSpell(ts, _Q, qRange)
  101. lastcast = _Q
  102. elseif (lastcast == _Q or lastcast == _W) and myHero:CanUseSpell(_W) == READY
  103. then
  104. doSpell(ts, _W, wRange)
  105. lastcast = _W
  106. elseif (lastcast == _Q or lastcast == _E) and myHero:CanUseSpell(_E) == READY
  107. then
  108. doSpell(ts, _E, eRange)
  109. lastcast = _E
  110. end
  111. elseif (not myHero.dead and myHero.cdr > -0.35 and DCConfig.scriptActive and ts ~= nil) or DCConfig.burstActive and ts ~= nil then
  112. if myHero:CanUseSpell(_Q) == READY
  113. then
  114. doSpell(ts, _Q, qRange)
  115. lastcast = _Q
  116. elseif (lastcast == _Q or lastcast == _W) and myHero:CanUseSpell(_W) == READY and ts ~= nil
  117. then
  118. doSpell(ts, _W, wRange)
  119. lastcast = _W
  120. elseif myHero:CanUseSpell(_E) == READY and myHero:CanUseSpell(_W) ~= READY and myHero:CanUseSpell(_Q) ~= READY and ts ~= nil
  121. then
  122. doSpell(ts, _E, eRange)
  123. lastcast = _E
  124. end
  125. end
  126. end
  127.  
  128. function RyzeDrawTick()
  129. timercalc()
  130. for i = 1, heroManager.iCount do
  131. local hero = heroManager:getHero(i)
  132. if not hero.dead and hero.visible and hero.health then
  133. qSpell = getDmg("Q",hero,myHero,3)
  134. wSpell = getDmg("W",hero,myHero,3)
  135. eSpell = getDmg("E",hero,myHero,3)
  136.  
  137. if myHero.cdr > -0.35 then
  138. step0 = qSpell
  139. if player:CanUseSpell(_W) == READY then
  140. step1 = qSpell + wSpell
  141. if player:CanUseSpell(_E) == READY then
  142. step2 = qSpell + wSpell + eSpell
  143. step3 = qSpell + wSpell + eSpell + qSpell
  144. step4 = step3 + qSpell
  145. else
  146. step2 = 0
  147. step3 = 0
  148. step4 = 0
  149. end
  150. else
  151. step1 = 0
  152. step2 = 0
  153. step3 = 0
  154. step4 = 0
  155. end
  156.  
  157. else
  158. step0 = qSpell
  159.  
  160. if player:CanUseSpell(_W) == READY then
  161. step1 = qSpell + wSpell
  162. if player:CanUseSpell(_E) == READY then
  163. step2 = qSpell + wSpell + qSpell
  164. step3 = qSpell + wSpell + qSpell + eSpell
  165. step4 = qSpell + wSpell + qSpell + eSpell + qSpell
  166. step5 = qSpell + wSpell + qSpell + eSpell + qSpell + qSpell
  167. else
  168. step2 = 0
  169. step3 = 0
  170. step4 = 0
  171. step5 = 0
  172. end
  173. else
  174. step1 = 0
  175. step2 = 0
  176. step3 = 0
  177. step4 = 0
  178. step5 = 0
  179. end
  180. end
  181. if myHero.cdr > -0.35 and not hero.dead then
  182. if hero.health < step0 then timetokill[i] = 265
  183. elseif hero.health < step1 then timetokill[i] = 265 + 250
  184. elseif hero.health < step2 then timetokill[i] = 265 + 250 + 280
  185. elseif hero.health < step3 then timetokill[i] = 265 + 250 + 280 + currentcdQ - 2000 + 265
  186. elseif hero.health < step4 then timetokill[i] = 265 + 250 + 280 + currentcdQ - 2000 + 265 + currentcdQ + 265
  187. elseif hero.health > step4 then timetokill[i] = 0
  188. end
  189.  
  190.  
  191. else
  192. if hero.health < step0 then timetokill[i] = 265
  193. elseif hero.health < step1 then timetokill[i] = 265 + 250
  194. elseif hero.health < step2 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265
  195. elseif hero.health < step3 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265 + 280
  196. elseif hero.health < step4 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265 + 280 + currentcdQ - 1000 + 265
  197. elseif hero.health < step5 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265 + 280 + currentcdQ - 1000 + 265 + currentcdQ
  198. elseif hero.health > step5 then timetokill[i] = 0
  199. end
  200.  
  201.  
  202.  
  203.  
  204. end
  205. --265 Q casttime
  206. --250 W Casttime
  207. --280 E casttime
  208. end
  209. end
  210. end
  211. function RyzeOnDraw()
  212. for i = 1, heroManager.iCount do
  213. local hero = heroManager:getHero(i)
  214. if hero.team ~= myHero.team and hero.visible and not hero.dead then
  215. herodrawx, herodrawy = get2DFrom3D(hero.x,hero.y,hero.z)
  216.  
  217. if timetokill[i] ~= 0 then
  218. abc = string.format("%.1f", (timetokill[i])/1000)
  219. if RyzeDraw.drawtext then
  220. DrawText(abc .. "s",16,herodrawx,herodrawy,0xFF80FF00)
  221. end
  222.  
  223. if RyzeDraw.drawcircles then
  224. if timetokill[i] < 1000 then
  225. for j = 0, 8 do
  226. DrawCircle(hero.x, hero.y, hero.z, 60 + j * 2, 0xFFFF0000)
  227. end
  228. elseif timetokill[i] < 2000 then
  229. for j = 0, 4 do
  230. DrawCircle(hero.x, hero.y, hero.z, 60 + j * 2, 0xFFFF0000)
  231. end
  232. elseif timetokill[i] < 5000 then
  233. for j = 0, 2 do
  234. DrawCircle(hero.x, hero.y, hero.z, 60 + j * 2, 0xFFFF0000)
  235. end
  236. end
  237. end
  238. else
  239. if RyzeDraw.drawtext then
  240. DrawText(tostring("Not killable"),16,herodrawx,herodrawy,0xFF80FF00)
  241. end
  242.  
  243. end
  244. end
  245. end
  246. end
  247.  
  248. PrintFloatText(myHero,10,"Ryze Spammer v1.8 By TRUS loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement