Advertisement
Guest User

Ryze GoS

a guest
Oct 1st, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.77 KB | None | 0 0
  1. if GetObjectName(myHero) ~= "Ryze" then return end
  2.  
  3. local RyzeMenu = Menu("Ryze", "Ryze")
  4. RyzeMenu:SubMenu("Combo", "Combo")
  5. RyzeMenu.Combo:Boolean("Q", "Use Q", true)
  6. RyzeMenu.Combo:Boolean("W", "Use W", true)
  7. RyzeMenu.Combo:Boolean("E", "Use E", true)
  8. RyzeMenu.Combo:Boolean("R", "Use R", true)
  9. RyzeMenu.Combo:Boolean("QWeaving", "Weave Q between attacks", true)
  10. RyzeMenu.Combo:Boolean("KeepStack", "Keep one stack up", false)
  11.  
  12. RyzeMenu:SubMenu("Harass", "Harass")
  13. RyzeMenu.Harass:Boolean("Q", "Use Q", true)
  14. RyzeMenu.Harass:Boolean("W", "Use W", true)
  15. RyzeMenu.Harass:Boolean("E", "Use E", true)
  16. RyzeMenu.Harass:Slider("Mana", "if Mana % is More than", 30, 0, 80, 1)
  17.  
  18. RyzeMenu:SubMenu("Killsteal", "Killsteal")
  19. RyzeMenu.Killsteal:Boolean("Q", "Killsteal with Q", true)
  20. RyzeMenu.Killsteal:Boolean("W", "Killsteal with W", true)
  21. RyzeMenu.Killsteal:Boolean("E", "Killsteal with E", true)
  22.  
  23. RyzeMenu:SubMenu("Misc", "Misc")
  24. RyzeMenu.Misc:Boolean("Autoignite", "Auto Ignite", true)
  25. RyzeMenu.Misc:Boolean("Autolvl", "Auto level", false)
  26. RyzeMenu.Misc:List("Autolvltable", "Priority", 1, {"Q-W-E", "W-Q-E", "Q-E-W"})
  27.  
  28. RyzeMenu:SubMenu("JungleClear", "JungleClear")
  29. RyzeMenu.JungleClear:Boolean("Q", "Use Q", true)
  30. RyzeMenu.JungleClear:Boolean("W", "Use W", true)
  31. RyzeMenu.JungleClear:Boolean("E", "Use E", true)
  32. RyzeMenu.JungleClear:Boolean("R", "Use R", false)
  33. RyzeMenu.JungleClear:Boolean("QWeaving", "Weave Q between attacks", true)
  34.  
  35. RyzeMenu:SubMenu("Drawings", "Drawings")
  36. RyzeMenu.Drawings:Boolean("Q", "Draw Q Range", true)
  37. RyzeMenu.Drawings:Boolean("W", "Draw W Range", true)
  38. RyzeMenu.Drawings:Boolean("E", "Draw E Range", true)
  39.  
  40. local QueueQ = false
  41. local CastAttempted = false
  42.    
  43. OnLoop(function(myHero)
  44.   if IOW:Mode() == "Combo" then
  45.    
  46.     local target = GetCurrentTarget()
  47.     local QPred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1400,250,900,55,true,true)
  48.     local Q2Pred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1400,250,900,55,false,true)
  49.    
  50.     local AllSpellsReady = (CanUseSpell(myHero, _Q) == READY and CanUseSpell(myHero, _W) == READY and CanUseSpell(myHero, _E) == READY)
  51.     local CanUseAll = (RyzeMenu.Combo.Q:Value() and RyzeMenu.Combo.E:Value() and RyzeMenu.Combo.W:Value())
  52.     local mouse = GetMousePos()
  53.    
  54.     -- Non-ult combos with two stacks
  55.     if AllSpellsReady == true and GoS:ValidTarget(target, 600) and CanUseAll == true and RyzeMenu.Combo.QWeaving:Value() then
  56.         if GotBuff(myHero, "ryzepassivestack") == 2 and GoS:ValidTarget(target, 600) then
  57.             CastTargetSpell(target, _E)
  58.             QueueQ = true
  59.         end
  60.     end
  61.    
  62.     if RyzeMenu.Combo.QWeaving:Value() then
  63.         if (QueueQ and CanUseSpell(myHero, _Q) == READY and GoS:ValidTarget(target, 900)) then
  64.             CastSkillShot(_Q,Q2Pred.PredPos.x,Q2Pred.PredPos.y,Q2Pred.PredPos.z)
  65.             CastAttempted = true
  66.         end
  67.         if (QueueQ and CastAttempted and CanUseSpell(myHero, _Q) == ONCOOLDOWN) then
  68.             QueueQ = false
  69.             CastAttempted = false
  70.         end
  71.     else QueueQ = false end
  72.  
  73.     if CanUseSpell(myHero, _R) == READY and GoS:ValidTarget(target, 700) and RyzeMenu.Combo.R:Value() and GotBuff(myHero, "ryzepassivestack") == 4 then
  74.         CastSpell(_R)
  75.     end
  76.      
  77.     if CanUseSpell(myHero, _W) == READY and GoS:ValidTarget(target, 600) and (QueueQ == false or RyzeMenu.Combo.QWeaving:Value() == false) and RyzeMenu.Combo.W:Value() then
  78.         CastTargetSpell(target, _W)
  79.         if GotBuff(myHero, "ryzepassivecharged") > 0 and CanUseAll then QueueQ = true end
  80.     end
  81.    
  82.     if CanUseSpell(myHero, _E) == READY and GoS:ValidTarget(target, 600) and ((GotBuff(myHero, "ryzepassivestack")  < 3 or GotBuff(myHero, "ryzepassivecharged") > 0) or RyzeMenu.Combo.QWeaving:Value() == false) and RyzeMenu.Combo.E:Value() then
  83.         CastTargetSpell(target, _E)
  84.         if GotBuff(myHero, "ryzepassivecharged") > 0 and CanUseAll then QueueQ = true end
  85.     end
  86.    
  87.     if CanUseSpell(myHero, _Q) == READY and ((Q2Pred.HitChance == 1 and (GotBuff(myHero, "ryzepassivestack") <= 3 or (GotBuff(myHero, "ryzepassivestack") > 3 and RyzeMenu.Combo.QWeaving:Value() == false))) or GotBuff(myHero, "ryzepassivecharged") > 0) and RyzeMenu.Combo.Q:Value() and GoS:ValidTarget(target, 900) then
  88.         CastSkillShot(_Q,Q2Pred.PredPos.x,Q2Pred.PredPos.y,Q2Pred.PredPos.z)
  89.         QueueQ = false
  90.     elseif CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and RyzeMenu.Combo.Q:Value() and GoS:ValidTarget(target, 900) then
  91.         CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  92.         QueueQ = false
  93.     end
  94.    
  95.     if GotBuff(myHero, "ryzepassivestack") == 0 and CanUseSpell(myHero, _Q) == READY and RyzeMenu.Combo.KeepStack:Value() then
  96.         if GoS:ValidTarget(target, 900) then CastSkillShot(_Q,Q2Pred.PredPos.x,Q2Pred.PredPos.y,Q2Pred.PredPos.z)
  97.         else CastSkillShot(_Q, mouse.x, mouse.y, mouse.z) end
  98.     end
  99.    
  100.     end
  101.  
  102.   if IOW:Mode() == "Harass" then
  103.    
  104.     local target = GetCurrentTarget()
  105.     local QPred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1400,250,900,55,true,true)
  106.     local Q2Pred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1400,250,900,55,false,true)
  107.          
  108.     if CanUseSpell(myHero, _W) == READY and GoS:ValidTarget(target, 600) and RyzeMenu.Harass.W:Value() then
  109.         CastTargetSpell(target, _W)
  110.     end
  111.      
  112.     if CanUseSpell(myHero, _E) == READY and GoS:ValidTarget(target, 600) and RyzeMenu.Harass.E:Value() then
  113.         CastTargetSpell(target, _E)
  114.     end
  115.    
  116.     if CanUseSpell(myHero, _Q) == READY and Q2Pred.Hitchance == 1 and RyzeMenu.Harass.Q:Value() and GoS:ValidTarget(target, 900) then
  117.     CastSkillShot(_Q,Q2Pred.PredPos.x,Q2Pred.PredPos.y,Q2Pred.PredPos.z)
  118.         elseif CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and RyzeMenu.Harass.Q:Value() and GoS:ValidTarget(target, 900) then
  119.     CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  120.     end
  121.    
  122.   end
  123.  
  124.     for i,enemy in pairs(GoS:GetEnemyHeroes()) do
  125.    
  126.             local QPred = GetPredictionForPlayer(GoS:myHeroPos(),enemy,GetMoveSpeed(enemy),1400,250,900,55,true,true)
  127.         local ExtraDmg = 0
  128.         if GotBuff(myHero, "itemmagicshankcharge") == 100 then
  129.         ExtraDmg = ExtraDmg + 0.1*GetBonusAP(myHero) + 100
  130.         end
  131.        
  132.         if Ignite and RyzeMenu.Misc.Autoignite:Value() then
  133.                   if CanUseSpell(myHero, Ignite) == READY and 20*GetLevel(myHero)+50 > GetCurrentHP(enemy)+GetDmgShield(enemy)+GetHPRegen(enemy)*2.5 and GoS:ValidTarget(enemy, 600) then
  134.                   CastTargetSpell(enemy, Ignite)
  135.                   end
  136.                 end
  137.        
  138.         if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and GoS:ValidTarget(enemy, 900) and RyzeMenu.Killsteal.Q:Value() and GetCurrentHP(enemy)+GetMagicShield(enemy)+GetDmgShield(enemy) < GoS:CalcDamage(myHero, enemy, 0, 25*GetCastLevel(myHero,_Q)+35+.55*GetBonusAP(myHero)+0.015*GetMaxMana(myHero)+0.005*GetCastLevel(myHero,_Q)*GetMaxMana(myHero) + ExtraDmg) then
  139.         CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  140.         elseif CanUseSpell(myHero, _W) == READY and GoS:ValidTarget(enemy, 600) and RyzeMenu.Killsteal.W:Value() and GetCurrentHP(enemy)+GetMagicShield(enemy)+GetDmgShield(enemy) < GoS:CalcDamage(myHero, enemy, 0, 60+20*GetCastLevel(myHero,_W)+0.4*GetBonusAP(myHero)+0.025*GetMaxMana(myHero) + ExtraDmg) then
  141.         CastTargetSpell(enemy, _W)
  142.         elseif CanUseSpell(myHero, _E) == READY and GoS:ValidTarget(enemy, 600) and RyzeMenu.Killsteal.E:Value() and GetCurrentHP(enemy)+GetMagicShield(enemy)+GetDmgShield(enemy) < GoS:CalcDamage(myHero, enemy, 0, 20+16*GetCastLevel(myHero,_E)+0.2*GetBonusAP(myHero)+0.02*GetMaxMana(myHero) + ExtraDmg) then
  143.         CastTargetSpell(enemy, _E)
  144.         end
  145.        
  146.     end
  147.  
  148. for _,mob in pairs(GoS:GetAllMinions(MINION_JUNGLE)) do
  149.        
  150.         if IOW:Mode() == "LaneClear" then
  151.         local mobPos = GetOrigin(mob)
  152.         local AllSpellsReady = (CanUseSpell(myHero, _Q) == READY and CanUseSpell(myHero, _W) == READY and CanUseSpell(myHero, _E) == READY)
  153.         local CanUseAll = (RyzeMenu.JungleClear.Q:Value() and RyzeMenu.JungleClear.E:Value() and RyzeMenu.JungleClear.W:Value())
  154.    
  155.         -- Non-ult combos with two stacks
  156.         if AllSpellsReady == true and GoS:ValidTarget(mob, 600) and CanUseAll == true and RyzeMenu.JungleClear.QWeaving:Value() then
  157.             if GotBuff(myHero, "ryzepassivestack") == 2 and GoS:ValidTarget(mob, 600) then
  158.                 CastTargetSpell(mob, _E)
  159.                 QueueQ = true
  160.             end
  161.         end
  162.    
  163.         if RyzeMenu.JungleClear.QWeaving:Value() then
  164.             if (QueueQ and CanUseSpell(myHero, _Q) == READY and GoS:ValidTarget(mob, 900)) then
  165.                 CastSkillShot(_Q,mobPos.x,mobPos.y,mobPos.z)
  166.                 CastAttempted = true
  167.             end
  168.             if (QueueQ and CastAttempted and CanUseSpell(myHero, _Q) == ONCOOLDOWN) then
  169.                 QueueQ = false
  170.                 CastAttempted = false
  171.             end
  172.         else QueueQ = false end
  173.  
  174.         if CanUseSpell(myHero, _R) == READY and GoS:ValidTarget(mob, 700) and RyzeMenu.JungleClear.R:Value() and GotBuff(myHero, "ryzepassivestack") == 4 then
  175.             CastSpell(_R)
  176.         end
  177.      
  178.         if CanUseSpell(myHero, _W) == READY and GoS:ValidTarget(mob, 600) and (QueueQ == false or RyzeMenu.JungleClear.QWeaving:Value() == false) and RyzeMenu.JungleClear.W:Value() then
  179.             CastTargetSpell(mob, _W)
  180.             if GotBuff(myHero, "ryzepassivecharged") > 0 and CanUseAll then QueueQ = true end
  181.         end
  182.    
  183.         if CanUseSpell(myHero, _E) == READY and GoS:ValidTarget(mob, 600) and ((QueueQ == false and (GotBuff(myHero, "ryzepassivestack")  < 3 or GotBuff(myHero, "ryzepassivecharged") > 0)) or RyzeMenu.JungleClear.QWeaving:Value() == false) and RyzeMenu.JungleClear.E:Value() then
  184.             CastTargetSpell(mob, _E)
  185.             if GotBuff(myHero, "ryzepassivecharged") > 0 and CanUseAll then QueueQ = true end
  186.         end
  187.    
  188.         if CanUseSpell(myHero, _Q) == READY and ((GotBuff(myHero, "ryzepassivestack") <= 3 or (GotBuff(myHero, "ryzepassivestack") > 3 and RyzeMenu.JungleClear.QWeaving:Value() == false)) or GotBuff(myHero, "ryzepassivecharged") > 0) and RyzeMenu.Combo.Q:Value() and GoS:ValidTarget(mob, 900) then
  189.             CastSkillShot(_Q,mobPos.x,mobPos.y,mobPos.z)
  190.             QueueQ = false
  191.         end
  192.        
  193.         end
  194. end
  195.  
  196. if RyzeMenu.Misc.Autolvl:Value() then
  197.    if RyzeMenu.Misc.Autolvltable:Value() == 1 then leveltable = {_Q, _W, _E, _Q, _Q, _R, _Q, _W, _Q, _W, _R, _W, _W, _E, _E, _R, _E, _E}
  198.    elseif RyzeMenu.Misc.Autolvltable:Value() == 2 then leveltable = {_Q, _W, _E, _W, _W, _R, _W, _Q, _W, _Q, _R, _Q, _Q, _E, _E, _R, _E, _E}
  199.    elseif RyzeMenu.Misc.Autolvltable:Value() == 3 then leveltable = {_Q, _W, _E, _Q, _Q, _R, _Q, _E, _Q, _E, _R, _E, _E, _W, _W, _R, _W, _W}
  200.    end
  201. LevelSpell(leveltable[GetLevel(myHero)])
  202. end
  203.  
  204. if RyzeMenu.Drawings.Q:Value() then DrawCircle(GoS:myHeroPos().x, GoS:myHeroPos().y, GoS:myHeroPos().z,900,1,128,0xff00ff00) end
  205. if RyzeMenu.Drawings.W:Value() then DrawCircle(GoS:myHeroPos().x, GoS:myHeroPos().y, GoS:myHeroPos().z,600,1,128,0xff00ff00) end
  206. if RyzeMenu.Drawings.E:Value() then DrawCircle(GoS:myHeroPos().x, GoS:myHeroPos().y, GoS:myHeroPos().z,600,1,128,0xff00ff00) end
  207.  
  208. end)   
  209.  
  210. GoS:AddGapcloseEvent(_W, 600, true) -- hi Copy-Pasters ^^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement