Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Installs World Of Tanks--
- w,h = term.getSize()
- folders = {
- "Tanks"
- }
- files = {
- "Tanks/player.info",
- "Tanks/player.stat",
- "Tanks/intro",
- "Tanks/singleplayer",
- "Tanks/custom",
- "Tanks/stats",
- "Tanks/spcam",
- "Tanks/spwaves",
- "Tanks/bgt",
- "Tanks/bgtw"
- }
- httpUrl = {
- "https://sites.google.com/site/dayrider10official/gamesdownload/player.info",
- "https://sites.google.com/site/dayrider10official/gamesdownload/player.stat",
- "https://sites.google.com/site/dayrider10official/gamesdownload/intro",
- "https://sites.google.com/site/dayrider10official/gamesdownload/singleplayer",
- "https://sites.google.com/site/dayrider10official/gamesdownload/custom",
- "https://sites.google.com/site/dayrider10official/gamesdownload/stats",
- "https://sites.google.com/site/dayrider10official/gamesdownload/spcam",
- "https://sites.google.com/site/dayrider10official/gamesdownload/spwaves",
- "https://sites.google.com/site/dayrider10official/gamesdownload/bgt",
- "https://sites.google.com/site/dayrider10official/gamesdownload/bgtw"
- }
- for i, v in pairs(folders) do
- fs.makeDir(v)
- end
- function install()
- for i,v in pairs(files) do
- download = http.get(httpUrl[i])
- h = fs.open(v, "w")
- h.write(download.readAll())
- h.flush()
- h.close()
- end
- end
- function clearLine()
- sleep(0.5)
- term.setCursorPos(w/2 - 12, 6)
- term.clearLine()
- end
- function gatherFiles()
- createBg()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/bgt")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/bgtw")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/intro")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/player.stat")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/player.info")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/custom")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/singleplayer")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/spcam")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/spwaves")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/stats")
- clearLine()
- end
- function createBg()
- term.clear()
- term.setBackgroundColor(colors.lightBlue)
- term.clear()
- term.setCursorPos(w/2 - 4, 1)
- print("Install")
- term.setCursorPos(w/2 - 10, 4)
- print("Preparing To Install...")
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/bgt")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/bgtw")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/intro")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/player.stat")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/player.info")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/custom")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/singleplayer")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/spcam")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/spwaves")
- clearLine()
- term.setCursorPos(w/2 - 12, 6)
- print("Gathering: Tanks/stats")
- clearLine()
- term.setCursorPos(w/2 - 10, 4)
- term.clearLine()
- print("Installing...")
- install()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- term.clear()
- end
- createBg()
Advertisement
Add Comment
Please, Sign In to add comment