Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- UPDATED 06.09 for BoL Studio
- Script: Ryze Spammer v1.2
- Author: TRUS, based on Keoshin/Taikumi
- Credits: Based on h0nda/zynox's Ryze spell spamm v0.2 (Keoshin/Taikumi ryze spammer)
- Press spacebar to Perfect rotation (CDR CHECK)
- Press C to see how much health target still have after BurstRotation
- ]]--
- if GetMyHero().charName ~= "Ryze" then return end
- require "AllClass"
- ---------------------------
- ------ Configuration ------
- ---------------------------
- hotkey = 32 -- Spacebar
- qKey = 112 -- Q-Harass F1
- wKey = 113 -- W,Q,E,Q F2
- eKey = 114 -- Q,W,E,Q F3
- rKey = 115 -- Q,R,W,Q,E F4
- --------------------------------------
- ---- Script Start [Do not change] ----
- --------------------------------------
- qRange = 650
- wRange = 625
- eRange = 649 -- Specifically lowered so that we don't just cast E
- -- Runtime variables
- scriptActive = false
- qCombo = false
- wCombo = false
- eCombo = false
- rCombo = false
- function OnLoad()
- -- put true if you want to be able to GetTarget()
- ts = TargetSelector(TARGET_LESS_CAST, qRange, DAMAGE_MAGIC, false)
- end
- function doSpell(spell, range, magicDmg)
- ts.range = range
- ts:SetDamages(magicDmg)
- ts:update()
- if ts.target ~= nil and player:CanUseSpell(spell) == READY then
- CastSpell(spell, ts.target)
- end
- if player:CanUseSpell(spell) ~= READY then
- return true
- else
- return false
- end
- end
- function OnDraw()
- if player.dead then return end
- DrawCircle(player.x, player.y, player.z, qRange, 0xFF0000FF)
- if ts.target ~= nil then
- DrawCircle(ts.target.x, ts.target.y, ts.target.z, 100, 0xFF80FF00)
- end
- end
- function OnWndMsg(msg,key)
- if key == hotkey then
- if msg == KEY_DOWN then
- scriptActive = true
- elseif msg == KEY_UP then
- scriptActive = false
- end
- elseif key == qKey then
- if msg == KEY_DOWN then
- qCombo = true
- elseif msg == KEY_UP then
- qCombo = false
- PrintFloatText(GetMyHero(),0," ")
- end
- elseif key == wKey then
- if msg == KEY_DOWN then
- wCombo = true
- elseif msg == KEY_UP then
- wCombo = false
- PrintFloatText(GetMyHero(),0," ")
- end
- elseif key == eKey then
- if msg == KEY_DOWN then
- eCombo = true
- elseif msg == KEY_UP then
- eCombo = false
- PrintFloatText(GetMyHero(),0," ")
- end
- elseif key == rKey then
- if msg == KEY_DOWN then
- rCombo = true
- elseif msg == KEY_UP then
- rCombo = false
- PrintFloatText(GetMyHero(),0," ")
- end
- end
- end
- function OnTick()
- ts:update()
- qBaseDmg = (35+25*player:GetSpellData(_Q).level-1 + player.ap*0.4 + player.maxMana*0.065)
- wBaseDmg = (25+35*player:GetSpellData(_W).level-1 + player.ap*0.6 + player.maxMana*0.045)
- eBaseDmg = (30+20*player:GetSpellData(_E).level-1 + player.ap*0.35 + player.maxMana*0.01)
- local target = GetTarget()
- qDmg = (target and player:CalcMagicDamage(GetTarget(), qBaseDmg) or 0)
- wDmg = (target and player:CalcMagicDamage(GetTarget(), wBaseDmg) or 0)
- eDmg = (target and player:CalcMagicDamage(GetTarget(), eBaseDmg) or 0)
- if not player.dead and ts.target ~= nil then PrintFloatText(ts.target,0,"targeting") end
- if not player.dead and scriptActive then
- if rCombo then
- PrintFloatText(GetMyHero(),0,"ULT Combo")
- if doSpell(_Q, qRange, qBaseDmg) then
- if doSpell(_R, qRange, qBaseDmg) then
- if doSpell(_W, wRange, wBaseDmg) then
- if doSpell(_Q, qRange, qBaseDmg) then
- if doSpell(_E, eRange, eBaseDmg) then
- end
- end
- end
- end
- end
- elseif eCombo then
- PrintFloatText(GetMyHero(),0,"DPS Combo")
- if doSpell(_Q, qRange, qBaseDmg) then
- if doSpell(_W, wRange, wBaseDmg) then
- if doSpell(_E, eRange, eBaseDmg) then
- if doSpell(_Q, qRange, qBaseDmg) then
- end
- end
- end
- end
- elseif wCombo then
- PrintFloatText(GetMyHero(),0,"CC Combo")
- if doSpell(_W, wRange, wBaseDmg) then
- if doSpell(_Q, qRange, qBaseDmg) then
- if doSpell(_E, eRange, eBaseDmg) then
- if doSpell(_Q, qRange, qBaseDmg) then
- end
- end
- end
- end
- elseif qCombo then
- PrintFloatText(GetMyHero(),0,"Q Harass")
- doSpell(_Q, qRange, qBaseDmg)
- end
- end
- end
- function OnSendChat(msg)
- TargetSelector__OnSendChat(msg)
- end
Add Comment
Please, Sign In to add comment