Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Ryze Combo/Burst/W.R first combo made by TRUS v1.7c, ('AA and cast W/R first in combo' made by xkjtx)
- Combo hot-key = letter 'V'
- Burst hot-key = Space bar
- 'W' combo with R(toggle) = letter 'S'
- With moving to target(AA the target) while holding Spacebar or X only!...
- Move To Mouse (will not AA while moving, but will cast all spells) Harass/W combo only!...
- Ult Hot-key to turn it off and on without going into the menu. Default key is letter X now...
- ]]--
- if myHero.charName ~= "Ryze" then return end
- local player = GetMyHero()
- local qRange = 650
- local wRange = 625
- local eRange = 649 -- Real range is 675 -- lowered so E will cast after Q
- local rRange = 675-- Higher if you want it on earlyer
- local lastcast = _E -- Less ugly now
- local startAttackSpeed = 0.625
- local lastBasicAttack = 0
- local swingDelay = 0.15
- local swing = 0
- local ts
- --[[ Hot - keys ]]
- local hotRotate = string.byte("V") -- 86 -- V
- local hotBurst = 32 -- Space Bar
- local hotWonly = string.byte("S") -- 83 -- S
- local hotUlt = string.byte("X") -- 88 -- X
- function OnLoad()
- PrintFloatText(myHero,10,"Ryze Spammer v1.7c By TRUS - modded by xkjtx!")
- DCConfig = scriptConfig("Ryze Combo v1.7c", "ryze-xkjtx-aa-in-combos-w-with-r")
- DCConfig:addParam("scriptActive", "Rotation", SCRIPT_PARAM_ONKEYDOWN, false, hotRotate) -- V
- DCConfig:addParam("burstActive", "Burst", SCRIPT_PARAM_ONKEYDOWN, false, hotBurst) -- Space
- DCConfig:addParam("WonlyActive", "W combo", SCRIPT_PARAM_ONKEYDOWN, false, hotWonly) -- S
- DCConfig:addParam("drawcircles", "Draw Circles", SCRIPT_PARAM_ONOFF, true)
- DCConfig:addParam("AllClass", "All class library", SCRIPT_PARAM_ONOFF, false)
- DCConfig:addParam("MoveToMouse", "Move to Mouse: W combo", SCRIPT_PARAM_ONOFF, true) -- On by default( So you can harass early game :) )
- DCConfig:addParam("UltActive", "Ult In W combo", SCRIPT_PARAM_ONKEYTOGGLE, false, hotUlt) -- Off by default( So you can harass early game :) )
- DCConfig:permaShow("scriptActive")
- DCConfig:permaShow("burstActive")
- DCConfig:permaShow("WonlyActive")
- DCConfig:permaShow("MoveToMouse")
- DCConfig:permaShow("UltActive")
- ts = TargetSelector(TARGET_LOW_HP,qRange+150,DAMAGE_MAGIC,true) -- so you can select target and focus
- ts.name = "Ryze"
- DCConfig:addTS(ts)
- lastBasicAttack = os.clock()
- end
- function doSpell(ts, spell, range)
- if ts.target ~= nil and GetMyHero():CanUseSpell(spell) == READY then
- CastSpell(spell, ts.target)
- end
- end
- function OnWndMsg(msg,key)
- if not DCConfig.scriptActive and not DCConfig.burstActive and not DCConfig.WonlyActive then lastcast = _E end
- end
- function OnProcessSpell(unit, spell)
- --[[if unit.isMe and (spell.name:find("Attack") ~= nil) then
- swing = 1
- lastBasicAttack = os.clock()
- end]]
- if unit.isMe and spell and spell.name:find("BasicAttack") or spell.name:find("CritAttack") and spell.name ~= nil and string.find(spell.name, "attack") and (spell.name:find("Attack") ~= nil) then
- swing = 1
- lastBasicAttack = os.clock()
- end
- end
- function OnTick()
- ts:update()
- if ts.target ~= nil then
- AttackDelay = 1/(myHero.attackSpeed*startAttackSpeed) -- 1/(myHero.attackSpeed*startAttackSpeed) -- Trying something new -- (1000/(myHero.attackSpeed/(1/startAttackSpeed)))/1000
- if swing == 1 and os.clock() > lastBasicAttack + AttackDelay then
- swing = 0
- end
- if DCConfig.scriptActive or DCConfig.burstActive then
- if ts.target ~= nil and GetDistance(ts.target) < qRange+150 and swing == 0 then
- myHero:Attack(ts.target)
- end
- end
- end
- if not myHero.dead and DCConfig.WonlyActive and ts ~= nil then
- if DCConfig.MoveToMouse
- then
- player:MoveTo(mousePos.x, mousePos.z) -- move to mouse(will not AA while moving, but will cast all spells)
- end
- if ts.target ~= nil and DCConfig.UltActive and myHero:CanUseSpell(_R) == READY and GetDistance(ts.target) <= rRange
- then
- doSpell(ts, _R, rRange)
- lastcast = _E
- elseif myHero:CanUseSpell(_W) == READY
- then
- doSpell(ts, _W, wRange)
- lastcast = _W
- elseif myHero:CanUseSpell(_Q) == READY
- then
- doSpell(ts, _Q, qRange)
- lastcast = _Q
- elseif myHero:CanUseSpell(_E) == READY
- then
- doSpell(ts, _E, eRange)
- lastcast = _E
- end
- end
- 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 OnDraw()
- if myHero.dead then
- return
- end
- if DCConfig.drawcircles and not myHero.dead then
- DrawCircle(myHero.x, myHero.y, myHero.z, rRange, 0x000099) -- blueish(Ult Range)
- DrawCircle(myHero.x, myHero.y, myHero.z, wRange, 0x0000CC) -- Greenish(W Range)
- if ts.target ~= nil then
- DrawCircle(ts.target.x, ts.target.y, ts.target.z, 100, 0x660066) -- purpleish(target prediction)
- end
- end
- end
- function OnSendChat(msg)
- ts:OnSendChat(msg, "pri")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement