Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Clear screen
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- print("Downloading Zanqual API v0.3\nby DaloDaloDalo/XxCubegamerxX")
- sleep(3)
- -- If isn't installed
- if not fs.exists("/ZanqualScript") then
- -- Pastebin shortcut
- local function pastebin(id,name) return shell.run("pastebin get "..id.." "..name) end
- -- Downloaded Files
- pastebin("TGZL0806","ZanqualScript/Zanqual_API_Loader_Startup")
- pastebin("fTYsJbFD","ZanqualScript/Zanqual_API_Loader")
- pastebin("MEgdAJHF","ZanqualScript/Zanqual")
- pastebin("D4tNyMnZ","changelog")
- -- Print successfully installed
- print([[
- Successfully downloaded Zanqual Script
- Rebooting to install in 5 seconds
- ]])
- sleep(5)
- oldReboot = os.reboot
- oldShutd = os.shutdown
- os.reboot = function()
- if fs.exists("startup") then
- fs.move("startup","startupBackup")
- end
- fs.copy("ZanqualScript/Zanqual_API_Loader_Startup","startup")
- oldReboot()
- end
- os.reboot()
- -- If is installed
- else
- -- Print already installed
- print([[
- Already installed Zanqual Script
- Press any key to exit
- ]])
- end
- -- Waits for any key
- os.pullEventRaw("key")
- term.clear()
- term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement