Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Ryze Combo/Burst/W.R first combo (TRUS v1.7d), ('AA and cast W/Ult in combo' made by xkjtx)
- Combo hot-key = letter 'G'
- 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 while attack - While holding W/r combo key Ryze will move to mouse and AA target(only in target range)!...
- Move hot key Off/On toggle - letter 'V' will move to mouse while on...
- Ult After W combo (Toggle Ult key = X) (W cast first will cast spells W-R(if toggled on)-Q-E)...
- ::Ranges::
- -- Redish(Attack Range) alwasy on
- -- Blueish(Q Range) only on when off CD
- -- Greenish(W Range) only on when off CD
- -- Yellowish(real E range) only on when off CD
- ]]--
- if myHero.charName ~= "Ryze" then return end
- local realeRange = 700 -- real only for the range
- local qRange = 650
- local wRange = 625
- local eRange = 649 -- Real range is 675 -- lowered so E will cast after Q
- local rRange = 651-- 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 nextTick = 0
- local waitDelay = 400
- local ts
- --[[ Hot - keys ]]
- local hotMove = string.byte("V") -- 86 -- v
- local hotRotate = string.byte("G") -- 71 -- G
- 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.7d By TRUS - modded by xkjtx!")
- DCConfig = scriptConfig("Ryze Combo v1.7d", "ryze-xkjtx-aa-in-combos-w-with-r")
- DCConfig:addParam("scriptActive", "Rotation", SCRIPT_PARAM_ONKEYDOWN, false, hotRotate) -- G
- DCConfig:addParam("burstActive", "Burst", SCRIPT_PARAM_ONKEYDOWN, false, hotBurst) -- Space
- DCConfig:addParam("WonlyActive", "W/r combo", SCRIPT_PARAM_ONKEYDOWN, false, hotWonly) -- S
- DCConfig:addParam("UltActive", "Ult In W combo", SCRIPT_PARAM_ONKEYTOGGLE, false, hotUlt) -- X -- Off by default( So you can harass early game :) )
- DCConfig:addParam("drawcircles", "Draw Circles", SCRIPT_PARAM_ONOFF, true)
- DCConfig:addParam("AllClass", "All class library", SCRIPT_PARAM_ONOFF, false)
- DCConfig:addParam("MoveToMouse", "Move and AA in W combo", SCRIPT_PARAM_ONOFF, true) -- This will AA and move while 'W combo' hot-key is pressed(only in target range)
- DCConfig:addParam("MoveHotKey", "Move to Mouse: Hot Key toggle", SCRIPT_PARAM_ONKEYTOGGLE, false, hotMove) -- V -- Off by default(turn on in game with hot key)
- DCConfig:permaShow("scriptActive")
- DCConfig:permaShow("burstActive")
- DCConfig:permaShow("WonlyActive")
- DCConfig:permaShow("UltActive")
- DCConfig:permaShow("MoveToMouse")
- DCConfig:permaShow("MoveHotKey")
- ts = TargetSelector(TARGET_LOW_HP,wRange+500,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
- end
- function OnTick()
- ts:update()
- if not myHero.dead and DCConfig.MoveHotKey then
- player:MoveTo(mousePos.x, mousePos.z) -- move to mouse(will not AA while moving, but will cast all spells if combo key pressed)
- end-- messes with auto attack
- if not myHero.dead and 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 and swing == 0 then
- if ts.target ~= nil and GetDistance(ts.target) < qRange+250 then
- myHero:Attack(ts.target)
- end
- end
- end
- if not myHero.dead and DCConfig.WonlyActive and ts ~= nil then
- if myHero:CanUseSpell(_W) == READY
- then
- doSpell(ts, _W, wRange)
- lastcast = _W
- elseif DCConfig.UltActive and ts.target ~= nil and myHero:CanUseSpell(_R) == READY and GetDistance(ts.target) <= rRange
- then
- doSpell(ts, _R, rRange)
- 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
- if DCConfig.MoveToMouse and ts.target ~= nil then
- --[[ Auto Attacks ]]--
- local tick = GetTickCount()
- if swing == 0 then
- if GetDistance(ts.target) < (rRange + 500) and GetTickCount() > nextTick then
- myHero:Attack(ts.target)
- nextTick = GetTickCount() + waitDelay
- end
- elseif swing == 1 and GetTickCount() > (nextTick + 100) then
- myHero:MoveTo(mousePos.x, mousePos.z)
- end
- 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 not myHero.dead and DCConfig.drawcircles then
- DrawCircle(myHero.x, myHero.y, myHero.z, rRange, 0xFF0000) -- Redish(Attack Range) alwasy on
- if myHero:CanUseSpell(_Q) == READY then
- DrawCircle(myHero.x, myHero.y, myHero.z, qRange, 0x000099) -- Blueish(Q Range) only on when off CD
- end
- if myHero:CanUseSpell(_W) == READY then
- DrawCircle(myHero.x, myHero.y, myHero.z, wRange, 0x006600) -- Greenish(W Range) only on when off CD
- end
- if myHero:CanUseSpell(_E) == READY then
- DrawCircle(myHero.x, myHero.y, myHero.z, realeRange, 0xFFCC00) -- Yellowish(real E range) only on when off CD
- end
- if ts ~= nil and ts.target ~= nil then
- for j=0, 10 do
- DrawCircle(ts.target.x, ts.target.y, ts.target.z, 40 + j*1.5, 0x660066) -- purpleish -- changed from 0x00FF00
- end
- end
- end
- end
- function OnSendChat(msg)
- ts:OnSendChat(msg, "pri")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement