local abilitySequence local ini=false local _autoLevel = { spellsSlots = { SPELL_1, SPELL_2, SPELL_3, SPELL_4 }, levelSequence = {}, nextUpdate = 0, tickUpdate = 5 } local __autoLevel__OnTick local rOFF=0 --update func-- local version = "1.05" local AUTOUPDATE = true local UPDATE_HOST = "raw.github.com" local UPDATE_PATH = "/CooLowbro/BoL/master/AutoLvLReworked.lua".."?rand="..math.random(1,10000) local UPDATE_FILE_PATH = SCRIPT_PATH..GetCurrentEnv().FILE_NAME local UPDATE_URL = "https://"..UPDATE_HOST..UPDATE_PATH function _AutoupdaterMsg(msg) print("Tyler1 Auto Level Spells Reworked by CooLow: "..msg.."") end if AUTOUPDATE then local ServerData = GetWebResult(UPDATE_HOST, "/CooLowbro/BoL/master/AutoLvLReworked.version") if ServerData then ServerVersion = type(tonumber(ServerData)) == "number" and tonumber(ServerData) or nil if ServerVersion then if tonumber(version) < ServerVersion then _AutoupdaterMsg("New version available "..ServerVersion) _AutoupdaterMsg("Updating, please don't press F9") DelayAction(function() DownloadFile(UPDATE_URL, UPDATE_FILE_PATH, function () _AutoupdaterMsg("Successfully updated. ("..version.." => "..ServerVersion.."), press F9 twice to load the updated version.") end) end, 3) else _AutoupdaterMsg("You have got the latest version ("..ServerVersion..")") end end else _AutoupdaterMsg("Error downloading version info") end end --end updt function OnTick() if tonumber(version) == ServerVersion then Start() if ini then AutoLevel() end end end function Start() if Menu.start then if player.charName == "Jayce" then CarryRoff() else CarryRon() end end end function AutoLevel() autoLevelSetSequenceCustom(abilitySequence) end function CarryRon() local sequence1, sequence2 = Menu.sequenceSpells, Menu.sequenceSpells2 ini = true if sequence1 == 1 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 2 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 3 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 4 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 6 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 5 then abilitySequence = { 3, 2, 2, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } end end function CarryRoff() local sequence1, sequence2 = Menu.sequenceSpells, Menu.sequenceSpells2 ini = true if sequence1 == 1 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 1 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3, } elseif sequence1 == 2 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 2 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2, } elseif sequence1 == 3 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 3 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 2, 2, 4, 2, 1, 2, 1, 4, 1, 1, 3, 3, 4, 3, 3, } elseif sequence1 == 4 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 4 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 2, 2, 4, 2, 3, 2, 3, 4, 3, 3, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 5 then abilitySequence = { 3, 2, 1, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 5 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 3, 3, 4, 3, 2, 3, 2, 4, 2, 2, 1, 1, 4, 1, 1, } elseif sequence1 == 6 and sequence2 == 1 then abilitySequence = { 1, 2, 3, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 2 then abilitySequence = { 1, 3, 2, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 3 then abilitySequence = { 2, 1, 3, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 4 then abilitySequence = { 2, 3, 1, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 5 then abilitySequence = { 3, 2, 2, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } elseif sequence1 == 6 and sequence2 == 6 then abilitySequence = { 3, 1, 2, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2, } end end local function autoLevel__OnLoad() if not __autoLevel__OnTick then function __autoLevel__OnTick() local tick = os.clock() if _autoLevel.nextUpdate > tick then return end _autoLevel.nextUpdate = tick + Menu.DelayTime local realLevel = rOFF + GetHeroLeveled() if player.level > realLevel and _autoLevel.levelSequence[realLevel + 1] ~= nil then local splell = _autoLevel.levelSequence[realLevel + 1] if splell == 0 and type(_autoLevel.onChoiceFunction) == "function" then splell = _autoLevel.onChoiceFunction() end if type(splell) == "number" and splell >= 1 and splell <= 4 then LevelSpell(_autoLevel.spellsSlots[splell]) end end end AddTickCallback(__autoLevel__OnTick) end end function autoLevelSetSequenceCustom(sequence1, sequence2) assert(sequence1, sequence2 == nil or type(sequence1, sequence2) == "table", "autoLevelSetSequence : wrong argument types (