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
- --Shen Credits: IPJ
- --Talon
- --Tristana
- --Volibear
- --Xerath
- --Yorick Credits: IPJ
- --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
- --Shen
- --Utilizes auto-shielding pro-sauce.
- local saveMeee = 20
- --% HP you will ulti to allies.
- --Yorick
- --Utilizes auto-respawning pro-sauce.
- local ghoulmeh = 15
- --% HP you will ulti to allies.
- require "Utils"
- printtext("\nTeam OneButton's AllInOne Script\n")
- local myHero = GetSelf()
- local iHero = GetSelf()
- local target
- local doAttack = false
- local toggle_timer=os.clock()
- local script_loaded=0
- local wUsedAt = 0
- local waUsedAt = 0
- local vUsedAt = 0
- local timer=os.clock()
- local bluePill = nil
- if myHero.name == "Akali" then
- function OnTick()
- AkaliDraw()
- DrawText("Team OneButton's Akali", 105, 25, Color.Green)
- target = GetWeakEnemy('MAGIC',800,"NEARMOUSE")
- if AIOConfig.AkaliCombo then
- if target == nil then
- MoveToMouse()
- end
- 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)
- UtilityFunction()
- AttackTarget(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
- end
- end
- end
- end
- if myHero.name == "Brand" then
- local targetbuff = 0
- function OnTick()
- BrandDraw()
- DrawText("Team OneButton's Brand", 105, 25, Color.Green)
- target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
- if AIOConfig.BrandCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- BrandE(target)
- BrandW(target)
- BrandQ(target)
- BrandR(target)
- AttackTarget(target)
- end
- end
- if AIOConfig.BrandHarass then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- BrandE(target)
- BrandW(target)
- BrandQ(target)
- AttackTarget(target)
- end
- end
- end
- end
- if myHero.name == "Diana" then
- function OnTick()
- local Moonlight = 0
- DianaDraw()
- DrawText("xXGeminiXx's OneButton Diana", 105, 25, Color.Green)
- target = GetWeakEnemy('MAGIC',830,"NEARMOUSE")
- if AIOConfig.DianaCombo then
- if target == nil then
- MoveToMouse()
- end
- 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)
- UtilityFunction()
- DianaQ(target)
- DianaW(target)
- DianaE(target)
- DianaR(target)
- AttackTarget(target)
- end
- end
- if AIOConfig.DianaHarass then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- DianaQ(target)
- AttackTarget(target)
- 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)
- target = GetWeakEnemy('MAGIC',1000,"NEARMOUSE")
- if AIOConfig.MundoCombo then
- if target == nil then
- MoveToMouse()
- end
- 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)
- UtilityFunction()
- if percent >= MundoTooLow then
- MundoQ(target)
- MundoW(target)
- MundoE(target)
- else
- DrawText("HP BELOW " .. MundoTooLow .. "%", 165, 80, Color.Red)
- end
- else
- MundoWToggled = false
- end
- end
- if percent <= MundoUltHP then
- MundoR(target)
- end
- end
- end
- if myHero.name == "Graves" then
- function OnTick()
- DrawText("Boom headshot!", 105, 25, Color.Green)
- GravesDraw()
- target = GetWeakEnemy('PHYS',900,"NEARMOUSE")
- if AIOConfig.GravesCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UtilityFunction()
- 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
- if AIOConfig.GravesHarass then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- end
- if GetDistance(myHero, target) < 900 then
- GravesQ()
- end
- if GetDistance(myHero, target) < 900 then
- GravesW()
- end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- if myHero.name == "Kayle" then
- function OnTick()
- local script_loaded=1
- 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 AIOConfig.KayleCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
- CustomCircle(100,5,2,target)
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- if GetDistance(myHero, target) < 650 then
- CastSpellTarget("Q",target)
- end
- if GetDistance(myHero, target) < 650 then
- CastSpellTarget("E", myHero)
- end
- AttackTarget(target)
- end
- end
- end
- end
- if myHero.name == "Pantheon" then
- function OnTick()
- local etimer = 0
- DrawText("THIS.. IS.. SPARTA!!", 105, 25, Color.Green)
- PanthDraw()
- target = GetWeakEnemy('PHYS',600)
- if AIOConfig.PantheonCombo then
- if target == nil then
- if GetTickCount() > etimer then
- MoveToMouse()
- end
- end
- if target ~= nil then
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UtilityFunction()
- if GetTickCount() > etimer then
- if GetDistance(myHero, target) < 600 then
- PanthQ()
- end
- end
- if GetDistance(myHero, target) < 600 then
- PanthW()
- end
- if GetDistance(myHero, target) < 600 then
- PanthE()
- end
- end
- end
- end
- end
- if myHero.name == "Rengar" then
- function OnTick()
- RengarDraw()
- DrawText("Leap Frog", 105, 25, Color.Green)
- target = GetWeakEnemy('PHYS',780,"NEARMOUSE")
- if AIOConfig.RengarCombo then
- if target == nil then
- MoveToMouse()
- end
- 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)
- UtilityFunction()
- if GetDistance(myHero, target) < 600 then
- RengarQ()
- end
- if GetDistance(myHero, target) < 575 then
- RengarE()
- end
- if GetDistance(myHero, target) < 500 then
- RengarW()
- end
- end
- end
- if AIOConfig.RengarHarass then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- AttackTarget(target)
- if GetDistance(myHero, target) < 575 then
- RengarE()
- end
- if GetDistance(myHero, target) < 500 then
- RengarW()
- end
- end
- end
- end
- end
- if myHero.name == "Shen" then
- function OnTick()
- local script_loaded=1
- target = GetWeakEnemy('MAGIC',575)
- SaveThemAll()
- DrawCircleObject(myHero, 575, 0x02)
- DrawCircleObject(myHero, 475, 0x02)
- DrawText("COME AT ME BRO!",5,40,0xFF00EE00);
- DrawText("AutoUlt Activated",5,80,0xFF00EE00);
- if AIOConfig.ShenCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
- CustomCircle(100,5,2,target)
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- if GetDistance(myHero, target) < 475 then
- CastSpellTarget("Q",target)
- end
- if GetDistance(myHero, target) < 575 then
- ShenE()
- end
- if GetDistance(myHero, target) < 350 then
- CastSpellTarget("W", myHero)
- end
- AttackTarget(target)
- end
- end
- end
- end
- if myHero.name == "Talon" then
- function OnTick()
- TalonDraw()
- DrawText("Do the Chickens have large Talons?", 105, 25, Color.Green)
- target = GetWeakEnemy('PHYS',700,"NEARMOUSE")
- if AIOConfig.TalonCombo then
- if target == nil or not doAttack then
- MoveToMouse()
- 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)
- UtilityFunction()
- if GetDistance(myHero, target) < 700 then
- TalonE(target)
- end
- TalonQ(target)
- AttackTarget(target)
- if GetDistance(myHero, target) < 595 then
- TalonW(target)
- end
- TalonR(target)
- AttackTarget(target)
- end
- end
- end
- if AIOConfig.TalonHarass then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- CustomCircle(100,5,2,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- AttackTarget(target)
- if GetDistance(myHero, target) < 595 then
- TalonW(target)
- end
- AttackTarget(target)
- end
- end
- end
- end
- end
- if myHero.name == "Tristana" then
- function OnTick()
- TristDraw()
- DrawText("Wanna see the fireworks?", 105, 25, Color.Green)
- target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
- if AIOConfig.TristanaCombo then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UtilityFunction()
- if GetDistance(myHero, target) < 900 then
- TristW()
- end
- if GetDistance(myHero, target) < 900 then
- TristE()
- end
- if GetDistance(myHero, target) < 900 then
- TristR()
- end
- AttackTarget(target)
- end
- end
- end
- if AIOConfig.TristanaHarass then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- if GetDistance(myHero, target) < 900 then
- TristW()
- end
- if GetDistance(myHero, target) < 900 then
- TristE()
- end
- AttackTarget(target)
- end
- end
- end
- end
- end
- if myHero.name == "Volibear" then
- function OnTick()
- VoliDraw()
- DrawText("Rolling Thunder", 105, 25, Color.Green)
- target = GetWeakEnemy('PHYS',1500,"NEARMOUSE")
- if AIOConfig.VolibearCombo then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- 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
- end
- end
- if AIOConfig.VolibearHarass then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- if GetDistance(myHero, target) < 1500 then
- VoliQ()
- end
- if GetDistance(myHero, target) < 425 then
- VoliE()
- end
- if GetDistance(myHero, target) < 400 then
- VoliW()
- end
- AttackTarget(target)
- end
- end
- end
- end
- end
- if myHero.name == "Xerath" then
- function OnTick()
- XerathDraw()
- DrawText("I AM the arcane!", 105, 25, Color.Green)
- target = GetWeakEnemy('MAGIC',1300,"NEARMOUSE")
- if AIOConfig.XerathCombo then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- UtilityFunction()
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- CustomCircle(100,4,1,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- if GetDistance(myHero, target) < 1000 then
- XerathE()
- end
- if GetDistance(myHero, target) < 1300 then
- XerathQ()
- end
- if GetDistance(myHero, target) < 1300 then
- XerathR()
- end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- if AIOConfig.XerathHarass then
- if target == nil or not doAttack then
- MoveToMouse()
- if target ~= nil then
- UtilityFunction()
- CustomCircle(100,4,1,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- end
- if GetDistance(myHero, target) < 1000 then
- XerathE()
- end
- if GetDistance(myHero, target) < 1300 then
- XerathQ()
- end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- end
- --New Champs--
- if myHero.name == "Gragas" then
- function OnTick()
- GragasDraw()
- target = GetWeakEnemy("Magic", 600, "NEARMOUSE")
- if AIOConfig.GragasCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- CustomCircle(100,4,1,target)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- UtilityFunction()
- if CanCastSpell("Q") and ValidTarget(target) then CastSpellXYZ('Q',GetFireahead(target,1,10)) end
- if CanCastSpell("E") and ValidTarget(target) then CastSpellXYZ('E',GetFireahead(target,1,10)) end
- if CanCastSpell("R") and ValidTarget(target) then CastSpellTarget('R',target) end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- if AIOConfig.GragasHarass then
- if target == nil then
- MoveToMouse()
- if target ~= nil then
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- CustomCircle(100,4,1,target)
- if CanCastSpell("Q") and ValidTarget(target) then CastSpellXYZ('Q',GetFireahead(target,1,10)) end
- if CanCastSpell("E") and ValidTarget(target) then CastSpellXYZ('E',GetFireahead(target,1,10)) end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- end
- end
- if myHero.name == "Yorick" then
- function OnTick()
- local script_loaded=1
- target = GetWeakEnemy('MAGIC',600)
- YouShallLive()
- DrawCircleObject(myHero, 600, 0x02)
- DrawCircleObject(myHero, 550, 0x02)
- DrawCircleObject(myHero, 150, 0x02)
- DrawText("Shovel: Check! Ghouls: Check! GG!",5,40,0xFF00EE00);
- DrawText("AutoUlt Activated",5,80,0xFF00EE00);
- if AIOConfig.YorickCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
- CustomCircle(100,5,2,target)
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- if GetDistance(myHero, target) < 600 then
- CastSpellTarget("E",target)
- end
- if GetDistance(myHero, target) < 550 then
- YorickW()
- end
- if GetDistance(myHero, target) < 300 then
- CastSpellXYZ("Q",myHero.x,myHero.y,myHero.z)
- end
- AttackTarget(target)
- end
- end
- end
- end
- if myHero.name == "Leblanc" then
- function OnTick()
- LeBlancDraw()
- target = GetWeakEnemy("Magic", 600, "NEARMOUSE")
- if AIOConfig.LeBlancCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- CustomCircle(100,4,1,target)
- UtilityFunction()
- if GetDistance(myHero, target) < 700 then leblancQ(target) end
- if GetDistance(myHero, target) < 700 then leblancR(target) end
- if GetDistance(myHero, target) < 600 then leblancW(target) end
- if GetDistance(myHero, target) < 100 and GetDistance(myHero, target) > 10 then leblancE(target) end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- if AIOConfig.LeBlancHarass then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- CustomCircle(100,4,1,target)
- if GetDistance(myHero, target) < 700 then leblancQ(target) end
- if GetDistance(myHero, target) < 600 then leblancW(target) end
- if ValidTarget(target) then
- AttackTarget(target)
- end
- end
- end
- end
- end
- --Leblanc functions
- function leblancQ(target)
- if target ~= nil and ValidTarget(target) and IsSpellReady("Q") and GetSpellLevel("Q") > 0 then
- CastSpellTarget("Q", target)
- lastSpell = "Q"
- end
- end
- function leblancW(target)
- 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
- CastSpellTarget("W", target)
- lastSpell = "W"
- wUsedAt = GetClock()
- end
- end
- function leblancE(target)
- if target ~= nil and ValidTarget(target) and not ultReady() and IsSpellReady("E") and GetSpellLevel("E") > 0 then
- CastSpellXYZ("E", target.x, target.y, target.z)
- lastSpell = "E"
- end
- end
- function leblancR(target)
- if target ~= nil and ValidTarget(target) and lastSpell == "Q" and IsSpellReady("Q") == 0 and ultReady() then
- CastSpellTarget("R", target)
- lastSpell = "R"
- end
- end
- function ultReady()
- if GetSpellLevel("R") == 0 or IsSpellReady("R") == 0 then return false else return true end
- end
- function LeBlancDraw()
- CustomCircle(600,2,3,myHero)
- end
- --Gragass Functions
- function GragasDraw()
- CustomCircle(600,2,3,myHero)
- 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()
- CustomCircle(700,2,3,myHero)
- 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()
- CustomCircle(800,2,3,myHero)
- 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()
- CustomCircle(1000,2,3,myHero)
- 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()
- CustomCircle(900,2,3,myHero)
- 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()
- CustomCircle(780,4,3,myHero)
- end
- --End Rengar Functions
- --Shen Functions
- function ShenE()
- if CanCastSpell("E") then
- CastSpellXYZ('E',GetFireahead(target,2,14))
- end
- end
- function SaveThemAll()
- for i = 1, objManager:GetMaxHeroes() do
- local ally = objManager:GetHero(i)
- local percent2 = ((ally.health / ally.maxHealth)*100)
- CLOCK=os.clock()
- local key=112;
- local savethemall = saveMeee
- 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 percent2 <= savethemall and ally.team == myHero.team then
- CastSpellTarget("R",ally)
- end
- end
- end
- --End Shen Functions
- --Tristana Functions
- function TristW()
- if CanCastSpell("W") then
- CastSpellXYZ('W',GetFireahead(target,2,12))
- 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()
- CustomCircle(800,2,3,myHero)
- 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()
- CustomCircle(425,2,3,myHero)
- end
- --End Volibear Functions
- --Xerath Functions
- function XerathQ()
- if ValidTarget(target) and CanCastSpell("Q") then
- CastSpellXYZ('Q',GetFireahead(target,1,25))
- 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()
- CustomCircle(600,2,3,myHero)
- CustomCircle(1000,3,3,myHero)
- CustomCircle(1300,4,3,myHero)
- 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,2,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()
- CustomCircle(600,2,3,myHero)
- 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()
- CustomCircle(600,2,3,myHero)
- end
- --End Talon Functions
- --Yorick Functions
- function YorickW()
- if CanCastSpell("W") then
- CastSpellXYZ('W',GetFireahead(target,5,0))
- end
- end
- function YouShallLive()
- for i = 1, objManager:GetMaxHeroes() do
- local ally = objManager:GetHero(i)
- local percent3 = ((ally.health / ally.maxHealth)*100)
- local myhp = ((myHero.health / myHero.maxHealth)*100)
- local key=112;
- CLOCK=os.clock()
- local ghoulthemall = ghoulmeh
- 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 percent3 <= ghoulthemall and ally.team == myHero.team and GetDistance(myHero, ally) <= 900 then
- CastSpellTarget("R",ally)
- end
- if CanUseSpell("R") and myhp <= ghoulthemall then
- CastSpellXYZ("R",myHero.x,myHero.y,myHero.z)
- end
- end
- end
- --End Yorick 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
- function redElixir()
- if AIOConfig.Elixir then
- UseItemOnTarget(2037, myHero)
- end
- end
- function GetTick()
- return GetClock()
- end
- function usePotion()
- GetInventorySlot(2003)
- UseItemOnTarget(2003,iHero)
- end
- function useFlask()
- GetInventorySlot(2041)
- UseItemOnTarget(2041,iHero)
- end
- function useBiscuit()
- GetInventorySlot(2009)
- UseItemOnTarget(2009,iHero)
- end
- function potion() --Thank you kyuuketsuuki for this, you're an amazing scripter.
- if AIOConfig.Potion and bluePill == nil then
- if iHero.health < iHero.maxHealth * AIOConfig.PotionValue and AIOConfig.HpPotion and GetClock() > waUsedAt + 15000 then
- usePotion()
- waUsedAt = GetTick()
- elseif iHero.health < iHero.maxHealth * AIOConfig.FlaskValue and AIOConfig.Flask and GetClock() > vUsedAt + 10000 then
- useFlask()
- vUsedAt = GetTick()
- elseif iHero.health < iHero.maxHealth * AIOConfig.BiscuitValue and AIOConfig.Biscuit then
- useBiscuit()
- end
- end
- if (os.clock() < timer + 5000) then
- bluePill = nil
- end
- end
- function UtilityFunction()
- redElixir()
- UseAllItems(target)
- end
- function Killsteals()
- if myHero.name == "Akali" and AIOConfig.KSteal then
- CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*75)+25+((player_ap*5)/10))")
- end
- if myHero.name == "Brand" and AIOConfig.KSteal then
- CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*35)+35+((player_ap*55)/100))")
- end
- if myHero.name == "Diana" and AIOConfig.KSteal then
- CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*60)+40+((player_ap*6)/10))")
- end
- if myHero.name == "Dr Mundo" and AIOConfig.KSteal then
- CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=#(((spellq_level*50)+30)>((target_hp*((spellq_level*3)/100))+((target_hp*12)/100))")
- end
- if myHero.name == "Gragas" and AIOConfig.KSteal then
- CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*40)+40+((player_ap*5)/10)+((player_ad*66/100))")
- end
- if myHero.name == "Graves" and AIOConfig.KSteal then
- CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*35)+25+((player_ad*8)/10))")
- end
- if myHero.name == "Kayle" and AIOConfig.KSteal then
- CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*50)+10+player_ap+player_bonusad)")
- end
- if myHero.name == "Leblanc" and AIOConfig.KSteal then
- CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+30+((player_ap*60)/100))")
- end
- if myHero.name == "Pantheon" and AIOConfig.KSteal then
- CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+25+((player_bonusad*14)/10))")
- end
- if myHero.name == "Rengar" and AIOConfig.KSteal then
- CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*45)+10+((player_bonusad*7)/10))")
- end
- if myHero.name == "Talon" and AIOConfig.KSteal then
- CastHotkey("SPELLW:WEAKENEMY ONESPELLHIT=((spellw_level*50)+10+((player_bonusad*12)/10))")
- end
- if myHero.name == "Tristana" and AIOConfig.KSteal then
- CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*100)+200+((player_ap*15)/10))")
- end
- if myHero.name == "Volibear" and AIOConfig.KSteal then
- 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")
- end
- if myHero.name == "Xerath" and AIOConfig.KSteal then
- CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+35+((player_ap*6)/10))")
- end
- end
- AIOConfig = scriptConfig("AIO Collective", "AIOConfig")
- if myHero.name == "Akali" then
- AIOConfig:addParam("AkaliCombo", "Akali Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
- if myHero.name == "Brand" then
- AIOConfig:addParam("BrandCombo", "Brand Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("BrandHarass", "Brand Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Diana" then
- AIOConfig:addParam("DianaCombo", "Diana Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("DianaHarass", "Diana Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Dr Mundo" then
- AIOConfig:addParam("MundoCombo", "Mundo Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
- if myHero.name == "Gragas" then
- AIOConfig:addParam("GragasCombo", "Gragas Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("GragasHarass", "Gragas Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Graves" then
- AIOConfig:addParam("GravesCombo", "Graves Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("GravesHarass", "Graves Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Kayle" then
- AIOConfig:addParam("KayleCombo", "Kayle Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
- if myHero.name == "Leblanc" then
- AIOConfig:addParam("LeBlancCombo", "LeBlanc Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("LeBlancHarass", "LeBlanc Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Pantheon" then
- AIOConfig:addParam("PantheonCombo", "Pantheon Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
- if myHero.name == "Rengar" then
- AIOConfig:addParam("RengarCombo", "Rengar Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("RengarHarass", "Rengar Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Shen" then
- AIOConfig:addParam("ShenCombo", "Shen Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
- if myHero.name == "Talon" then
- AIOConfig:addParam("TalonCombo", "Talon Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("TalonHarass", "Talon Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Tristana" then
- AIOConfig:addParam("TristanaCombo", "Tristana Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("TristanaHarass", "Tristana Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Volibear" then
- AIOConfig:addParam("VolibearCombo", "Volibear Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("VolibearHarass", "Volibear Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Xerath" then
- AIOConfig:addParam("XerathCombo", "Xerath Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- AIOConfig:addParam("XerathHarass", "Xerath Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
- end
- if myHero.name == "Yorick" then
- AIOConfig:addParam("YorickCombo", "Yorick Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
- AIOConfig:addParam("KSteal", "Killsteal", SCRIPT_PARAM_ONOFF, true)
- AIOConfig:addParam("Elixir", "Auto Red Elixir", SCRIPT_PARAM_ONOFF, true)
- AIOConfig:addParam("Potion", "Script Toggle", SCRIPT_PARAM_ONKEYTOGGLE, true, 117)
- AIOConfig:addParam("HpPotion", "Potion Toggle", SCRIPT_PARAM_ONOFF, true)
- AIOConfig:addParam("Flask", "Flask Toggle", SCRIPT_PARAM_ONOFF, true)
- AIOConfig:addParam("Biscuit", "Biscuit Toggle", SCRIPT_PARAM_ONOFF, true)
- AIOConfig:addParam("PotionValue", "Potion Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.75, 103, 0, 1, .1)
- AIOConfig:addParam("FlaskValue", "Flask Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.74, 100, 0, 1, .1)
- AIOConfig:addParam("BiscuitValue", "Biscuit Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.60, 97, 0, 1, .1)
- AIOConfig:addParam("ElixirValue", "Elixir Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.30, 96, 0, 1, .1)
- SetTimerCallback("OnTick")
- SetTimerCallback("potion")
Advertisement
Add Comment
Please, Sign In to add comment