Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Credits to Kilay, thnks to Sonofsams (for the scripts of liveloader)
- -- and to juce and nesa for sider
- -- Works tunnel by Ethan2
- local fileroot = ".\\content\\tunnel"
- local function make_key(ctx, filename)
- if ctx.stadium == 128 and ctx.home_team == 120 then --Juventus
- return string.format("%d:%s", 120, filename)
- elseif ctx.stadium == 30 and ctx.home_team == 119 then --Inter
- return string.format("%d:%s", 119, filename)
- elseif ctx.stadium == 21 and ctx.home_team == 327 then --Napoli
- return string.format("%d:%s", 327, filename)
- elseif ctx.stadium == 30 and ctx.home_team == 121 then --Milan
- return string.format("%d:%s", 121, filename)
- elseif ctx.stadium == 51 and ctx.home_team == 319 then --Bari
- return string.format("%d:%s", 319, filename)
- elseif ctx.stadium == 15 and ctx.home_team == 101 then --Arsenal
- return string.format("%d:%s", 101, filename)
- elseif ctx.stadium == 200 and ctx.home_team == 126 then --Borussia Dortmund
- return string.format("%d:%s", 126, filename)
- elseif ctx.stadium == 141 and ctx.home_team == 102 then --Chelsea
- return string.format("%d:%s", 102, filename)
- elseif ctx.stadium == 2 and ctx.home_team == 108 then --Barcellona
- return string.format("%d:%s", 108, filename)
- elseif ctx.stadium == 95 and ctx.home_team == 109 then --Real Madrid
- return string.format("%d:%s", 109, filename)
- elseif ctx.stadium == 7 and ctx.home_team == 100 then --Manchester United
- return string.format("%d:%s", 100, filename)
- elseif ctx.stadium == 110 and ctx.home_team == 103 then --Liverpool
- return string.format("%d:%s", 103, filename)
- elseif ctx.stadium == 94 and ctx.home_team == 173 then --Manchester City
- return string.format("%d:%s", 173, filename)
- elseif ctx.stadium == 109 and ctx.home_team == 204 then --Leicester City
- return string.format("%d:%s", 204, filename)
- elseif ctx.stadium == 131 and ctx.home_team == 191 then --Benfica Lisbona
- return string.format("%d:%s", 191, filename)
- elseif ctx.stadium == 187 and ctx.home_team == 116 then --Ajax Amsterdam
- return string.format("%d:%s", 116, filename)
- elseif ctx.stadium == 70 and ctx.home_team == 113 then --Olympique Marseille
- return string.format("%d:%s", 113, filename)
- elseif ctx.stadium == 11 and ctx.home_team == 2346 then --Bayern Munich
- return string.format("%d:%s", 2346, filename)
- elseif ctx.stadium == 140 and ctx.home_team == 114 then --Paris Saint Germain
- return string.format("%d:%s", 114, filename)
- elseif ctx.stadium == 100 and ctx.home_team == 2300 then --Celtic Glasgow
- return string.format("%d:%s", 2300, filename)
- elseif ctx.stadium == 117 and ctx.home_team == 4146 then --Eibar
- return string.format("%d:%s", 4146, filename)
- elseif ctx.stadium == 142 and ctx.home_team == 124 then --Fiorentina
- return string.format("%d:%s", 124, filename)
- elseif ctx.stadium == 33 and ctx.home_team == 238 then --Palermo
- return string.format("%d:%s", 238, filename)
- elseif ctx.stadium == 47 and ctx.home_team == 336 then --Verona
- return string.format("%d:%s", 336, filename)
- elseif ctx.stadium == 47 and ctx.home_team == 188 then --Chievo Verona
- return string.format("%d:%s", 188, filename)
- elseif ctx.stadium == 132 and ctx.home_team == 125 then --Roma
- return string.format("%d:%s", 125, filename)
- elseif ctx.stadium == 132 and ctx.home_team == 122 then --Lazio
- return string.format("%d:%s", 122, filename)
- elseif ctx.stadium == 223 and ctx.home_team == 240 then --Sampdoria
- return string.format("%d:%s", 240, filename)
- elseif ctx.stadium == 222 and ctx.home_team == 323 then --Genoa
- return string.format("%d:%s", 323, filename)
- elseif ctx.stadium == 47 and ctx.home_team == 235 then --Empoli
- return string.format("%d:%s", 235, filename)
- end
- end
- local function get_filepath(ctx, filename, key)
- if ctx.stadium == 128 and ctx.home_team == 120 then --Juventus
- return string.format("%s\\%d\\%s", fileroot, 120, filename)
- elseif ctx.stadium == 30 and ctx.home_team == 119 then --Inter
- return string.format("%s\\%d\\%s", fileroot, 119, filename)
- elseif ctx.stadium == 21 and ctx.home_team == 327 then --Napoli
- return string.format("%s\\%d\\%s", fileroot, 327, filename)
- elseif ctx.stadium == 30 and ctx.home_team == 121 then --Milan
- return string.format("%s\\%d\\%s", fileroot, 121, filename)
- elseif ctx.stadium == 51 and ctx.home_team == 319 then --Bari
- return string.format("%s\\%d\\%s", fileroot, 319, filename)
- elseif ctx.stadium == 15 and ctx.home_team == 101 then --Arsenal
- return string.format("%s\\%d\\%s", fileroot, 101, filename)
- elseif ctx.stadium == 200 and ctx.home_team == 126 then --Dortmund
- return string.format("%s\\%d\\%s", fileroot, 126, filename)
- elseif ctx.stadium == 141 and ctx.home_team == 102 then --Chelsea
- return string.format("%s\\%d\\%s", fileroot, 102, filename)
- elseif ctx.stadium == 2 and ctx.home_team == 108 then --Barcellona
- return string.format("%s\\%d\\%s", fileroot, 108, filename)
- elseif ctx.stadium == 95 and ctx.home_team == 109 then --Real Madrid
- return string.format("%s\\%d\\%s", fileroot, 109, filename)
- elseif ctx.stadium == 7 and ctx.home_team == 100 then --Manchester United
- return string.format("%s\\%d\\%s", fileroot, 100, filename)
- elseif ctx.stadium == 110 and ctx.home_team == 103 then --Liverpool
- return string.format("%s\\%d\\%s", fileroot, 103, filename)
- elseif ctx.stadium == 94 and ctx.home_team == 173 then --Manchester City
- return string.format("%s\\%d\\%s", fileroot, 173, filename)
- elseif ctx.stadium == 109 and ctx.home_team == 204 then --Leicester City
- return string.format("%s\\%d\\%s", fileroot, 204, filename)
- elseif ctx.stadium == 131 and ctx.home_team == 191 then --Benfica Lisbona
- return string.format("%s\\%d\\%s", fileroot, 191, filename)
- elseif ctx.stadium == 187 and ctx.home_team == 116 then --Ajax Amsterdam
- return string.format("%s\\%d\\%s", fileroot, 116, filename)
- elseif ctx.stadium == 70 and ctx.home_team == 113 then --Olympique Marseille
- return string.format("%s\\%d\\%s", fileroot, 113, filename)
- elseif ctx.stadium == 11 and ctx.home_team == 2346 then --Bayern Munich
- return string.format("%s\\%d\\%s", fileroot, 2346, filename)
- elseif ctx.stadium == 140 and ctx.home_team == 114 then --Paris Saint Germain
- return string.format("%s\\%d\\%s", fileroot, 114, filename)
- elseif ctx.stadium == 100 and ctx.home_team == 2300 then --Celtic Glasgow
- return string.format("%s\\%d\\%s", fileroot, 2300, filename)
- elseif ctx.stadium == 117 and ctx.home_team == 4146 then --Eibar
- return string.format("%s\\%d\\%s", fileroot, 4146, filename)
- elseif ctx.stadium == 142 and ctx.home_team == 124 then --Fiorentina
- return string.format("%s\\%d\\%s", fileroot, 124, filename)
- elseif ctx.stadium == 33 and ctx.home_team == 238 then --Palermo
- return string.format("%s\\%d\\%s", fileroot, 238, filename)
- elseif ctx.stadium == 47 and ctx.home_team == 336 then --Verona
- return string.format("%s\\%d\\%s", fileroot, 336, filename)
- elseif ctx.stadium == 47 and ctx.home_team == 188 then --Chievo Verona
- return string.format("%s\\%d\\%s", fileroot, 188, filename)
- elseif ctx.stadium == 132 and ctx.home_team == 125 then --Roma
- return string.format("%s\\%d\\%s", fileroot, 125, filename)
- elseif ctx.stadium == 132 and ctx.home_team == 122 then --Lazio
- return string.format("%s\\%d\\%s", fileroot, 122, filename)
- elseif ctx.stadium == 223 and ctx.home_team == 240 then --Sampdoria
- return string.format("%s\\%d\\%s", fileroot, 240, filename)
- elseif ctx.stadium == 222 and ctx.home_team == 323 then --Genoa
- return string.format("%s\\%d\\%s", fileroot, 323, filename)
- elseif ctx.stadium == 47 and ctx.home_team == 235 then --Empoli
- return string.format("%s\\%d\\%s", fileroot, 235, filename)
- end
- end
- local function init(ctx)
- if fileroot:sub(1,1)=='.' then
- fileroot = ctx.sider_dir .. fileroot
- end
- ctx.register("livecpk_make_key", make_key)
- ctx.register("livecpk_get_filepath", get_filepath)
- end
- return { init = init }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement