Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- _____ ___ ___ _ _ _
- |_ _|__ __ _ _ __ / _ \ _ _ ___| _ )_ _| |_| |_ ___ _ _ ( )___
- | |/ -_) _` | ' \ | (_) | ' \/ -_) _ \ || | _| _/ _ \ ' \|/(_-<
- |_|\___\__,_|_|_|_| \___/|_||_\___|___/\_,_|\__|\__\___/_||_| /__/
- _ _ _ ___ ___ ___ _ ___ _ _
- /_\ | | |_ _|_ _ / _ \ _ _ ___ / __| |_ __ _ _ __ _ __ / __| __ _ _(_)_ __| |_
- / _ \| | || || ' \ (_) | ' \/ -_) | (__| ' \/ _` | ' \| '_ \ \__ \/ _| '_| | '_ \ _|
- /_/ \_\_|_|___|_||_\___/|_||_\___| \___|_||_\__,_|_|_|_| .__/ |___/\__|_| |_| .__/\__|
- |_| |_|
- --]]
- --Currently Supported Champions are -
- --Akali
- --Brand
- --Diana
- --Dr Mundo
- --Graves
- --Kayle
- --Pantheon
- --Rengar
- --Talon
- --Tristana
- --Volibear
- --Xerath
- --Config Settings
- --Mundo
- local MundoTooLow = 15
- -- tooLow is the point at which it will stop casting spells
- local MundoUltHP = 30
- --MundoUltHP is the percent of hp that it will cast it's ULT
- local MundoWToggled = false
- --Kayle
- local healPlease = 80
- --% HP that Kayle will Auto heal herself
- local ultiPlease = 20
- --% HP that Kayle will auto Ult herself
- require "Utils"
- printtext("\nTeam OneButton's AllInOne Script\n")
- local hotkey = GetScriptKey()
- local myHero = GetSelf()
- local target
- local doAttack = false
- local key1
- local toggle_timer=os.clock()
- local script_loaded=0
- if myHero.name == "Akali" then
- function OnTick()
- AkaliDraw()
- DrawText("Team OneButton's Akali", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',800,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if GetDistance(myHero, target) < 600 then
- AkaliQ(target)
- end
- if GetDistance(myHero, target) < 800 then
- AkaliR(target)
- end
- if GetDistance(myHero, target) < 325 then
- AkaliE(target)
- end
- AttackTarget(target)
- end
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "Brand" then
- local targetbuff = 0
- function OnTick()
- BrandDraw()
- DrawText("Team OneButton's Brand", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- BrandE(target)
- BrandW(target)
- BrandQ(target)
- BrandR(target)
- AttackTarget(target)
- end
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "Diana" then
- function OnTick()
- local Moonlight = 0
- DianaDraw()
- DrawText("xXGeminiXx's OneButton Diana", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',830,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- DianaQ(target)
- DianaW(target)
- DianaE(target)
- DianaR(target)
- AttackTarget(target)
- end
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "DrMundo" then
- function OnTick()
- local percent = ((myHero.health / myHero.maxHealth)*100)
- MundoDraw()
- DrawText("Team OneButton's Mundo", 105, 25, Color.Green)
- --DrawText("HP" .. percent, 105, 50, Color.Red)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',1000,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- AttackTarget(target)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if percent >= MundoTooLow then
- MundoQ(target)
- MundoW(target)
- MundoE(target)
- else
- DrawText("HP BELOW " .. MundoTooLow .. "%", 165, 80, Color.Red)
- end
- else
- MundoWToggled = false
- end
- MoveToMouse()
- end
- if percent <= MundoUltHP then
- MundoR(target)
- end
- end
- end
- if myHero.name == "Graves" then
- function OnTick()
- DrawText("Boom headshot!", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- GravesDraw()
- target = GetWeakEnemy('PHYS',900,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- if target == nil or not doAttack then
- MoveToMouse()
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- end
- if GetDistance(myHero, target) < 900 then
- GravesQ()
- end
- if GetDistance(myHero, target) < 900 then
- GravesW()
- end
- if GetDistance(myHero, target) < 900 then
- GravesR()
- end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- end
- if myHero.name == "Kayle" then
- function OnTick()
- local script_loaded=1
- key1 = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',650)
- HP()
- Ultibot()
- DrawCircleObject(myHero, 650, 0x02)
- DrawText("Kaylebot v0.2 Loaded",5,40,0xFF00EE00);
- DrawText("AutoUlt v0.2 Activated",5,80,0xFF00EE00);
- if key1 ~= 0 then
- UseAllItems(target)
- if target ~= nil then
- DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if GetDistance(myHero, target) < 650 then
- CastSpellTarget("Q",target)
- end
- if GetDistance(myHero, target) < 650 then
- CastSpellTarget("E", myHero)
- end
- AttackTarget(target)
- else
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "Pantheon" then
- function OnTick()
- local etimer = 0
- DrawText("THIS.. IS.. SPARTA!!", 105, 25, Color.Green)
- PanthDraw()
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('PHYS',600)
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if GetDistance(myHero, target) < 600 then
- PanthW()
- end
- if GetTickCount() > etimer then
- if GetDistance(myHero, target) < 600 then
- PanthQ()
- end
- if GetDistance(myHero, target) < 600 then
- PanthE()
- end
- end
- end
- if target == nil or not doAttack then
- if GetTickCount() > etimer then
- MoveToMouse()
- end
- end
- end
- end
- end
- if myHero.name == "Rengar" then
- function OnTick()
- RengarDraw()
- DrawText("Leap Frog", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('PHYS',575,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if GetDistance(myHero, target) < 300 then
- RengarQ()
- end
- if GetDistance(myHero, target) < 575 then
- RengarE()
- end
- if GetDistance(myHero, target) < 500 then
- RengarW()
- end
- AttackTarget(target)
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- end
- if myHero.name == "Talon" then
- function OnTick()
- TalonDraw()
- DrawText("Do the Chickens have large Talons?", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('PHYS',700,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UseAllItems(target)
- if GetDistance(myHero, target) < 700 then
- TalonE(target)
- end
- TalonQ(target)
- AttackTarget(target)
- if GetDistance(myHero, target) < 595 then
- TalonW(target)
- end
- TalonR(target)
- CastSummonerExhaust(target)
- CastSummonerIgnite(target)
- AttackTarget(target)
- end
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "Tristana" then
- function OnTick()
- TristDraw()
- DrawText("Wanna see the fireworks?", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UseAllItems(target)
- if GetDistance(myHero, target) < 900 then
- TristW()
- end
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if GetDistance(myHero, target) < 900 then
- TristE()
- end
- if GetDistance(myHero, target) < 900 then
- TristR()
- end
- AttackTarget(target)
- end
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "Volibear" then
- function OnTick()
- VoliDraw()
- DrawText("Rolling Thunder", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('PHYS',1500,"NEARMOUSE")
- if key == 1 then
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- if GetDistance(myHero, target) < 1500 then
- VoliQ()
- end
- if GetDistance(myHero, target) < 900 then
- VoliR()
- end
- if GetDistance(myHero, target) < 425 then
- VoliE()
- end
- if GetDistance(myHero, target) < 400 then
- VoliW()
- end
- AttackTarget(target)
- end
- if target == nil or not doAttack then
- MoveToMouse()
- end
- end
- end
- end
- if myHero.name == "Xerath" then
- function OnTick()
- XerathDraw()
- DrawText("I AM the arcane!", 105, 25, Color.Green)
- local key = IsKeyDown(hotkey)
- target = GetWeakEnemy('MAGIC',1300,"NEARMOUSE")
- if key == 1 then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UseAllItems(target)
- CastSummonerIgnite(target)
- CastSummonerExhaust(target)
- end
- if GetDistance(myHero, target) < 1300 then
- XerathE()
- end
- if GetDistance(myHero, target) < 1000 then
- XerathQ()
- end
- if GetDistance(myHero, target) < 1300 then
- XerathR()
- end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- end
- --Dianas Functions
- function DianaQ(target)
- if target ~= nil and GetDistance(myHero, target) < 825 then
- CastSpellXYZ('Q',GetFireahead(target,2,18))
- targetbuff = 1
- end
- end
- function DianaW(target)
- if IsSpellReady("W") == 1 and GetDistance(myHero, target) < 200 then
- CastSpellTarget("W",myHero)
- end
- end
- function DianaE(target)
- if IsSpellReady("E") and GetDistance(myHero, target) < 249 then
- CastSpellTarget("E",myHero)
- end
- end
- function DianaR(target)
- if IsSpellReady("R") == 1 and GetDistance(myHero, target) < 825 and Moonlight == 1 then
- CastSpellTarget("R",target)
- end
- end
- function DianaDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 700, 0x02)
- end
- --End of Diana functions
- --Akalis Functions
- function AkaliQ(target)
- if IsSpellReady("Q") == 1 then
- CastSpellTarget("Q",target)
- lastQ = GetTickCount()
- end
- end
- function AkaliW(target)
- --not used currently
- if IsSpellReady("W") == 1 then
- CastSpellTarget("W",target)
- end
- end
- function AkaliE(target)
- if IsSpellReady("E") == 1 then
- if IsSpellReady("Q") == 0 then
- CastSpellTarget("E",target)
- end
- end
- end
- function AkaliR(target)
- if IsSpellReady("R") == 1 then
- CastSpellTarget("R",target)
- end
- end
- function AkaliDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 800, 0x02)
- end
- --End Akali Functions
- --Dr Mundo Functions
- function MundoQ(target)
- --Shortened Q distance a tad to ensure hit due to projectile speed+movespeed
- if target ~= nil and GetDistance(myHero, target) < 990 and CreepBlock(myHero.x,myHero.y,myHero.z,GetFireahead(target,2,20)) == 0 then
- CastSpellXYZ('Q',GetFireahead(target,2,20))
- end
- end
- function MundoW(target)
- --Cast W on self if it's ready, it's not toggled, and they're close enough to burn
- if IsSpellReady("W") == 1 and MundoWToggled == false and GetDistance(myHero, target) < 325 then
- CastSpellTarget("W",myHero)
- MundoWToggled = true
- end
- --Cast W on self (to toggle off) if the spell is ready, it's on, and they're not close enough to burn.
- if IsSpellReady("W") == 1 and MundoWToggled == true and GetDistance(myHero, target) > 400 then
- CastSpellTarget("W",myHero)
- MundoWToggled = false
- end
- end
- function MundoE(target)
- if IsSpellReady("E") == 1 and GetDistance(myHero, target) > 325 then
- CastSpellTarget("E",myHero)
- end
- end
- function MundoR(target)
- if IsSpellReady("R") == 1 then
- CastSpellTarget("R",myHero)
- end
- end
- function MundoDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 1000, 0x02)
- end
- --End Dr Mundo Functions
- --Graves Functions
- function GravesQ()
- if ValidTarget(target) and CanCastSpell("Q") then
- CastSpellXYZ('Q',GetFireahead(target,2,20))
- end
- end
- function GravesW()
- if CanCastSpell("W") then
- CastSpellXYZ("W",GetFireahead(target,2,20))
- end
- end
- function GravesR()
- if CanCastSpell("R") then
- CastSpellXYZ('R',GetFireahead(target,2,20))
- end
- end
- function GravesDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 900, 0x02)
- end
- --End Graves Functions
- --Kayle Functions
- function HP()
- local percent = ((myHero.health / myHero.maxHealth)*100)
- local healMe = healPlease
- if IsSpellReady("W") and percent <= healMe then CastSpellTarget("W",myHero) end
- end
- function Ultibot()
- CLOCK=os.clock()
- local key=112;
- local UltiMe = ultiPlease
- local percent = ((myHero.health / myHero.maxHealth)*100)
- if CLOCK-toggle_timer>0.2 then
- toggle_timer=CLOCK
- script_loaded= ((script_loaded+1)%2)
- end
- if (script_loaded==1) then
- if (CLOCK-toggle_timer<1) then
- --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
- end
- else
- -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
- return
- end
- if CanUseSpell("R") and percent <= UltiMe then
- CastSpellTarget("R",myHero)
- end
- end
- --End Kayle Functions
- --Rengar Functions
- function RengarE()
- if CanCastSpell("E") then
- CastSpellTarget('E',target)
- end
- end
- function RengarW()
- if CanCastSpell("W")then
- CastSpellTarget("W",target)
- end
- end
- function RengarQ()
- if CanCastSpell("Q")then
- CastSpellTarget("Q",target)
- end
- end
- function RengarR()
- if CanCastSpell("R")then
- CastSpellTarget("R",myHero)
- end
- end
- function RengarDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 575, 0x02)
- end
- --End Rengar Functions
- --Tristana Functions
- function TristW()
- if CanCastSpell("W") then
- CastSpellXYZ('W',GetFireahead(target,2,20))
- end
- end
- function TristE()
- if CanCastSpell("E") then
- CastSpellTarget("E",target)
- end
- end
- function TristR()
- if CanCastSpell("R") then
- CastSpellTarget("R",target)
- end
- end
- function TristDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 800, 0x02)
- end
- --End Tristana Functions
- --Volibear Functions
- function VoliE()
- if CanCastSpell("E") then
- CastSpellXYZ('E',GetFireahead(target,2,20))
- end
- end
- function VoliQ()
- if CanCastSpell("Q") then
- CastSpellTarget("Q",target)
- end
- end
- function VoliW()
- if CanCastSpell("W")then
- CastSpellTarget("W",target)
- end
- end
- function VoliR()
- if CanCastSpell("R")then
- CastSpellTarget("R",myHero)
- end
- end
- function VoliDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 425, 0x02)
- end
- --End Volibear Functions
- --Xerath Functions
- function XerathQ()
- if ValidTarget(target) and CanCastSpell("Q") then
- CastSpellXYZ('Q',GetFireahead(target,1,20))
- end
- end
- function XerathE()
- if ValidTarget(target) and CanCastSpell("E") then
- CastSpellTarget("E",target)
- end
- end
- function XerathR()
- if ValidTarget(target) and IsSpellReady("R") == 1 then CastSpellXYZ('R',GetFireahead(target,1,20))
- end
- end
- function XerathDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0x02)
- DrawCircle(myHero.x, myHero.y, myHero.z, 1000, 0x02)
- end
- --End Xerath Functions
- --Brand Functions
- function BrandQ(target)
- if target ~= nil and GetDistance(myHero, target) < 900 and targetbuff == 1 then
- CastSpellXYZ('Q',GetFireahead(target,2,16))
- targetbuff = 0
- end
- end
- function BrandW(target)
- if IsSpellReady("W") and target ~= nil and GetDistance(myHero, target) < 900 then
- CastSpellXYZ('W',GetFireahead(target,3,96))
- end
- end
- function BrandE(target)
- if IsSpellReady("E") and target ~= nil and GetDistance(myHero, target) < 625 then
- CastSpellTarget("E",target)
- end
- end
- function BrandR(target)
- if IsSpellReady("R") and target ~= nil and GetDistance(myHero, target) < 750 then
- CastSpellTarget("R",target)
- end
- end
- function BrandDraw()
- if myHero.dead == 0 then
- CustomCircle(600, 10, 3, myHero)
- if target ~= nil then
- CustomCircle(100, 5, 2, target)
- end
- end
- end
- --End Brand Functions
- --Panth Functions
- function PanthE()
- target = GetWeakEnemy("PHYS", 600, "NEARMOUSE")
- if target ~= nil then
- AttackTarget(target)
- if CanCastSpell("E") then CastSpellXYZ('E',GetFireahead(target,2,20))
- etimer = GetTickCount() + 825
- end
- end
- end
- function PanthW()
- if CanCastSpell("W") then
- CastSpellTarget("W",target)
- end
- end
- function PanthQ()
- if CanCastSpell("Q") then
- CastSpellTarget("Q",target)
- end
- end
- function PanthDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0x02)
- end
- --End Panth Functions
- --Talon Functions
- function TalonQ(target)
- if target ~= nil and IsSpellReady("Q") then
- CastSpellTarget("Q",myHero)
- end
- end
- function TalonW(target)
- if IsSpellReady("W") == 1 then
- CastSpellTarget("W",target)
- end
- end
- function TalonE(target)
- if target ~= nil and GetDistance(myHero, target) < 700 then
- CastSpellTarget('E',target)
- end
- end
- function TalonR(target)
- if IsSpellReady("R") == 1 then
- CastSpellTarget("R",myHero)
- end
- end
- function TalonDraw()
- DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0x02)
- end
- --End Talon Functions
- --Utility Functions
- function OnProcessSpell(obj,spell)
- if obj ~= nil and obj.name == myHero.name then
- if string.find(spell.name,"dr_mundo_burning_agony") then
- MundoWToggled = true
- end
- end
- end
- function OnCreateObj(obj)
- if target ~= nil then
- if obj ~= nil then
- if string.find(obj.charName,'BrandFireMark') ~= nil then
- targetbuff = 1
- end
- if string.find(obj.charName,'Diana_Q_moonlight') ~= nil then
- Moonlight = 1
- end
- end
- end
- end
- function DrawSphere(radius,thickness,color,x,y,z)
- for j=1, thickness do
- local ycircle = (j*(radius/thickness*2)-radius)
- local r = math.sqrt(radius^2-ycircle^2)
- ycircle = ycircle/1.3
- DrawCircle(x,y+ycircle,z,r,color)
- end
- end
- SetTimerCallback("OnTick")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement