Advertisement
TeamOneButton

OneButtonAllInOne

Apr 19th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.01 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. --Talon
  23. --Tristana
  24. --Volibear
  25. --Xerath
  26.  
  27. --Config Settings
  28.  
  29. --Mundo
  30. local MundoTooLow = 15
  31. -- tooLow is the point at which it will stop casting spells
  32. local MundoUltHP = 30
  33. --MundoUltHP is the percent of hp that it will cast it's ULT
  34. local MundoWToggled = false
  35.  
  36. --Kayle
  37. local healPlease = 80
  38. --% HP that Kayle will Auto heal herself
  39. local ultiPlease = 20
  40. --% HP that Kayle will auto Ult herself
  41.  
  42.                                                                                            
  43. require "Utils"
  44.  
  45. printtext("\nTeam OneButton's AllInOne Script\n")
  46.  
  47. local hotkey = GetScriptKey()  
  48. local myHero = GetSelf()   
  49. local target  
  50. local doAttack = false  
  51. local key1
  52. local toggle_timer=os.clock()
  53. local script_loaded=0
  54.  
  55. if myHero.name == "Akali" then
  56.     function OnTick()
  57.     AkaliDraw()
  58.     DrawText("Team OneButton's Akali", 105, 25, Color.Green)
  59.     local key = IsKeyDown(hotkey)                      
  60.     target = GetWeakEnemy('MAGIC',800,"NEARMOUSE")
  61.         if key == 1 then                                   
  62.             if target ~= nil then  
  63.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  64.                 CustomCircle(100,5,2,target)
  65.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  66.                 UseAllItems(target)
  67.                 CastSummonerIgnite(target)
  68.                 CastSummonerExhaust(target)
  69.                     if GetDistance(myHero, target) < 600 then  
  70.                         AkaliQ(target)
  71.                     end    
  72.                     if GetDistance(myHero, target) < 800 then  
  73.                         AkaliR(target)
  74.                     end
  75.                     if GetDistance(myHero, target) < 325 then  
  76.                         AkaliE(target)
  77.                     end
  78.                 AttackTarget(target)
  79.             end
  80.             if target == nil or not doAttack then
  81.                 MoveToMouse()
  82.             end
  83.         end    
  84.     end
  85. end
  86.  
  87. if myHero.name == "Brand" then
  88.     local targetbuff = 0
  89.     function OnTick()
  90.         BrandDraw()
  91.         DrawText("Team OneButton's Brand", 105, 25, Color.Green)   
  92.         local key = IsKeyDown(hotkey)                      
  93.         target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
  94.         if key == 1 then                                   
  95.             if target ~= nil then  
  96.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  97.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  98.                 UseAllItems(target)
  99.                 CastSummonerIgnite(target)
  100.                 CastSummonerExhaust(target)
  101.                 BrandE(target)
  102.                 BrandW(target)
  103.                 BrandQ(target)
  104.                 BrandR(target)
  105.                 AttackTarget(target)
  106.             end
  107.             if target == nil or not doAttack then
  108.                 MoveToMouse()
  109.             end
  110.         end
  111.     end
  112. end
  113.  
  114. if myHero.name == "Diana" then
  115.     function OnTick()
  116.     local Moonlight = 0
  117.     DianaDraw()
  118.     DrawText("xXGeminiXx's OneButton Diana", 105, 25, Color.Green)
  119.     local key = IsKeyDown(hotkey)
  120.     target = GetWeakEnemy('MAGIC',830,"NEARMOUSE")  
  121.         if key == 1 then               
  122.             if target ~= nil then
  123.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  124.                 CustomCircle(100,5,2,target)
  125.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  126.                 UseAllItems(target)
  127.                 CastSummonerIgnite(target)
  128.                 CastSummonerExhaust(target)
  129.                 DianaQ(target)
  130.                 DianaW(target)
  131.                 DianaE(target)
  132.                 DianaR(target)
  133.                 AttackTarget(target)
  134.             end
  135.             if target == nil or not doAttack then
  136.                 MoveToMouse()
  137.             end
  138.         end
  139.     end
  140. end
  141.  
  142. if myHero.name == "DrMundo" then
  143.     function OnTick()
  144.     local percent = ((myHero.health / myHero.maxHealth)*100)
  145.     MundoDraw()
  146.     DrawText("Team OneButton's Mundo", 105, 25, Color.Green)
  147.     --DrawText("HP" .. percent, 105, 50, Color.Red)
  148.     local key = IsKeyDown(hotkey)                      
  149.     target = GetWeakEnemy('MAGIC',1000,"NEARMOUSE")
  150.         if key == 1 then               
  151.             if target ~= nil then  
  152.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  153.                 CustomCircle(100,5,2,target)
  154.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  155.                 AttackTarget(target)
  156.                 UseAllItems(target)
  157.                 CastSummonerIgnite(target)
  158.                 CastSummonerExhaust(target)
  159.                     if percent >= MundoTooLow then
  160.                         MundoQ(target)
  161.                         MundoW(target)
  162.                         MundoE(target)
  163.                         else
  164.                         DrawText("HP BELOW " .. MundoTooLow .. "%", 165, 80, Color.Red)
  165.                         end
  166.             else
  167.                 MundoWToggled = false
  168.             end
  169.             MoveToMouse()
  170.         end
  171.         if percent <= MundoUltHP then
  172.             MundoR(target)
  173.         end
  174.     end
  175. end
  176.  
  177. if myHero.name == "Graves" then
  178.     function OnTick()
  179.     DrawText("Boom headshot!", 105, 25, Color.Green)
  180.     local key = IsKeyDown(hotkey)      
  181.     GravesDraw()   
  182.     target = GetWeakEnemy('PHYS',900,"NEARMOUSE")
  183.         if key == 1 then                                   
  184.             if target ~= nil then
  185.                 if target == nil or not doAttack then
  186.                     MoveToMouse()          
  187.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  188.                     UseAllItems(target)
  189.                     CastSummonerIgnite(target)
  190.                     CastSummonerExhaust(target)
  191.                 end
  192.                 if GetDistance(myHero, target) < 900 then  
  193.                     GravesQ()
  194.                 end
  195.                 if GetDistance(myHero, target) < 900 then  
  196.                     GravesW()
  197.                 end                    
  198.                 if GetDistance(myHero, target) < 900 then  
  199.                     GravesR()
  200.                 end
  201.                 if ValidTarget(target) then
  202.                 AttackTarget(target)
  203.                 end
  204.             end
  205.         end
  206.     end
  207. end
  208.  
  209. if myHero.name == "Kayle" then
  210.     function OnTick()
  211.     local script_loaded=1
  212.     key1 = IsKeyDown(hotkey)
  213.     target = GetWeakEnemy('MAGIC',650)
  214.     HP()
  215.     Ultibot()
  216.     DrawCircleObject(myHero, 650, 0x02)
  217.     DrawText("Kaylebot v0.2 Loaded",5,40,0xFF00EE00);
  218.     DrawText("AutoUlt v0.2 Activated",5,80,0xFF00EE00);
  219.         if key1 ~= 0 then
  220.             UseAllItems(target)
  221.             if target ~= nil then
  222.                 DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
  223.                 CustomCircle(100,5,2,target)
  224.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  225.                 CastSummonerIgnite(target)
  226.                 CastSummonerExhaust(target)
  227.                     if GetDistance(myHero, target) < 650 then
  228.                         CastSpellTarget("Q",target)
  229.                     end
  230.                     if GetDistance(myHero, target) < 650 then
  231.                         CastSpellTarget("E", myHero)
  232.                     end
  233.                 AttackTarget(target)
  234.             else
  235.                 MoveToMouse()
  236.             end
  237.         end
  238.     end
  239. end
  240.  
  241. if myHero.name == "Pantheon" then
  242.     function OnTick()
  243.     local etimer = 0
  244.     DrawText("THIS.. IS.. SPARTA!!", 105, 25, Color.Green)
  245.     PanthDraw()
  246.     local key = IsKeyDown(hotkey)
  247.     target = GetWeakEnemy('PHYS',600)
  248.         if key == 1 then
  249.             if target ~= nil then      
  250.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  251.                     UseAllItems(target)
  252.                     CastSummonerIgnite(target)
  253.                     CastSummonerExhaust(target)
  254.                         if GetDistance(myHero, target) < 600 then  
  255.                             PanthW()
  256.                         end
  257.                         if GetTickCount() > etimer then
  258.                         if GetDistance(myHero, target) < 600 then  
  259.                             PanthQ()
  260.                         end    
  261.                         if GetDistance(myHero, target) < 600 then  
  262.                             PanthE()
  263.                         end
  264.                         end
  265.                 end
  266.                 if target == nil or not doAttack then
  267.                 if GetTickCount() > etimer then
  268.                     MoveToMouse()
  269.                 end
  270.             end
  271.         end    
  272.     end
  273. end
  274.  
  275. if myHero.name == "Rengar" then
  276.     function OnTick()
  277.     RengarDraw()
  278.     DrawText("Leap Frog", 105, 25, Color.Green)
  279.     local key = IsKeyDown(hotkey)                      
  280.     target = GetWeakEnemy('PHYS',575,"NEARMOUSE")
  281.         if key == 1 then    
  282.             if target ~= nil then  
  283.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  284.                 UseAllItems(target)
  285.                 CastSummonerIgnite(target)
  286.                 CastSummonerExhaust(target)
  287.                     if GetDistance(myHero, target) < 300 then
  288.                         RengarQ()
  289.                     end
  290.                     if GetDistance(myHero, target) < 575 then
  291.                         RengarE()
  292.                     end
  293.                     if GetDistance(myHero, target) < 500 then
  294.                         RengarW()
  295.                     end
  296.                 AttackTarget(target)
  297.                 if target == nil or not doAttack then
  298.                     MoveToMouse()  
  299.                 end
  300.             end
  301.         end        
  302.     end
  303. end
  304.  
  305. if myHero.name == "Talon" then
  306.     function OnTick()
  307.     TalonDraw()
  308.     DrawText("Do the Chickens have large Talons?", 105, 25, Color.Green)
  309.     local key = IsKeyDown(hotkey)
  310.     target = GetWeakEnemy('PHYS',700,"NEARMOUSE")  
  311.             if key == 1 then  
  312.                 if target ~= nil then
  313.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  314.                 CustomCircle(100,5,2,target)
  315.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  316.                 UseAllItems(target)
  317.                 if GetDistance(myHero, target) < 700 then
  318.                     TalonE(target)
  319.                 end    
  320.                 TalonQ(target)
  321.                 AttackTarget(target)                                  
  322.                 if GetDistance(myHero, target) < 595 then      
  323.                     TalonW(target)
  324.                 end    
  325.                 TalonR(target)
  326.                 CastSummonerExhaust(target)
  327.                 CastSummonerIgnite(target)
  328.                 AttackTarget(target)
  329.             end
  330.             if target == nil or not doAttack then
  331.                 MoveToMouse()
  332.             end
  333.         end
  334.     end
  335. end
  336.  
  337. if myHero.name == "Tristana" then
  338.     function OnTick()
  339.     TristDraw()
  340.     DrawText("Wanna see the fireworks?", 105, 25, Color.Green)
  341.     local key = IsKeyDown(hotkey)                      
  342.     target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
  343.         if key == 1 then                                   
  344.             if target ~= nil then  
  345.             DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  346.             UseAllItems(target)
  347.             if GetDistance(myHero, target) < 900 then  
  348.                 TristW()
  349.             end
  350.             CastSummonerIgnite(target)     
  351.             CastSummonerExhaust(target)
  352.             if GetDistance(myHero, target) < 900 then  
  353.                 TristE()
  354.             end                    
  355.             if GetDistance(myHero, target) < 900 then  
  356.                 TristR()
  357.             end    
  358.         AttackTarget(target)
  359.         end
  360.             if target == nil or not doAttack then
  361.                 MoveToMouse()
  362.             end
  363.         end    
  364.     end
  365. end
  366.  
  367. if myHero.name == "Volibear" then
  368.     function OnTick()
  369.     VoliDraw()
  370.     DrawText("Rolling Thunder", 105, 25, Color.Green)
  371.     local key = IsKeyDown(hotkey)                      
  372.     target = GetWeakEnemy('PHYS',1500,"NEARMOUSE")
  373.         if key == 1 then                                   
  374.             if target ~= nil then  
  375.                 DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  376.                 UseAllItems(target)
  377.                 CastSummonerIgnite(target)
  378.                 CastSummonerExhaust(target)
  379.                     if GetDistance(myHero, target) < 1500 then
  380.                         VoliQ()
  381.                     end
  382.                     if GetDistance(myHero, target) < 900 then
  383.                         VoliR()
  384.                     end
  385.                     if GetDistance(myHero, target) < 425 then
  386.                         VoliE()
  387.                     end
  388.                     if GetDistance(myHero, target) < 400 then
  389.                         VoliW()
  390.                     end
  391.                 AttackTarget(target)
  392.             end
  393.             if target == nil or not doAttack then
  394.                 MoveToMouse()
  395.             end
  396.         end            
  397.     end
  398. end
  399.  
  400. if myHero.name == "Xerath" then
  401.     function OnTick()
  402.     XerathDraw()
  403.     DrawText("I AM the arcane!", 105, 25, Color.Green)
  404.     local key = IsKeyDown(hotkey)                      
  405.     target = GetWeakEnemy('MAGIC',1300,"NEARMOUSE")
  406.         if key == 1 then
  407.             if target == nil or not doAttack then
  408.                     MoveToMouse()      
  409.                 if target ~= nil then  
  410.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  411.                     UseAllItems(target)
  412.                     CastSummonerIgnite(target)
  413.                     CastSummonerExhaust(target)
  414.                 end
  415.                 if GetDistance(myHero, target) < 1300 then  
  416.                     XerathE()
  417.                 end
  418.                 if GetDistance(myHero, target) < 1000 then  
  419.                     XerathQ()
  420.                 end                    
  421.                 if GetDistance(myHero, target) < 1300 then 
  422.                     XerathR()
  423.                 end
  424.                 if ValidTarget(target) then
  425.                     AttackTarget(target)
  426.                 end
  427.             end
  428.         end        
  429.     end
  430. end
  431.  
  432. --Dianas Functions
  433.  
  434. function DianaQ(target)
  435.         if target ~= nil and GetDistance(myHero, target) < 825 then  
  436.                 CastSpellXYZ('Q',GetFireahead(target,2,18))
  437.                         targetbuff = 1
  438.         end
  439. end
  440.  
  441. function DianaW(target)
  442.         if IsSpellReady("W") == 1 and GetDistance(myHero, target) < 200 then
  443.                 CastSpellTarget("W",myHero)
  444.         end
  445. end
  446.  
  447. function DianaE(target)
  448.         if IsSpellReady("E") and GetDistance(myHero, target) < 249 then
  449.                 CastSpellTarget("E",myHero)
  450.         end
  451. end
  452.  
  453. function DianaR(target)
  454.         if IsSpellReady("R") == 1 and GetDistance(myHero, target) < 825 and Moonlight == 1 then
  455.                 CastSpellTarget("R",target)                                    
  456.         end
  457. end
  458.  
  459. function DianaDraw()
  460.         DrawCircle(myHero.x, myHero.y, myHero.z, 700, 0x02)  
  461. end  
  462.  
  463. --End of Diana functions
  464.  
  465. --Akalis Functions
  466. function AkaliQ(target)
  467.     if IsSpellReady("Q") == 1 then
  468.         CastSpellTarget("Q",target)
  469.         lastQ = GetTickCount()
  470.     end
  471. end
  472.  
  473. function AkaliW(target)
  474. --not used currently
  475.     if IsSpellReady("W") == 1 then
  476.         CastSpellTarget("W",target)
  477.     end
  478. end
  479.  
  480. function AkaliE(target)
  481.     if IsSpellReady("E") == 1 then
  482.         if IsSpellReady("Q") == 0 then
  483.             CastSpellTarget("E",target)
  484.         end
  485.     end
  486. end
  487.  
  488. function AkaliR(target)
  489.     if IsSpellReady("R") == 1 then
  490.         CastSpellTarget("R",target)                
  491.     end
  492. end
  493.  
  494. function AkaliDraw()
  495.     DrawCircle(myHero.x, myHero.y, myHero.z, 800, 0x02)
  496. end
  497. --End Akali Functions
  498.  
  499. --Dr Mundo Functions
  500. function MundoQ(target)
  501. --Shortened Q distance a tad to ensure hit due to projectile speed+movespeed
  502.     if target ~= nil and GetDistance(myHero, target) < 990 and CreepBlock(myHero.x,myHero.y,myHero.z,GetFireahead(target,2,20)) == 0 then
  503.         CastSpellXYZ('Q',GetFireahead(target,2,20))
  504.     end
  505. end
  506.  
  507. function MundoW(target)
  508. --Cast W on self if it's ready, it's not toggled, and they're close enough to burn
  509.     if IsSpellReady("W") == 1 and MundoWToggled == false and GetDistance(myHero, target) < 325 then
  510.         CastSpellTarget("W",myHero)
  511.         MundoWToggled = true
  512.     end
  513. --Cast W on self (to toggle off) if the spell is ready, it's on, and they're not close enough to burn.
  514.     if IsSpellReady("W") == 1 and MundoWToggled == true and GetDistance(myHero, target) > 400 then
  515.         CastSpellTarget("W",myHero)
  516.         MundoWToggled = false
  517.     end
  518. end
  519.  
  520. function MundoE(target)
  521.     if IsSpellReady("E") == 1 and GetDistance(myHero, target) > 325 then
  522.         CastSpellTarget("E",myHero)
  523.     end
  524. end
  525.  
  526. function MundoR(target)
  527.     if IsSpellReady("R") == 1 then
  528.         CastSpellTarget("R",myHero)                
  529.     end
  530. end
  531.  
  532. function MundoDraw()
  533.     DrawCircle(myHero.x, myHero.y, myHero.z, 1000, 0x02)
  534. end
  535. --End Dr Mundo Functions
  536.  
  537. --Graves Functions
  538. function GravesQ()
  539.     if ValidTarget(target) and CanCastSpell("Q") then
  540.         CastSpellXYZ('Q',GetFireahead(target,2,20))
  541.     end
  542. end
  543.  
  544. function GravesW()
  545.     if CanCastSpell("W") then
  546.         CastSpellXYZ("W",GetFireahead(target,2,20))
  547.     end
  548. end
  549.  
  550. function GravesR()
  551.     if CanCastSpell("R") then
  552.         CastSpellXYZ('R',GetFireahead(target,2,20))
  553.     end
  554. end
  555.  
  556. function GravesDraw()
  557.     DrawCircle(myHero.x, myHero.y, myHero.z, 900, 0x02)
  558. end
  559. --End Graves Functions
  560.  
  561. --Kayle Functions
  562. function HP()
  563. local percent = ((myHero.health / myHero.maxHealth)*100)
  564. local healMe = healPlease
  565.     if IsSpellReady("W") and percent <= healMe then CastSpellTarget("W",myHero) end
  566. end
  567.  
  568. function Ultibot()
  569.     CLOCK=os.clock()
  570.     local key=112;
  571.     local UltiMe = ultiPlease
  572.     local percent = ((myHero.health / myHero.maxHealth)*100)
  573.    
  574.     if CLOCK-toggle_timer>0.2 then
  575.         toggle_timer=CLOCK
  576.         script_loaded= ((script_loaded+1)%2)
  577.     end
  578.         if (script_loaded==1) then
  579.             if (CLOCK-toggle_timer<1) then
  580.                 --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
  581.             end
  582.         else
  583.            -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
  584.             return
  585.         end
  586.         if CanUseSpell("R") and percent <= UltiMe then
  587.             CastSpellTarget("R",myHero)
  588.         end
  589. end
  590. --End Kayle Functions
  591.  
  592. --Rengar Functions
  593. function RengarE()
  594.     if CanCastSpell("E") then
  595.         CastSpellTarget('E',target)
  596.     end
  597. end
  598.  
  599. function RengarW()
  600.     if CanCastSpell("W")then
  601.         CastSpellTarget("W",target)
  602.     end
  603. end
  604.  
  605. function RengarQ()
  606.     if CanCastSpell("Q")then
  607.         CastSpellTarget("Q",target)
  608.     end
  609. end
  610.  
  611. function RengarR()
  612.     if CanCastSpell("R")then
  613.         CastSpellTarget("R",myHero)
  614.     end
  615. end
  616.  
  617. function RengarDraw()
  618.     DrawCircle(myHero.x, myHero.y, myHero.z, 575, 0x02)
  619. end
  620. --End Rengar Functions
  621.  
  622. --Tristana Functions
  623. function TristW()
  624.     if CanCastSpell("W") then
  625.         CastSpellXYZ('W',GetFireahead(target,2,20))
  626.     end
  627. end
  628.  
  629. function TristE()
  630.     if CanCastSpell("E") then
  631.         CastSpellTarget("E",target)
  632.     end
  633. end
  634.  
  635. function TristR()
  636.     if CanCastSpell("R") then
  637.         CastSpellTarget("R",target)
  638.     end
  639. end
  640.  
  641. function TristDraw()
  642.     DrawCircle(myHero.x, myHero.y, myHero.z, 800, 0x02)
  643. end
  644. --End Tristana Functions
  645.  
  646. --Volibear Functions
  647. function VoliE()
  648.     if CanCastSpell("E") then
  649.         CastSpellXYZ('E',GetFireahead(target,2,20))
  650.     end
  651. end
  652.  
  653. function VoliQ()
  654.     if CanCastSpell("Q") then
  655.         CastSpellTarget("Q",target)
  656.     end
  657. end
  658.  
  659. function VoliW()
  660.     if CanCastSpell("W")then
  661.         CastSpellTarget("W",target)
  662.     end
  663. end
  664.  
  665. function VoliR()
  666.     if CanCastSpell("R")then
  667.         CastSpellTarget("R",myHero)
  668.     end
  669. end
  670.  
  671. function VoliDraw()
  672.     DrawCircle(myHero.x, myHero.y, myHero.z, 425, 0x02)
  673. end
  674. --End Volibear Functions
  675.  
  676. --Xerath Functions
  677. function XerathQ()
  678.     if ValidTarget(target) and CanCastSpell("Q") then
  679.         CastSpellXYZ('Q',GetFireahead(target,1,20))
  680.     end
  681. end
  682.  
  683. function XerathE()
  684.     if ValidTarget(target) and CanCastSpell("E") then
  685.         CastSpellTarget("E",target)
  686.     end
  687. end
  688.  
  689. function XerathR()
  690.     if ValidTarget(target) and IsSpellReady("R") == 1 then CastSpellXYZ('R',GetFireahead(target,1,20))
  691.     end
  692. end
  693.  
  694. function XerathDraw()
  695.     DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0x02)
  696.     DrawCircle(myHero.x, myHero.y, myHero.z, 1000, 0x02)
  697. end
  698. --End Xerath Functions
  699.  
  700. --Brand Functions
  701. function BrandQ(target)
  702.     if target ~= nil and GetDistance(myHero, target) < 900 and targetbuff == 1 then
  703.         CastSpellXYZ('Q',GetFireahead(target,2,16))
  704.             targetbuff = 0
  705.     end
  706. end
  707.  
  708. function BrandW(target)
  709.     if IsSpellReady("W") and target ~= nil and GetDistance(myHero, target) < 900 then
  710.         CastSpellXYZ('W',GetFireahead(target,3,96))
  711.     end
  712. end
  713.  
  714. function BrandE(target)
  715.     if IsSpellReady("E") and target ~= nil and GetDistance(myHero, target) < 625 then
  716.         CastSpellTarget("E",target)
  717.     end
  718. end
  719.  
  720. function BrandR(target)
  721.     if IsSpellReady("R") and target ~= nil and GetDistance(myHero, target) < 750 then
  722.         CastSpellTarget("R",target)                
  723.     end
  724. end
  725.  
  726. function BrandDraw()
  727.     if myHero.dead == 0 then
  728.         CustomCircle(600, 10, 3, myHero)
  729.             if target ~= nil then
  730.             CustomCircle(100, 5, 2, target)
  731.         end
  732.     end
  733. end
  734. --End Brand Functions
  735.  
  736. --Panth Functions
  737. function PanthE()
  738.         target = GetWeakEnemy("PHYS", 600, "NEARMOUSE")
  739.         if target ~= nil then
  740.             AttackTarget(target)
  741.                 if CanCastSpell("E") then CastSpellXYZ('E',GetFireahead(target,2,20))
  742.                 etimer = GetTickCount() + 825
  743.                 end
  744.         end
  745. end
  746.  
  747. function PanthW()
  748.     if CanCastSpell("W") then
  749.         CastSpellTarget("W",target)
  750.     end
  751. end
  752.  
  753. function PanthQ()
  754.     if CanCastSpell("Q") then
  755.         CastSpellTarget("Q",target)
  756.     end
  757. end
  758.  
  759. function PanthDraw()
  760.     DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0x02)
  761. end
  762.  
  763. --End Panth Functions
  764.  
  765. --Talon Functions
  766.  
  767. function TalonQ(target)
  768.         if target ~= nil and IsSpellReady("Q") then  
  769.                 CastSpellTarget("Q",myHero)  
  770.         end
  771. end
  772.  
  773. function TalonW(target)
  774.         if IsSpellReady("W") == 1 then
  775.                 CastSpellTarget("W",target)
  776.         end
  777. end
  778.  
  779. function TalonE(target)
  780.         if target ~= nil and GetDistance(myHero, target) < 700 then
  781.                 CastSpellTarget('E',target)
  782.         end
  783. end
  784.  
  785. function TalonR(target)
  786.         if IsSpellReady("R") == 1 then
  787.                 CastSpellTarget("R",myHero)                                    
  788.         end
  789. end
  790.  
  791. function TalonDraw()
  792.         DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0x02)  
  793. end  
  794.  
  795. --End Talon Functions
  796.  
  797. --Utility Functions
  798. function OnProcessSpell(obj,spell)
  799.     if obj ~= nil and obj.name == myHero.name then
  800.         if string.find(spell.name,"dr_mundo_burning_agony") then
  801.             MundoWToggled = true
  802.         end
  803.     end
  804. end
  805.  
  806. function OnCreateObj(obj)
  807.     if target ~= nil then
  808.         if obj ~= nil then
  809.             if string.find(obj.charName,'BrandFireMark') ~= nil then
  810.                 targetbuff = 1
  811.             end
  812.             if string.find(obj.charName,'Diana_Q_moonlight') ~= nil then
  813.                 Moonlight = 1
  814.             end
  815.         end
  816.     end
  817. end
  818.  
  819. function DrawSphere(radius,thickness,color,x,y,z)
  820.     for j=1, thickness do
  821.         local ycircle = (j*(radius/thickness*2)-radius)
  822.         local r = math.sqrt(radius^2-ycircle^2)
  823.         ycircle = ycircle/1.3
  824.         DrawCircle(x,y+ycircle,z,r,color)
  825.     end
  826. end
  827.  
  828. SetTimerCallback("OnTick")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement