Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if GetMyHero().charName ~= "Ryze" then return end
- function oldPatch()
- qRange = 650
- wRange = 625
- eRange = 649 -- Real range is 675
- ts.range = qRange
- print("OLD PATCH DETECTED")
- end
- function OnLoad()
- if Burst == default then Burst = "G" end
- if Rotation == default then Rotation = " " end
- qRange = 600
- wRange = 600
- eRange = 600
- lastcast = _E -- Less ugly now
- DCConfig = scriptConfig("Ryze Combo", "Ryze")
- DCConfig:addParam("scriptActive", "Rotation", SCRIPT_PARAM_ONKEYDOWN, false, GetKey(Rotation))
- DCConfig:addParam("burstActive", "Burst", SCRIPT_PARAM_ONKEYDOWN, false, GetKey(Burst))
- DCConfig:permaShow("scriptActive")
- DCConfig:permaShow("burstActive")
- ts = TargetSelector(TARGET_LOW_HP,qRange,DAMAGE_MAGIC,false)
- ts.name = "Ryze"
- DCConfig:addTS(ts)
- RyzeDrawLoad()
- patchnotchecked = true
- end
- function timercalc()
- currentcdQ = myHero:GetSpellData(_Q).cd*(1+myHero.cdr)*1000
- currentcdW = myHero:GetSpellData(_W).cd*(1+myHero.cdr)*1000
- currentcdE = myHero:GetSpellData(_E).cd*(1+myHero.cdr)*1000
- end
- function RyzeDrawLoad()
- RyzeDraw = scriptConfig("Ryze Drawer", "Ryze Draw")
- RyzeDraw:addParam("drawtext", "Draw Text", SCRIPT_PARAM_ONOFF, true)
- RyzeDraw:addParam("drawcircles", "Draw Circles", SCRIPT_PARAM_ONOFF, true)
- currentcdQ,currentcdW,currentcdE = 0,0,0
- timetokill = {}
- for i = 1, heroManager.iCount do
- local hero = heroManager:getHero(i)
- timetokill[i] = 0
- end
- step1 = 0
- step2 = 0
- step3 = 0
- step4 = 0
- step5 = 0
- end
- function doSpell(ts, spell, range)
- if ts.target ~= nil and GetMyHero():CanUseSpell(spell) == READY then
- CastSpell(spell, ts.target)
- end
- end
- function OnDraw()
- RyzeOnDraw()
- if myHero.dead then return end
- if DCConfig.scriptActive then
- DrawText("Script Active",16,100,80,0xFF80FF00)
- end
- if DCConfig.burstActive then
- DrawText("Burst Active",16,100,80,0xFF80FF00)
- end
- if RyzeDraw.drawcircles then
- DrawCircle(myHero.x, myHero.y, myHero.z, qRange, 0xFF80FF00)
- if ts.target ~= nil then
- DrawText("Targetting: " .. ts.target.charName, 16, 100, 100, 0xFFFF0000)
- DrawCircle(ts.target.x, ts.target.y, ts.target.z, 100, 0xFF80FF00)
- end
- end
- end
- function OnWndMsg(msg,key)
- if not DCConfig.scriptActive and not DCConfig.burstActive then lastcast = _E end
- end
- function OnTick()
- if patchnotchecked then
- for i = 0,2 do
- if GetSpellData(i).level ~= 0 then
- patchnotchecked = false
- if GetSpellData(i).range ~= 600 then
- oldPatch()
- end
- end
- end
- end
- ts:update()
- RyzeDrawTick()
- if not myHero.dead and DCConfig.scriptActive and myHero.cdr <= -0.35 and ts ~= nil then
- if myHero:CanUseSpell(_Q) == READY
- then
- doSpell(ts, _Q, qRange)
- lastcast = _Q
- elseif (lastcast == _Q or lastcast == _W) and myHero:CanUseSpell(_W) == READY
- then
- doSpell(ts, _W, wRange)
- lastcast = _W
- elseif (lastcast == _Q or lastcast == _E) and myHero:CanUseSpell(_E) == READY
- then
- doSpell(ts, _E, eRange)
- lastcast = _E
- end
- elseif (not myHero.dead and myHero.cdr > -0.35 and DCConfig.scriptActive and ts ~= nil) or DCConfig.burstActive and ts ~= nil then
- if myHero:CanUseSpell(_Q) == READY
- then
- doSpell(ts, _Q, qRange)
- lastcast = _Q
- elseif (lastcast == _Q or lastcast == _W) and myHero:CanUseSpell(_W) == READY and ts ~= nil
- then
- doSpell(ts, _W, wRange)
- lastcast = _W
- elseif myHero:CanUseSpell(_E) == READY and myHero:CanUseSpell(_W) ~= READY and myHero:CanUseSpell(_Q) ~= READY and ts ~= nil
- then
- doSpell(ts, _E, eRange)
- lastcast = _E
- end
- end
- end
- function RyzeDrawTick()
- timercalc()
- for i = 1, heroManager.iCount do
- local hero = heroManager:getHero(i)
- if not hero.dead and hero.visible and hero.health then
- qSpell = getDmg("Q",hero,myHero,3)
- wSpell = getDmg("W",hero,myHero,3)
- eSpell = getDmg("E",hero,myHero,3)
- if myHero.cdr > -0.35 then
- step0 = qSpell
- if player:CanUseSpell(_W) == READY then
- step1 = qSpell + wSpell
- if player:CanUseSpell(_E) == READY then
- step2 = qSpell + wSpell + eSpell
- step3 = qSpell + wSpell + eSpell + qSpell
- step4 = step3 + qSpell
- else
- step2 = 0
- step3 = 0
- step4 = 0
- end
- else
- step1 = 0
- step2 = 0
- step3 = 0
- step4 = 0
- end
- else
- step0 = qSpell
- if player:CanUseSpell(_W) == READY then
- step1 = qSpell + wSpell
- if player:CanUseSpell(_E) == READY then
- step2 = qSpell + wSpell + qSpell
- step3 = qSpell + wSpell + qSpell + eSpell
- step4 = qSpell + wSpell + qSpell + eSpell + qSpell
- step5 = qSpell + wSpell + qSpell + eSpell + qSpell + qSpell
- else
- step2 = 0
- step3 = 0
- step4 = 0
- step5 = 0
- end
- else
- step1 = 0
- step2 = 0
- step3 = 0
- step4 = 0
- step5 = 0
- end
- end
- if myHero.cdr > -0.35 and not hero.dead then
- if hero.health < step0 then timetokill[i] = 265
- elseif hero.health < step1 then timetokill[i] = 265 + 250
- elseif hero.health < step2 then timetokill[i] = 265 + 250 + 280
- elseif hero.health < step3 then timetokill[i] = 265 + 250 + 280 + currentcdQ - 2000 + 265
- elseif hero.health < step4 then timetokill[i] = 265 + 250 + 280 + currentcdQ - 2000 + 265 + currentcdQ + 265
- elseif hero.health > step4 then timetokill[i] = 0
- end
- else
- if hero.health < step0 then timetokill[i] = 265
- elseif hero.health < step1 then timetokill[i] = 265 + 250
- elseif hero.health < step2 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265
- elseif hero.health < step3 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265 + 280
- elseif hero.health < step4 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265 + 280 + currentcdQ - 1000 + 265
- elseif hero.health < step5 then timetokill[i] = 265 + 250 + currentcdQ - 1000 + 265 + 280 + currentcdQ - 1000 + 265 + currentcdQ
- elseif hero.health > step5 then timetokill[i] = 0
- end
- end
- --265 Q casttime
- --250 W Casttime
- --280 E casttime
- end
- end
- end
- function RyzeOnDraw()
- for i = 1, heroManager.iCount do
- local hero = heroManager:getHero(i)
- if hero.team ~= myHero.team and hero.visible and not hero.dead then
- herodrawx, herodrawy = get2DFrom3D(hero.x,hero.y,hero.z)
- if timetokill[i] ~= 0 then
- abc = string.format("%.1f", (timetokill[i])/1000)
- if RyzeDraw.drawtext then
- DrawText(abc .. "s",16,herodrawx,herodrawy,0xFF80FF00)
- end
- if RyzeDraw.drawcircles then
- if timetokill[i] < 1000 then
- for j = 0, 8 do
- DrawCircle(hero.x, hero.y, hero.z, 60 + j * 2, 0xFFFF0000)
- end
- elseif timetokill[i] < 2000 then
- for j = 0, 4 do
- DrawCircle(hero.x, hero.y, hero.z, 60 + j * 2, 0xFFFF0000)
- end
- elseif timetokill[i] < 5000 then
- for j = 0, 2 do
- DrawCircle(hero.x, hero.y, hero.z, 60 + j * 2, 0xFFFF0000)
- end
- end
- end
- else
- if RyzeDraw.drawtext then
- DrawText(tostring("Not killable"),16,herodrawx,herodrawy,0xFF80FF00)
- end
- end
- end
- end
- end
- PrintFloatText(myHero,10,"Ryze Spammer v1.8 By TRUS loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement