Illprotectjew

TwoButtAdv - Pantheon Fix

May 29th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 37.68 KB | None | 0 0
  1. --[[
  2.          _____                  ___           ___      _   _            _    
  3.         |_   _|__ __ _ _ __    / _ \ _ _  ___| _ )_  _| |_| |_ ___ _ _ ( )___
  4.           | |/ -_) _` | '  \  | (_) | ' \/ -_) _ \ || |  _|  _/ _ \ ' \|/(_-<
  5.           |_|\___\__,_|_|_|_|  \___/|_||_\___|___/\_,_|\__|\__\___/_||_| /__/
  6.    _   _ _ ___      ___              ___ _                      ___         _      _  
  7.   /_\ | | |_ _|_ _ / _ \ _ _  ___   / __| |_  __ _ _ __  _ __  / __| __ _ _(_)_ __| |_
  8.  / _ \| | || || ' \ (_) | ' \/ -_) | (__| ' \/ _` | '  \| '_ \ \__ \/ _| '_| | '_ \  _|
  9. /_/ \_\_|_|___|_||_\___/|_||_\___|  \___|_||_\__,_|_|_|_| .__/ |___/\__|_| |_| .__/\__|
  10.                                                         |_|                  |_|      
  11. --]]
  12.  
  13. --Currently Supported Champions are -
  14. --Akali
  15. --Brand
  16. --Diana
  17. --Dr Mundo
  18. --Graves
  19. --Kayle
  20. --Pantheon
  21. --Rengar
  22. --Shen Credits: IPJ
  23. --Talon
  24. --Tristana
  25. --Volibear
  26. --Xerath
  27. --Yorick Credits: IPJ
  28.  
  29. --Config Settings
  30.  
  31. --Mundo
  32. local MundoTooLow = 15
  33. -- tooLow is the point at which it will stop casting spells
  34. local MundoUltHP = 30
  35. --MundoUltHP is the percent of hp that it will cast it's ULT
  36. local MundoWToggled = false
  37.  
  38. --Kayle
  39. local healPlease = 80
  40. --% HP that Kayle will Auto heal herself
  41. local ultiPlease = 20
  42. --% HP that Kayle will auto Ult herself
  43.  
  44. --Shen
  45. --Utilizes auto-shielding pro-sauce.
  46. local saveMeee = 20
  47. --% HP you will ulti to allies.
  48.  
  49. --Yorick
  50. --Utilizes auto-respawning pro-sauce.
  51. local ghoulmeh = 15
  52. --% HP you will ulti to allies.
  53.                                                                                            
  54. require "Utils"
  55.  
  56. printtext("\nTeam OneButton's AllInOne Script\n")
  57.  
  58. local myHero = GetSelf()   
  59. local iHero = GetSelf()
  60. local target  
  61. local doAttack = false  
  62. local toggle_timer=os.clock()
  63. local script_loaded=0
  64. local wUsedAt = 0
  65. local waUsedAt = 0
  66. local vUsedAt = 0
  67. local timer=os.clock()
  68. local bluePill = nil
  69.  
  70. if myHero.name == "Akali" then
  71.     function OnTick()
  72.     AkaliDraw()
  73.     DrawText("Team OneButton's Akali", 105, 25, Color.Green)                       
  74.     target = GetWeakEnemy('MAGIC',800,"NEARMOUSE")
  75.         if AIOConfig.AkaliCombo then   
  76.         if target == nil then
  77.             MoveToMouse()  
  78.         end        
  79.             if target ~= nil then  
  80.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  81.                 CustomCircle(100,5,2,target)
  82.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  83.                 UtilityFunction()
  84.                 AttackTarget(target)
  85.                     if GetDistance(myHero, target) < 600 then  
  86.                         AkaliQ(target)
  87.                     end    
  88.                     if GetDistance(myHero, target) < 800 then  
  89.                         AkaliR(target)
  90.                     end
  91.                     if GetDistance(myHero, target) < 325 then  
  92.                         AkaliE(target)
  93.                     end
  94.             end
  95.         end    
  96.     end
  97. end
  98.  
  99. if myHero.name == "Brand" then
  100.     local targetbuff = 0
  101.     function OnTick()
  102.         BrandDraw()
  103.         DrawText("Team OneButton's Brand", 105, 25, Color.Green)                   
  104.         target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
  105.         if AIOConfig.BrandCombo then
  106.             if target == nil then
  107.                 MoveToMouse()  
  108.             end        
  109.             if target ~= nil then  
  110.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  111.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  112.                 UtilityFunction()
  113.                 BrandE(target)
  114.                 BrandW(target)
  115.                 BrandQ(target)
  116.                 BrandR(target)
  117.                 AttackTarget(target)
  118.             end
  119.         end
  120.         if AIOConfig.BrandHarass then
  121.             if target == nil then
  122.                 MoveToMouse()  
  123.             end        
  124.             if target ~= nil then  
  125.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  126.                 UtilityFunction()
  127.                 BrandE(target)
  128.                 BrandW(target)
  129.                 BrandQ(target)
  130.                 AttackTarget(target)
  131.             end
  132.         end
  133.     end
  134. end
  135.  
  136. if myHero.name == "Diana" then
  137.     function OnTick()
  138.     local Moonlight = 0
  139.     DianaDraw()
  140.     DrawText("xXGeminiXx's OneButton Diana", 105, 25, Color.Green)
  141.     target = GetWeakEnemy('MAGIC',830,"NEARMOUSE")  
  142.         if AIOConfig.DianaCombo then       
  143.             if target == nil then
  144.                 MoveToMouse()  
  145.             end    
  146.             if target ~= nil then
  147.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  148.                 CustomCircle(100,5,2,target)
  149.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  150.                 UtilityFunction()
  151.                 DianaQ(target)
  152.                 DianaW(target)
  153.                 DianaE(target)
  154.                 DianaR(target)
  155.                 AttackTarget(target)
  156.             end
  157.         end
  158.         if AIOConfig.DianaHarass then      
  159.             if target == nil then
  160.                 MoveToMouse()  
  161.             end    
  162.             if target ~= nil then
  163.                 CustomCircle(100,5,2,target)
  164.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  165.                 UtilityFunction()
  166.                 DianaQ(target)
  167.                 AttackTarget(target)
  168.             end
  169.         end
  170.     end
  171. end
  172.  
  173. if myHero.name == "DrMundo" then
  174.     function OnTick()
  175.     local percent = ((myHero.health / myHero.maxHealth)*100)
  176.     MundoDraw()
  177.     DrawText("Team OneButton's Mundo", 105, 25, Color.Green)
  178.     --DrawText("HP" .. percent, 105, 50, Color.Red)                    
  179.     target = GetWeakEnemy('MAGIC',1000,"NEARMOUSE")
  180.         if AIOConfig.MundoCombo then
  181.             if target == nil then
  182.                 MoveToMouse()  
  183.             end        
  184.             if target ~= nil then  
  185.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  186.                 CustomCircle(100,5,2,target)
  187.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  188.                 AttackTarget(target)
  189.                 UtilityFunction()
  190.                     if percent >= MundoTooLow then
  191.                         MundoQ(target)
  192.                         MundoW(target)
  193.                         MundoE(target)
  194.                         else
  195.                         DrawText("HP BELOW " .. MundoTooLow .. "%", 165, 80, Color.Red)
  196.                         end
  197.             else
  198.                 MundoWToggled = false
  199.             end
  200.         end
  201.         if percent <= MundoUltHP then
  202.             MundoR(target)
  203.         end
  204.     end
  205. end
  206.  
  207. if myHero.name == "Graves" then
  208.     function OnTick()
  209.     DrawText("Boom headshot!", 105, 25, Color.Green)       
  210.     GravesDraw()   
  211.     target = GetWeakEnemy('PHYS',900,"NEARMOUSE")
  212.         if AIOConfig.GravesCombo then  
  213.             if target == nil then
  214.                 MoveToMouse()  
  215.             end    
  216.             if target ~= nil then          
  217.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)         
  218.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  219.                 UtilityFunction()
  220.                 end
  221.                 if GetDistance(myHero, target) < 900 then  
  222.                     GravesQ()
  223.                 end
  224.                 if GetDistance(myHero, target) < 900 then  
  225.                     GravesW()
  226.                 end                    
  227.                 if GetDistance(myHero, target) < 900 then  
  228.                     GravesR()
  229.                 end
  230.                 if ValidTarget(target) then
  231.                 AttackTarget(target)
  232.                 end
  233.         end
  234.         if AIOConfig.GravesHarass then 
  235.             if target == nil then
  236.                 MoveToMouse()  
  237.             end    
  238.             if target ~= nil then          
  239.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)         
  240.                 UtilityFunction()
  241.                 end
  242.                 if GetDistance(myHero, target) < 900 then  
  243.                     GravesQ()
  244.                 end
  245.                 if GetDistance(myHero, target) < 900 then  
  246.                     GravesW()
  247.                 end                    
  248.                 if ValidTarget(target) then
  249.                 AttackTarget(target)
  250.                 end
  251.         end
  252.     end
  253. end
  254.  
  255. if myHero.name == "Kayle" then
  256.     function OnTick()
  257.     local script_loaded=1
  258.     target = GetWeakEnemy('MAGIC',650)
  259.     HP()
  260.     Ultibot()
  261.     DrawCircleObject(myHero, 650, 0x02)
  262.     DrawText("Kaylebot v0.2 Loaded",5,40,0xFF00EE00);
  263.     DrawText("AutoUlt v0.2 Activated",5,80,0xFF00EE00);
  264.         if AIOConfig.KayleCombo then
  265.             if target == nil then
  266.                 MoveToMouse()  
  267.             end
  268.             if target ~= nil then
  269.                 DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
  270.                 CustomCircle(100,5,2,target)
  271.                 UtilityFunction()
  272.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  273.                     if GetDistance(myHero, target) < 650 then
  274.                         CastSpellTarget("Q",target)
  275.                     end
  276.                     if GetDistance(myHero, target) < 650 then
  277.                         CastSpellTarget("E", myHero)
  278.                     end
  279.                 AttackTarget(target)
  280.             end
  281.         end    
  282.     end
  283. end
  284.  
  285. if myHero.name == "Pantheon" then
  286.     function OnTick()
  287.     local etimer = 0
  288.     DrawText("THIS.. IS.. SPARTA!!", 105, 25, Color.Green)
  289.     PanthDraw()
  290.     target = GetWeakEnemy('PHYS',600)
  291.         if AIOConfig.PantheonCombo then
  292.             if target == nil then
  293.                 if GetTickCount() > etimer then
  294.                     MoveToMouse()
  295.                 end
  296.             end
  297.             if target ~= nil then      
  298.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  299.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  300.                     UtilityFunction()
  301.                         if GetTickCount() > etimer then
  302.                         if GetDistance(myHero, target) < 600 then  
  303.                             PanthQ()
  304.                         end    
  305.                         end
  306.                         if GetDistance(myHero, target) < 600 then  
  307.                             PanthW()
  308.                         end    
  309.                         if GetDistance(myHero, target) < 600 then  
  310.                             PanthE()
  311.                         end
  312.                         end
  313.                 end
  314.                 end
  315.             end
  316.        
  317.    
  318.  
  319. if myHero.name == "Rengar" then
  320.     function OnTick()
  321.     RengarDraw()
  322.     DrawText("Leap Frog", 105, 25, Color.Green)                
  323.     target = GetWeakEnemy('PHYS',780,"NEARMOUSE")
  324.         if AIOConfig.RengarCombo then  
  325.             if target == nil then
  326.                 MoveToMouse()  
  327.             end
  328.             if target ~= nil then  
  329.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  330.                 CustomCircle(100,5,2,target)
  331.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  332.                 AttackTarget(target)
  333.                 UtilityFunction()
  334.                     if GetDistance(myHero, target) < 600 then
  335.                         RengarQ()
  336.                     end
  337.                     if GetDistance(myHero, target) < 575 then
  338.                         RengarE()
  339.                     end
  340.                     if GetDistance(myHero, target) < 500 then
  341.                         RengarW()
  342.                     end
  343.                 end
  344.             end
  345.         if AIOConfig.RengarHarass then 
  346.             if target == nil then
  347.                 MoveToMouse()  
  348.             end
  349.             if target ~= nil then  
  350.                 CustomCircle(100,5,2,target)
  351.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  352.                 UtilityFunction()
  353.                 AttackTarget(target)
  354.                     if GetDistance(myHero, target) < 575 then
  355.                         RengarE()
  356.                     end
  357.                     if GetDistance(myHero, target) < 500 then
  358.                         RengarW()
  359.                     end
  360.             end
  361.         end
  362.     end        
  363. end
  364.  
  365. if myHero.name == "Shen" then
  366.     function OnTick()
  367.     local script_loaded=1
  368.     target = GetWeakEnemy('MAGIC',575)
  369.     SaveThemAll()
  370.     DrawCircleObject(myHero, 575, 0x02)
  371.     DrawCircleObject(myHero, 475, 0x02)
  372.     DrawText("COME AT ME BRO!",5,40,0xFF00EE00);
  373.     DrawText("AutoUlt Activated",5,80,0xFF00EE00);
  374.         if AIOConfig.ShenCombo then
  375.             if target == nil then
  376.                 MoveToMouse()  
  377.             end
  378.             if target ~= nil then
  379.                 DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
  380.                 CustomCircle(100,5,2,target)
  381.                 UtilityFunction()
  382.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  383.                     if GetDistance(myHero, target) < 475 then
  384.                         CastSpellTarget("Q",target)
  385.                     end
  386.                     if GetDistance(myHero, target) < 575 then
  387.                         ShenE()
  388.                     end
  389.                     if GetDistance(myHero, target) < 350 then
  390.                         CastSpellTarget("W", myHero)
  391.                     end
  392.                 AttackTarget(target)
  393.             end
  394.         end    
  395.     end
  396. end
  397. if myHero.name == "Talon" then
  398.     function OnTick()
  399.     TalonDraw()
  400.     DrawText("Do the Chickens have large Talons?", 105, 25, Color.Green)
  401.     target = GetWeakEnemy('PHYS',700,"NEARMOUSE")  
  402.             if AIOConfig.TalonCombo then
  403.                 if target == nil or not doAttack then
  404.                     MoveToMouse()
  405.                 if target ~= nil then
  406.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  407.                 CustomCircle(100,5,2,target)
  408.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  409.                 UtilityFunction()
  410.                 if GetDistance(myHero, target) < 700 then
  411.                     TalonE(target)
  412.                 end    
  413.                 TalonQ(target)
  414.                 AttackTarget(target)                                  
  415.                 if GetDistance(myHero, target) < 595 then      
  416.                     TalonW(target)
  417.                 end    
  418.                 TalonR(target)
  419.                 AttackTarget(target)
  420.             end
  421.             end
  422.         end
  423.             if AIOConfig.TalonHarass then
  424.                 if target == nil or not doAttack then
  425.                     MoveToMouse()
  426.                 if target ~= nil then
  427.                 CustomCircle(100,5,2,target)
  428.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  429.                 UtilityFunction()
  430.                 AttackTarget(target)                                  
  431.                 if GetDistance(myHero, target) < 595 then      
  432.                     TalonW(target)
  433.                 end    
  434.                 AttackTarget(target)
  435.             end
  436.             end
  437.         end    
  438.     end
  439. end
  440.  
  441. if myHero.name == "Tristana" then
  442.     function OnTick()
  443.     TristDraw()
  444.     DrawText("Wanna see the fireworks?", 105, 25, Color.Green)                 
  445.     target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
  446.         if AIOConfig.TristanaCombo then
  447.             if target == nil or not doAttack then
  448.                 MoveToMouse()      
  449.             if target ~= nil then  
  450.             DrawSphere(50,25,3,target.x,target.y+300,target.z)
  451.             DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  452.             UtilityFunction()
  453.             if GetDistance(myHero, target) < 900 then  
  454.                 TristW()
  455.             end
  456.             if GetDistance(myHero, target) < 900 then  
  457.                 TristE()
  458.             end                    
  459.             if GetDistance(myHero, target) < 900 then  
  460.                 TristR()
  461.             end    
  462.         AttackTarget(target)
  463.         end
  464.             end
  465.         end  
  466.         if AIOConfig.TristanaHarass then
  467.             if target == nil or not doAttack then
  468.                 MoveToMouse()      
  469.             if target ~= nil then  
  470.             DrawSphere(50,25,3,target.x,target.y+300,target.z)
  471.             UtilityFunction()
  472.             if GetDistance(myHero, target) < 900 then  
  473.                 TristW()
  474.             end
  475.             if GetDistance(myHero, target) < 900 then  
  476.                 TristE()
  477.             end                    
  478.         AttackTarget(target)
  479.         end
  480.             end
  481.         end        
  482.     end
  483. end
  484.  
  485. if myHero.name == "Volibear" then
  486.     function OnTick()
  487.     VoliDraw()
  488.     DrawText("Rolling Thunder", 105, 25, Color.Green)                  
  489.     target = GetWeakEnemy('PHYS',1500,"NEARMOUSE")
  490.         if AIOConfig.VolibearCombo then    
  491.             if target == nil or not doAttack then
  492.                 MoveToMouse()      
  493.                 if target ~= nil then  
  494.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  495.                 UtilityFunction()
  496.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  497.                     if GetDistance(myHero, target) < 1500 then
  498.                         VoliQ()
  499.                     end
  500.                     if GetDistance(myHero, target) < 900 then
  501.                         VoliR()
  502.                     end
  503.                     if GetDistance(myHero, target) < 425 then
  504.                         VoliE()
  505.                     end
  506.                     if GetDistance(myHero, target) < 400 then
  507.                         VoliW()
  508.                     end
  509.                 AttackTarget(target)
  510.                     end
  511.                 end            
  512.                 end
  513.             if AIOConfig.VolibearHarass then       
  514.             if target == nil or not doAttack then
  515.                 MoveToMouse()      
  516.                 if target ~= nil then  
  517.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  518.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  519.                 UtilityFunction()
  520.                     if GetDistance(myHero, target) < 1500 then
  521.                         VoliQ()
  522.                     end
  523.                     if GetDistance(myHero, target) < 425 then
  524.                         VoliE()
  525.                     end
  526.                     if GetDistance(myHero, target) < 400 then
  527.                         VoliW()
  528.                     end
  529.                 AttackTarget(target)
  530.             end
  531.         end            
  532.     end
  533. end
  534. end
  535.  
  536. if myHero.name == "Xerath" then
  537.     function OnTick()
  538.     XerathDraw()
  539.     DrawText("I AM the arcane!", 105, 25, Color.Green)                 
  540.     target = GetWeakEnemy('MAGIC',1300,"NEARMOUSE")
  541.         if AIOConfig.XerathCombo then
  542.             if target == nil or not doAttack then
  543.                     MoveToMouse()      
  544.                 if target ~= nil then  
  545.                     UtilityFunction()
  546.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  547.                     CustomCircle(100,4,1,target)
  548.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  549.                 if GetDistance(myHero, target) < 1000 then  
  550.                     XerathE()
  551.                 end
  552.                 if GetDistance(myHero, target) < 1300 then  
  553.                     XerathQ()
  554.                 end                    
  555.                 if GetDistance(myHero, target) < 1300 then 
  556.                     XerathR()
  557.                 end
  558.                 if ValidTarget(target) then
  559.                     AttackTarget(target)
  560.                 end
  561.             end
  562.         end
  563.         end
  564.         if AIOConfig.XerathHarass then
  565.             if target == nil or not doAttack then
  566.                     MoveToMouse()      
  567.                 if target ~= nil then  
  568.                     UtilityFunction()
  569.                     CustomCircle(100,4,1,target)
  570.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  571.                 end
  572.                 if GetDistance(myHero, target) < 1000 then  
  573.                     XerathE()
  574.                 end
  575.                 if GetDistance(myHero, target) < 1300 then  
  576.                     XerathQ()
  577.                 end                    
  578.                 if ValidTarget(target) then
  579.                     AttackTarget(target)
  580.                 end
  581.             end
  582.         end        
  583.     end
  584. end
  585. --New Champs--
  586. if myHero.name == "Gragas" then
  587.     function OnTick()
  588.     GragasDraw()                   
  589.     target = GetWeakEnemy("Magic", 600, "NEARMOUSE")
  590.         if AIOConfig.GragasCombo then
  591.             if target == nil then
  592.                     MoveToMouse()
  593.             end                
  594.                 if target ~= nil then  
  595.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  596.                     CustomCircle(100,4,1,target)
  597.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  598.                     UtilityFunction()
  599.                     if CanCastSpell("Q") and ValidTarget(target) then CastSpellXYZ('Q',GetFireahead(target,1,10)) end
  600.                     if CanCastSpell("E") and ValidTarget(target) then CastSpellXYZ('E',GetFireahead(target,1,10)) end
  601.                     if CanCastSpell("R") and ValidTarget(target) then CastSpellTarget('R',target) end
  602.                     if ValidTarget(target) then
  603.                     AttackTarget(target)
  604.                 end
  605.             end
  606.         end
  607.         if AIOConfig.GragasHarass then
  608.             if target == nil then
  609.                     MoveToMouse()      
  610.                 if target ~= nil then  
  611.                     UtilityFunction()
  612.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  613.                     CustomCircle(100,4,1,target)
  614.                     if CanCastSpell("Q") and ValidTarget(target) then CastSpellXYZ('Q',GetFireahead(target,1,10)) end
  615.                     if CanCastSpell("E") and ValidTarget(target) then CastSpellXYZ('E',GetFireahead(target,1,10)) end          
  616.                 if ValidTarget(target) then
  617.                     AttackTarget(target)
  618.                 end
  619.                 end
  620.             end
  621.         end        
  622.     end
  623. end
  624.  
  625. if myHero.name == "Yorick" then
  626.     function OnTick()
  627.     local script_loaded=1
  628.     target = GetWeakEnemy('MAGIC',600)
  629.     YouShallLive()
  630.     DrawCircleObject(myHero, 600, 0x02)
  631.     DrawCircleObject(myHero, 550, 0x02)
  632.     DrawCircleObject(myHero, 150, 0x02)
  633.     DrawText("Shovel: Check! Ghouls: Check! GG!",5,40,0xFF00EE00);
  634.     DrawText("AutoUlt Activated",5,80,0xFF00EE00);
  635.         if AIOConfig.YorickCombo then
  636.             if target == nil then
  637.                 MoveToMouse()  
  638.             end
  639.             if target ~= nil then
  640.                 DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
  641.                 CustomCircle(100,5,2,target)
  642.                 UtilityFunction()
  643.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  644.                     if GetDistance(myHero, target) < 600 then
  645.                         CastSpellTarget("E",target)
  646.                     end
  647.                     if GetDistance(myHero, target) < 550 then
  648.                         YorickW()
  649.                     end
  650.                     if GetDistance(myHero, target) < 300 then
  651.                         CastSpellXYZ("Q",myHero.x,myHero.y,myHero.z)
  652.                     end
  653.                    
  654.                 AttackTarget(target)
  655.             end
  656.         end    
  657.     end
  658. end
  659.  
  660. if myHero.name == "Leblanc" then
  661.     function OnTick()
  662.     LeBlancDraw()                  
  663.     target = GetWeakEnemy("Magic", 600, "NEARMOUSE")
  664.         if AIOConfig.LeBlancCombo then
  665.             if target == nil then
  666.                     MoveToMouse()  
  667.             end
  668.                 if target ~= nil then  
  669.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  670.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  671.                     CustomCircle(100,4,1,target)
  672.                     UtilityFunction()
  673.                     if GetDistance(myHero, target) < 700 then leblancQ(target) end     
  674.                     if GetDistance(myHero, target) < 700 then leblancR(target) end 
  675.                     if GetDistance(myHero, target) < 600 then leblancW(target) end
  676.                     if GetDistance(myHero, target) < 100 and GetDistance(myHero, target) > 10 then  leblancE(target) end   
  677.                     if ValidTarget(target) then
  678.                     AttackTarget(target)
  679.                 end
  680.             end
  681.         end
  682.         if AIOConfig.LeBlancHarass then
  683.             if target == nil then
  684.                     MoveToMouse()
  685.                 end                
  686.                 if target ~= nil then  
  687.                     UtilityFunction()
  688.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  689.                     CustomCircle(100,4,1,target)
  690.                     if GetDistance(myHero, target) < 700 then leblancQ(target) end
  691.                     if GetDistance(myHero, target) < 600 then leblancW(target) end         
  692.                 if ValidTarget(target) then
  693.                     AttackTarget(target)
  694.                 end
  695.                 end
  696.             end
  697.     end
  698. end        
  699. --Leblanc functions
  700. function leblancQ(target)  
  701.     if target ~= nil and ValidTarget(target) and IsSpellReady("Q") and GetSpellLevel("Q") > 0 then
  702.         CastSpellTarget("Q", target)
  703.         lastSpell = "Q"
  704.     end
  705. end
  706.  
  707. function leblancW(target)
  708.     if target ~= nil and ValidTarget(target) and  IsSpellReady("Q") == 0 and not ultReady() and IsSpellReady("W") and GetSpellLevel("W") > 0 and GetClock() > wUsedAt + 4000 then
  709.         CastSpellTarget("W", target)    
  710.         lastSpell = "W"
  711.         wUsedAt = GetClock()
  712.     end
  713. end
  714.  
  715. function leblancE(target)
  716.     if target ~= nil and ValidTarget(target) and not ultReady() and IsSpellReady("E") and GetSpellLevel("E") > 0 then
  717.         CastSpellXYZ("E", target.x, target.y, target.z)
  718.         lastSpell = "E"
  719.     end
  720. end
  721.  
  722. function leblancR(target)  
  723.     if target ~= nil and ValidTarget(target) and lastSpell == "Q" and IsSpellReady("Q") == 0 and ultReady() then
  724.         CastSpellTarget("R", target)
  725.         lastSpell = "R"
  726.     end
  727. end
  728.  
  729. function ultReady()
  730.     if GetSpellLevel("R") == 0 or IsSpellReady("R") == 0 then return false else return true end
  731. end
  732.  
  733. function LeBlancDraw()
  734.     CustomCircle(600,2,3,myHero)
  735. end
  736. --Gragass Functions
  737.  
  738. function GragasDraw()
  739.     CustomCircle(600,2,3,myHero)
  740. end
  741.  
  742. --Dianas Functions
  743.  
  744. function DianaQ(target)
  745.         if target ~= nil and GetDistance(myHero, target) < 825 then  
  746.                 CastSpellXYZ('Q',GetFireahead(target,2,18))
  747.                         targetbuff = 1
  748.         end
  749. end
  750.  
  751. function DianaW(target)
  752.         if IsSpellReady("W") == 1 and GetDistance(myHero, target) < 200 then
  753.                 CastSpellTarget("W",myHero)
  754.         end
  755. end
  756.  
  757. function DianaE(target)
  758.         if IsSpellReady("E") and GetDistance(myHero, target) < 249 then
  759.                 CastSpellTarget("E",myHero)
  760.         end
  761. end
  762.  
  763. function DianaR(target)
  764.         if IsSpellReady("R") == 1 and GetDistance(myHero, target) < 825 and Moonlight == 1 then
  765.                 CastSpellTarget("R",target)                                    
  766.         end
  767. end
  768.  
  769. function DianaDraw()
  770.         CustomCircle(700,2,3,myHero)
  771. end  
  772.  
  773. --End of Diana functions
  774.  
  775. --Akalis Functions
  776. function AkaliQ(target)
  777.     if IsSpellReady("Q") == 1 then
  778.         CastSpellTarget("Q",target)
  779.         lastQ = GetTickCount()
  780.     end
  781. end
  782.  
  783. function AkaliW(target)
  784. --not used currently
  785.     if IsSpellReady("W") == 1 then
  786.         CastSpellTarget("W",target)
  787.     end
  788. end
  789.  
  790. function AkaliE(target)
  791.     if IsSpellReady("E") == 1 then
  792.         if IsSpellReady("Q") == 0 then
  793.             CastSpellTarget("E",target)
  794.         end
  795.     end
  796. end
  797.  
  798. function AkaliR(target)
  799.     if IsSpellReady("R") == 1 then
  800.         CastSpellTarget("R",target)                
  801.     end
  802. end
  803.  
  804. function AkaliDraw()
  805.     CustomCircle(800,2,3,myHero)
  806. end
  807. --End Akali Functions
  808.  
  809. --Dr Mundo Functions
  810. function MundoQ(target)
  811. --Shortened Q distance a tad to ensure hit due to projectile speed+movespeed
  812.     if target ~= nil and GetDistance(myHero, target) < 990 and CreepBlock(myHero.x,myHero.y,myHero.z,GetFireahead(target,2,20)) == 0 then
  813.         CastSpellXYZ('Q',GetFireahead(target,2,20))
  814.     end
  815. end
  816.  
  817. function MundoW(target)
  818. --Cast W on self if it's ready, it's not toggled, and they're close enough to burn
  819.     if IsSpellReady("W") == 1 and MundoWToggled == false and GetDistance(myHero, target) < 325 then
  820.         CastSpellTarget("W",myHero)
  821.         MundoWToggled = true
  822.     end
  823. --Cast W on self (to toggle off) if the spell is ready, it's on, and they're not close enough to burn.
  824.     if IsSpellReady("W") == 1 and MundoWToggled == true and GetDistance(myHero, target) > 400 then
  825.         CastSpellTarget("W",myHero)
  826.         MundoWToggled = false
  827.     end
  828. end
  829.  
  830. function MundoE(target)
  831.     if IsSpellReady("E") == 1 and GetDistance(myHero, target) > 325 then
  832.         CastSpellTarget("E",myHero)
  833.     end
  834. end
  835.  
  836. function MundoR(target)
  837.     if IsSpellReady("R") == 1 then
  838.         CastSpellTarget("R",myHero)                
  839.     end
  840. end
  841.  
  842. function MundoDraw()
  843.     CustomCircle(1000,2,3,myHero)
  844. end
  845. --End Dr Mundo Functions
  846.  
  847. --Graves Functions
  848. function GravesQ()
  849.     if ValidTarget(target) and CanCastSpell("Q") then
  850.         CastSpellXYZ('Q',GetFireahead(target,2,20))
  851.     end
  852. end
  853.  
  854. function GravesW()
  855.     if CanCastSpell("W") then
  856.         CastSpellXYZ("W",GetFireahead(target,2,20))
  857.     end
  858. end
  859.  
  860. function GravesR()
  861.     if CanCastSpell("R") then
  862.         CastSpellXYZ('R',GetFireahead(target,2,20))
  863.     end
  864. end
  865.  
  866. function GravesDraw()
  867.     CustomCircle(900,2,3,myHero)
  868. end
  869. --End Graves Functions
  870.  
  871. --Kayle Functions
  872. function HP()
  873. local percent = ((myHero.health / myHero.maxHealth)*100)
  874. local healMe = healPlease
  875.     if IsSpellReady("W") and percent <= healMe then CastSpellTarget("W",myHero) end
  876. end
  877.  
  878. function Ultibot()
  879.     CLOCK=os.clock()
  880.     local key=112;
  881.     local UltiMe = ultiPlease
  882.     local percent = ((myHero.health / myHero.maxHealth)*100)
  883.    
  884.     if CLOCK-toggle_timer>0.2 then
  885.         toggle_timer=CLOCK
  886.         script_loaded= ((script_loaded+1)%2)
  887.     end
  888.         if (script_loaded==1) then
  889.             if (CLOCK-toggle_timer<1) then
  890.                 --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
  891.             end
  892.         else
  893.            -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
  894.             return
  895.         end
  896.         if CanUseSpell("R") and percent <= UltiMe then
  897.             CastSpellTarget("R",myHero)
  898.         end
  899. end
  900. --End Kayle Functions
  901.  
  902. --Rengar Functions
  903. function RengarE()
  904.     if CanCastSpell("E") then
  905.         CastSpellTarget('E',target)
  906.     end
  907. end
  908.  
  909. function RengarW()
  910.     if CanCastSpell("W")then
  911.         CastSpellTarget("W",target)
  912.     end
  913. end
  914.  
  915. function RengarQ()
  916.     if CanCastSpell("Q")then
  917.         CastSpellTarget("Q",target)
  918.     end
  919. end
  920.  
  921. function RengarR()
  922.     if CanCastSpell("R")then
  923.         CastSpellTarget("R",myHero)
  924.     end
  925. end
  926.  
  927. function RengarDraw()
  928.     CustomCircle(780,4,3,myHero)
  929. end
  930. --End Rengar Functions
  931.  
  932. --Shen Functions
  933. function ShenE()
  934.     if CanCastSpell("E") then
  935.         CastSpellXYZ('E',GetFireahead(target,2,14))
  936.     end
  937. end
  938. function SaveThemAll()
  939.     for i = 1, objManager:GetMaxHeroes() do
  940.         local ally = objManager:GetHero(i)
  941.         local percent2 = ((ally.health / ally.maxHealth)*100)
  942.     CLOCK=os.clock()
  943.     local key=112;
  944.     local savethemall = saveMeee
  945.    
  946.     if CLOCK-toggle_timer>0.2 then
  947.         toggle_timer=CLOCK
  948.         script_loaded= ((script_loaded+1)%2)
  949.     end
  950.         if (script_loaded==1) then
  951.             if (CLOCK-toggle_timer<1) then
  952.                 --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
  953.             end
  954.         else
  955.            -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
  956.             return
  957.         end
  958.         if CanUseSpell("R") and percent2 <= savethemall and ally.team == myHero.team then
  959.             CastSpellTarget("R",ally)
  960.         end
  961.                
  962.     end
  963. end
  964. --End Shen Functions
  965. --Tristana Functions
  966. function TristW()
  967.     if CanCastSpell("W") then
  968.         CastSpellXYZ('W',GetFireahead(target,2,12))
  969.     end
  970. end
  971. function TristE()
  972.     if CanCastSpell("E") then
  973.         CastSpellTarget("E",target)
  974.     end
  975. end
  976.  
  977. function TristR()
  978.     if CanCastSpell("R") then
  979.         CastSpellTarget("R",target)
  980.     end
  981. end
  982.  
  983. function TristDraw()
  984.     CustomCircle(800,2,3,myHero)
  985. end
  986. --End Tristana Functions
  987.  
  988. --Volibear Functions
  989. function VoliE()
  990.     if CanCastSpell("E") then
  991.         CastSpellXYZ('E',GetFireahead(target,2,20))
  992.     end
  993. end
  994.  
  995. function VoliQ()
  996.     if CanCastSpell("Q") then
  997.         CastSpellTarget("Q",target)
  998.     end
  999. end
  1000.  
  1001. function VoliW()
  1002.     if CanCastSpell("W")then
  1003.         CastSpellTarget("W",target)
  1004.     end
  1005. end
  1006.  
  1007. function VoliR()
  1008.     if CanCastSpell("R")then
  1009.         CastSpellTarget("R",myHero)
  1010.     end
  1011. end
  1012.  
  1013. function VoliDraw()
  1014.     CustomCircle(425,2,3,myHero)
  1015. end
  1016. --End Volibear Functions
  1017.  
  1018. --Xerath Functions
  1019. function XerathQ()
  1020.     if ValidTarget(target) and CanCastSpell("Q") then
  1021.         CastSpellXYZ('Q',GetFireahead(target,1,25))
  1022.     end
  1023. end
  1024.  
  1025. function XerathE()
  1026.     if ValidTarget(target) and CanCastSpell("E") then
  1027.         CastSpellTarget("E",target)
  1028.     end
  1029. end
  1030.  
  1031. function XerathR()
  1032.     if ValidTarget(target) and IsSpellReady("R") == 1 then CastSpellXYZ('R',GetFireahead(target,1,20))
  1033.     end
  1034. end
  1035.  
  1036. function XerathDraw()
  1037.     CustomCircle(600,2,3,myHero)
  1038.     CustomCircle(1000,3,3,myHero)
  1039.     CustomCircle(1300,4,3,myHero)
  1040. end
  1041. --End Xerath Functions
  1042.  
  1043. --Brand Functions
  1044. function BrandQ(target)
  1045.     if target ~= nil and GetDistance(myHero, target) < 900 and targetbuff == 1 then
  1046.         CastSpellXYZ('Q',GetFireahead(target,2,16))
  1047.             targetbuff = 0
  1048.     end
  1049. end
  1050.  
  1051. function BrandW(target)
  1052.     if IsSpellReady("W") and target ~= nil and GetDistance(myHero, target) < 900 then
  1053.         CastSpellXYZ('W',GetFireahead(target,3,96))
  1054.     end
  1055. end
  1056.  
  1057. function BrandE(target)
  1058.     if IsSpellReady("E") and target ~= nil and GetDistance(myHero, target) < 625 then
  1059.         CastSpellTarget("E",target)
  1060.     end
  1061. end
  1062.  
  1063. function BrandR(target)
  1064.     if IsSpellReady("R") and target ~= nil and GetDistance(myHero, target) < 750 then
  1065.         CastSpellTarget("R",target)                
  1066.     end
  1067. end
  1068.  
  1069. function BrandDraw()
  1070.     if myHero.dead == 0 then
  1071.         CustomCircle(600,2,3,myHero)
  1072.             if target ~= nil then
  1073.             CustomCircle(100, 5, 2, target)
  1074.         end
  1075.     end
  1076. end
  1077. --End Brand Functions
  1078.  
  1079. --Panth Functions
  1080. function PanthE()
  1081.         target = GetWeakEnemy("PHYS", 600, "NEARMOUSE")
  1082.         if target ~= nil then
  1083.             AttackTarget(target)
  1084.                 if CanCastSpell("E") then CastSpellXYZ('E',GetFireahead(target,2,20))
  1085.                 etimer = GetTickCount() + 825
  1086.                 end
  1087.         end
  1088. end
  1089.  
  1090. function PanthW()
  1091.     if CanCastSpell("W") then
  1092.         CastSpellTarget("W",target)
  1093.     end
  1094. end
  1095.  
  1096. function PanthQ()
  1097.     if CanCastSpell("Q") then
  1098.         CastSpellTarget("Q",target)
  1099.     end
  1100. end
  1101.  
  1102. function PanthDraw()
  1103.     CustomCircle(600,2,3,myHero)
  1104. end
  1105.  
  1106. --End Panth Functions
  1107.  
  1108. --Talon Functions
  1109.  
  1110. function TalonQ(target)
  1111.         if target ~= nil and IsSpellReady("Q") then  
  1112.                 CastSpellTarget("Q",myHero)  
  1113.         end
  1114. end
  1115.  
  1116. function TalonW(target)
  1117.         if IsSpellReady("W") == 1 then
  1118.                 CastSpellTarget("W",target)
  1119.         end
  1120. end
  1121.  
  1122. function TalonE(target)
  1123.         if target ~= nil and GetDistance(myHero, target) < 700 then
  1124.                 CastSpellTarget('E',target)
  1125.         end
  1126. end
  1127.  
  1128. function TalonR(target)
  1129.         if IsSpellReady("R") == 1 then
  1130.                 CastSpellTarget("R",myHero)                                    
  1131.         end
  1132. end
  1133.  
  1134. function TalonDraw()
  1135.         CustomCircle(600,2,3,myHero)
  1136. end  
  1137.  
  1138. --End Talon Functions
  1139.  
  1140. --Yorick Functions
  1141. function YorickW()
  1142.     if CanCastSpell("W") then
  1143.         CastSpellXYZ('W',GetFireahead(target,5,0))
  1144.     end
  1145. end
  1146. function YouShallLive()
  1147.     for i = 1, objManager:GetMaxHeroes() do
  1148.         local ally = objManager:GetHero(i)
  1149.         local percent3 = ((ally.health / ally.maxHealth)*100)
  1150.         local myhp = ((myHero.health / myHero.maxHealth)*100)
  1151.         local key=112;
  1152.         CLOCK=os.clock()
  1153.         local ghoulthemall = ghoulmeh
  1154.        
  1155.    
  1156.     if CLOCK-toggle_timer>0.2 then
  1157.         toggle_timer=CLOCK
  1158.         script_loaded= ((script_loaded+1)%2)
  1159.     end
  1160.         if (script_loaded==1) then
  1161.             if (CLOCK-toggle_timer<1) then
  1162.                 --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
  1163.             end
  1164.         else
  1165.            -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
  1166.             return
  1167.         end
  1168.         if CanUseSpell("R") and percent3 <= ghoulthemall and ally.team == myHero.team and GetDistance(myHero, ally) <= 900 then
  1169.             CastSpellTarget("R",ally)
  1170.         end
  1171.         if CanUseSpell("R") and myhp <= ghoulthemall then
  1172.             CastSpellXYZ("R",myHero.x,myHero.y,myHero.z)
  1173.         end
  1174.                
  1175.     end
  1176. end
  1177. --End Yorick Functions
  1178.  
  1179. --Utility Functions
  1180. function OnProcessSpell(obj,spell)
  1181.     if obj ~= nil and obj.name == myHero.name then
  1182.         if string.find(spell.name,"dr_mundo_burning_agony") then
  1183.             MundoWToggled = true
  1184.         end
  1185.     end
  1186. end
  1187.  
  1188. function OnCreateObj(obj)
  1189.     if target ~= nil then
  1190.         if obj ~= nil then
  1191.             if string.find(obj.charName,'BrandFireMark') ~= nil then
  1192.                 targetbuff = 1
  1193.             end
  1194.             if string.find(obj.charName,'Diana_Q_moonlight') ~= nil then
  1195.                 Moonlight = 1
  1196.             end
  1197.         end
  1198.     end
  1199. end
  1200.  
  1201. function DrawSphere(radius,thickness,color,x,y,z)
  1202.     for j=1, thickness do
  1203.         local ycircle = (j*(radius/thickness*2)-radius)
  1204.         local r = math.sqrt(radius^2-ycircle^2)
  1205.         ycircle = ycircle/1.3
  1206.         DrawCircle(x,y+ycircle,z,r,color)
  1207.     end
  1208. end
  1209.  
  1210. function redElixir()
  1211.     if AIOConfig.Elixir then
  1212.     UseItemOnTarget(2037, myHero)
  1213. end
  1214. end
  1215.  
  1216. function GetTick()
  1217.     return GetClock()
  1218. end
  1219.  
  1220. function usePotion()
  1221.     GetInventorySlot(2003)
  1222.     UseItemOnTarget(2003,iHero)
  1223. end
  1224.  
  1225. function useFlask()
  1226.     GetInventorySlot(2041)
  1227.     UseItemOnTarget(2041,iHero)
  1228. end
  1229.  
  1230. function useBiscuit()
  1231.     GetInventorySlot(2009)
  1232.     UseItemOnTarget(2009,iHero)
  1233. end
  1234.  
  1235. function potion() --Thank you kyuuketsuuki for this, you're an amazing scripter.
  1236.     if AIOConfig.Potion and bluePill == nil then
  1237.         if iHero.health < iHero.maxHealth * AIOConfig.PotionValue and AIOConfig.HpPotion and GetClock() > waUsedAt + 15000 then
  1238.             usePotion()
  1239.             waUsedAt = GetTick()
  1240.         elseif iHero.health < iHero.maxHealth * AIOConfig.FlaskValue and AIOConfig.Flask and GetClock() > vUsedAt + 10000 then
  1241.             useFlask()
  1242.             vUsedAt = GetTick()
  1243.         elseif iHero.health < iHero.maxHealth * AIOConfig.BiscuitValue and AIOConfig.Biscuit then
  1244.             useBiscuit()
  1245.         end
  1246.     end
  1247.     if (os.clock() < timer + 5000) then
  1248.         bluePill = nil
  1249.     end
  1250. end
  1251.  
  1252. function UtilityFunction()
  1253.     redElixir()
  1254.     UseAllItems(target)
  1255. end
  1256.  
  1257.  
  1258. function Killsteals()
  1259.     if myHero.name == "Akali" and AIOConfig.KSteal then
  1260.     CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*75)+25+((player_ap*5)/10))")
  1261.     end
  1262.     if myHero.name == "Brand" and AIOConfig.KSteal then
  1263.     CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*35)+35+((player_ap*55)/100))")
  1264.     end
  1265.     if myHero.name == "Diana" and AIOConfig.KSteal then
  1266.     CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*60)+40+((player_ap*6)/10))")
  1267.     end
  1268.     if myHero.name == "Dr Mundo" and AIOConfig.KSteal then
  1269.     CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=#(((spellq_level*50)+30)>((target_hp*((spellq_level*3)/100))+((target_hp*12)/100))")
  1270.     end
  1271.     if myHero.name == "Gragas" and AIOConfig.KSteal then
  1272.     CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*40)+40+((player_ap*5)/10)+((player_ad*66/100))")
  1273.     end
  1274.     if myHero.name == "Graves" and AIOConfig.KSteal then
  1275.     CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*35)+25+((player_ad*8)/10))")
  1276.     end
  1277.     if myHero.name == "Kayle" and AIOConfig.KSteal then
  1278.     CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*50)+10+player_ap+player_bonusad)")
  1279.     end
  1280.     if myHero.name == "Leblanc" and AIOConfig.KSteal then
  1281.     CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+30+((player_ap*60)/100))")
  1282.     end
  1283.     if myHero.name == "Pantheon" and AIOConfig.KSteal then
  1284.     CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+25+((player_bonusad*14)/10))")
  1285.     end
  1286.     if myHero.name == "Rengar" and AIOConfig.KSteal then
  1287.     CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*45)+10+((player_bonusad*7)/10))")
  1288.     end
  1289.     if myHero.name == "Talon" and AIOConfig.KSteal then
  1290.     CastHotkey("SPELLW:WEAKENEMY ONESPELLHIT=((spellw_level*50)+10+((player_bonusad*12)/10))")
  1291.     end
  1292.     if myHero.name == "Tristana" and AIOConfig.KSteal then
  1293.     CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*100)+200+((player_ap*15)/10))")
  1294.     end
  1295.     if myHero.name == "Volibear" and AIOConfig.KSteal then
  1296.     CastHotkey("SPELLW:WEAKENEMY COOLDOWN RANGE=400 ONESPELLHIT=#((35+45*spellw_level+(player_hpmax-440-(1548*player_level/18))*15/100)*(2-target_hp/target_hpmax)) PHYSICAL LEASTHP")
  1297.     end
  1298.     if myHero.name == "Xerath" and AIOConfig.KSteal then
  1299.     CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+35+((player_ap*6)/10))")
  1300.     end
  1301. end
  1302.  
  1303. AIOConfig = scriptConfig("AIO Collective", "AIOConfig")
  1304. if myHero.name == "Akali" then
  1305.     AIOConfig:addParam("AkaliCombo", "Akali Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1306. end
  1307. if myHero.name == "Brand" then
  1308.     AIOConfig:addParam("BrandCombo", "Brand Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1309.     AIOConfig:addParam("BrandHarass", "Brand Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1310. end
  1311. if myHero.name == "Diana" then
  1312.     AIOConfig:addParam("DianaCombo", "Diana Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1313.     AIOConfig:addParam("DianaHarass", "Diana Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1314. end
  1315. if myHero.name == "Dr Mundo" then
  1316.     AIOConfig:addParam("MundoCombo", "Mundo Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1317. end
  1318. if myHero.name == "Gragas" then
  1319.     AIOConfig:addParam("GragasCombo", "Gragas Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1320.     AIOConfig:addParam("GragasHarass", "Gragas Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1321. end
  1322. if myHero.name == "Graves" then
  1323.     AIOConfig:addParam("GravesCombo", "Graves Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1324.     AIOConfig:addParam("GravesHarass", "Graves Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1325. end
  1326. if myHero.name == "Kayle" then
  1327.     AIOConfig:addParam("KayleCombo", "Kayle Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1328. end
  1329. if myHero.name == "Leblanc" then
  1330.     AIOConfig:addParam("LeBlancCombo", "LeBlanc Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1331.     AIOConfig:addParam("LeBlancHarass", "LeBlanc Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1332. end
  1333. if myHero.name == "Pantheon" then
  1334.     AIOConfig:addParam("PantheonCombo", "Pantheon Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1335. end
  1336. if myHero.name == "Rengar" then
  1337.     AIOConfig:addParam("RengarCombo", "Rengar Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1338.     AIOConfig:addParam("RengarHarass", "Rengar Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1339. end
  1340. if myHero.name == "Shen" then
  1341.     AIOConfig:addParam("ShenCombo", "Shen Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1342. end
  1343. if myHero.name == "Talon" then
  1344.     AIOConfig:addParam("TalonCombo", "Talon Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1345.     AIOConfig:addParam("TalonHarass", "Talon Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1346. end
  1347. if myHero.name == "Tristana" then
  1348.     AIOConfig:addParam("TristanaCombo", "Tristana Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1349.     AIOConfig:addParam("TristanaHarass", "Tristana Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1350. end
  1351. if myHero.name == "Volibear" then
  1352.     AIOConfig:addParam("VolibearCombo", "Volibear Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1353.     AIOConfig:addParam("VolibearHarass", "Volibear Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1354. end
  1355. if myHero.name == "Xerath" then
  1356.     AIOConfig:addParam("XerathCombo", "Xerath Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1357.     AIOConfig:addParam("XerathHarass", "Xerath Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
  1358. end
  1359. if myHero.name == "Yorick" then
  1360.     AIOConfig:addParam("YorickCombo", "Yorick Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  1361. end
  1362. AIOConfig:addParam("KSteal", "Killsteal", SCRIPT_PARAM_ONOFF, true)
  1363. AIOConfig:addParam("Elixir", "Auto Red Elixir", SCRIPT_PARAM_ONOFF, true)
  1364. AIOConfig:addParam("Potion", "Script Toggle", SCRIPT_PARAM_ONKEYTOGGLE, true, 117)
  1365. AIOConfig:addParam("HpPotion", "Potion Toggle", SCRIPT_PARAM_ONOFF, true)
  1366. AIOConfig:addParam("Flask", "Flask Toggle", SCRIPT_PARAM_ONOFF, true)
  1367. AIOConfig:addParam("Biscuit", "Biscuit Toggle", SCRIPT_PARAM_ONOFF, true)
  1368. AIOConfig:addParam("PotionValue", "Potion Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.75, 103, 0, 1, .1)
  1369. AIOConfig:addParam("FlaskValue", "Flask Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.74, 100, 0, 1, .1)
  1370. AIOConfig:addParam("BiscuitValue", "Biscuit Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.60, 97, 0, 1, .1)
  1371. AIOConfig:addParam("ElixirValue", "Elixir Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.30, 96, 0, 1, .1)
  1372.  
  1373. SetTimerCallback("OnTick")
  1374. SetTimerCallback("potion")
Advertisement
Add Comment
Please, Sign In to add comment