Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cPrint = function(text)
- local x, y = term.getSize()
- local x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- print(text)
- end
- if term.isColor() then
- shell.run("clear")
- cPrint("Installing PieCinema")
- cPrint("Please Wait")
- sleep(2)
- fs.delete("startup")
- fs.delete("piecinema")
- shell.run("pastebin get pX1n482D startup")
- shell.run("pastebin get x0yd4h9D piecinema/logo")
- shell.run("pastebin get FRJwLjg7 piecinema/api/nfal")
- shell.run("pastebin get A7PsGvVk piecinema/welcome.nfa")
- shell.run("clear")
- cPrint("PieCinema Installed! Rebooting in 5 seconds.")
- sleep(5)
- os.reboot()
- else
- shell.run("clear")
- cPrint("PieCinema Requires an Advanced Computer!")
- cPrint("Sorry for the inconvenience. Rebooting...")
- sleep(5)
- os.reboot()
- end
- --[[if term.isColor() then --If Adv. Computer
- shell.run("clear")
- cPrint("PieCinema Installer")
- print()
- cPrint("Install PieCinema?")
- print()
- write("yes or no (no caps): ")
- install = read()
- if install == "yes" then
- shell.run("clear")
- cPrint("Installing PieCinema")
- cPrint("Please Wait")
- sleep(2)
- fs.delete("startup")
- fs.delete("piecinema")
- shell.run("pastebin get pX1n482D startup")
- shell.run("pastebin get x0yd4h9D piecinema/logo")
- shell.run("pastebin get FRJwLjg7 piecinema/api/nfal")
- shell.run("pastebin get A7PsGvVk piecinema/welcome.nfa")
- shell.run("clear")
- cPrint("PieCinema Installed! Rebooting in 5 seconds.")
- sleep(5)
- os.reboot()
- elseif install == "no" then
- shell.run("clear")
- cPrint("Sorry to see you go :(")
- cPrint("Rebooting...")
- sleep(1)
- os.reboot()
- end
- else --If not Adv. Computer
- shell.run("clear")
- cPrint("PieCinema Requires an Advanced Computer!")
- cPrint("Sorry for the inconvenience. Rebooting...")
- sleep(5)
- os.reboot()
- end--]]
Advertisement
Add Comment
Please, Sign In to add comment