Guest User

Untitled

a guest
Jan 20th, 2019
8,770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.88 KB | None | 0 0
  1. --[[
  2. UPDATED 06.09 for BoL Studio
  3. Script: Ryze Spammer v1.2
  4. Author: TRUS, based on Keoshin/Taikumi
  5. Credits: Based on h0nda/zynox's Ryze spell spamm v0.2 (Keoshin/Taikumi ryze spammer)
  6.  
  7. Press spacebar to Perfect rotation (CDR CHECK)
  8. Press C to see how much health target still have after BurstRotation
  9. ]]--
  10.  
  11. if GetMyHero().charName ~= "Ryze" then return end
  12.  
  13. require "AllClass"
  14. ---------------------------
  15. ------ Configuration ------
  16. ---------------------------
  17. hotkey = 32 -- Spacebar
  18. qKey = 112 -- Q-Harass  F1
  19. wKey = 113 -- W,Q,E,Q   F2
  20. eKey = 114 -- Q,W,E,Q   F3
  21. rKey = 115 -- Q,R,W,Q,E F4
  22.  
  23. --------------------------------------
  24. ---- Script Start [Do not change] ----
  25. --------------------------------------
  26. qRange = 650
  27. wRange = 625
  28. eRange = 649 -- Specifically lowered so that we don't just cast E
  29.  
  30. -- Runtime variables
  31. scriptActive = false
  32. qCombo = false
  33. wCombo = false
  34. eCombo = false
  35. rCombo = false
  36.  
  37. function OnLoad()
  38.     -- put true if you want to be able to GetTarget()
  39.     ts = TargetSelector(TARGET_LESS_CAST, qRange, DAMAGE_MAGIC, false)
  40. end
  41.  
  42. function doSpell(spell, range, magicDmg)
  43.     ts.range = range
  44.     ts:SetDamages(magicDmg)
  45.     ts:update()
  46.     if ts.target ~= nil and player:CanUseSpell(spell) == READY then
  47.         CastSpell(spell, ts.target)
  48.     end
  49.     if player:CanUseSpell(spell) ~= READY then
  50.         return true
  51.     else
  52.         return false
  53.     end
  54. end
  55.  
  56. function OnDraw()
  57.     if player.dead then return end
  58.     DrawCircle(player.x, player.y, player.z, qRange, 0xFF0000FF)
  59.     if ts.target ~= nil then
  60.         DrawCircle(ts.target.x, ts.target.y, ts.target.z, 100, 0xFF80FF00)
  61.     end
  62. end
  63.  
  64. function OnWndMsg(msg,key)
  65.     if key == hotkey then
  66.         if msg == KEY_DOWN then
  67.             scriptActive = true
  68.         elseif msg == KEY_UP then
  69.             scriptActive = false
  70.         end
  71.     elseif key == qKey then
  72.         if msg == KEY_DOWN then
  73.             qCombo = true
  74.         elseif msg == KEY_UP then
  75.             qCombo = false
  76.             PrintFloatText(GetMyHero(),0," ")
  77.         end
  78.     elseif key == wKey then
  79.         if msg == KEY_DOWN then
  80.             wCombo = true
  81.         elseif msg == KEY_UP then
  82.             wCombo = false
  83.             PrintFloatText(GetMyHero(),0," ")
  84.         end
  85.     elseif key == eKey then
  86.         if msg == KEY_DOWN then
  87.             eCombo = true
  88.         elseif msg == KEY_UP then
  89.             eCombo = false
  90.             PrintFloatText(GetMyHero(),0," ")
  91.         end
  92.     elseif key == rKey then
  93.         if msg == KEY_DOWN then
  94.             rCombo = true
  95.         elseif msg == KEY_UP then
  96.             rCombo = false
  97.             PrintFloatText(GetMyHero(),0," ")
  98.         end
  99.     end
  100. end
  101.  
  102. function OnTick()
  103.     ts:update()
  104.     qBaseDmg = (35+25*player:GetSpellData(_Q).level-1 + player.ap*0.4 + player.maxMana*0.065)
  105.     wBaseDmg = (25+35*player:GetSpellData(_W).level-1 + player.ap*0.6 + player.maxMana*0.045)
  106.     eBaseDmg = (30+20*player:GetSpellData(_E).level-1 + player.ap*0.35 + player.maxMana*0.01)
  107.     local target = GetTarget()
  108.     qDmg = (target and player:CalcMagicDamage(GetTarget(), qBaseDmg) or 0)
  109.     wDmg = (target and player:CalcMagicDamage(GetTarget(), wBaseDmg) or 0)
  110.     eDmg = (target and player:CalcMagicDamage(GetTarget(), eBaseDmg) or 0)
  111.     if not player.dead and ts.target ~= nil then PrintFloatText(ts.target,0,"targeting") end
  112.     if not player.dead and scriptActive then
  113.         if rCombo then
  114.             PrintFloatText(GetMyHero(),0,"ULT Combo")
  115.             if doSpell(_Q, qRange, qBaseDmg) then
  116.                 if doSpell(_R, qRange, qBaseDmg) then
  117.                     if doSpell(_W, wRange, wBaseDmg) then
  118.                         if doSpell(_Q, qRange, qBaseDmg) then
  119.                             if doSpell(_E, eRange, eBaseDmg) then
  120.                             end
  121.                         end
  122.                     end
  123.                 end
  124.             end
  125.         elseif eCombo then
  126.             PrintFloatText(GetMyHero(),0,"DPS Combo")
  127.             if doSpell(_Q, qRange, qBaseDmg) then
  128.                 if doSpell(_W, wRange, wBaseDmg) then
  129.                     if doSpell(_E, eRange, eBaseDmg) then
  130.                         if doSpell(_Q, qRange, qBaseDmg) then
  131.                         end
  132.                     end
  133.                 end
  134.             end
  135.         elseif wCombo then
  136.             PrintFloatText(GetMyHero(),0,"CC Combo")
  137.             if doSpell(_W, wRange, wBaseDmg) then
  138.                 if doSpell(_Q, qRange, qBaseDmg) then
  139.                     if doSpell(_E, eRange, eBaseDmg) then
  140.                         if doSpell(_Q, qRange, qBaseDmg) then
  141.                         end
  142.                     end
  143.                 end
  144.             end
  145.         elseif qCombo then
  146.             PrintFloatText(GetMyHero(),0,"Q Harass")
  147.             doSpell(_Q, qRange, qBaseDmg)
  148.         end
  149.     end
  150. end
  151.  
  152. function OnSendChat(msg)
  153.     TargetSelector__OnSendChat(msg)
  154. end
Add Comment
Please, Sign In to add comment