pfgpastebin

CLI download

Feb 4th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.28 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. function sprint(msg)
  3.     textutils.slowPrint(msg)
  4. end
  5. if(term.isColor())then
  6.     if(http)then
  7.         term.setBackgroundColor(colors.white)
  8.         term.setTextColor(colors.black)
  9.         term.clear()
  10.         term.setCursorPos(1,1)
  11.         print("Credits:\nGame: pfg\ncPrint API: jesusthekiller (Banned from CC forum)")
  12.         sleep(5)
  13.         term.setBackgroundColor(colors.white)
  14.         term.setTextColor(colors.black)
  15.         term.clear()
  16.         term.setCursorPos(1,1)
  17.         write("Creating folder API")
  18.         fs.makeDir("CLI/API")
  19.         print("...Complete")
  20.         write("Creating folder Usr")
  21.         fs.makeDir("CLI/Usr")
  22.         print("...Complete")
  23.         write("Creating folder Apps")
  24.         fs.makeDir("CLI/Apps")
  25.         print("...Complete")
  26.         write("Downloading OS\n")
  27.         shell.run("pastebin get zFyHREzS CLI/OS")
  28.         print("...Complete")
  29.         write("Downloading Updater\n")
  30.         shell.run("pastebin get xbAVfyQs update")
  31.         print("...Complete")
  32.         write("Downloading cPrint API\n")
  33.         shell.run("pastebin get QR1qTMtm CLI/API/cprint")
  34.         print("...Complete")
  35.         write("Locking you into this OS")
  36.         startup=fs.open("startup","w")
  37.         startup.write('shell.run("CLI/OS")')
  38.         startup.close()
  39.         print("...Complete")
  40.         write("Rebooting")
  41.         for i = 1, 4, 1 do
  42.             write(".")
  43.             sleep(1)
  44.         end
  45.         term.clear()
  46.         term.setCursorPos(1,1)
  47.         sprint("Hi.")
  48.         sleep(5)
  49.         sprint("I'm ")
  50.         term.setBackgroundColor(colors.black)
  51.         term.setTextColor(colors.red)
  52.         print("lua:53: attempt to call nil")
  53.         term.setTextColor(colors.white)
  54.         write("> ")
  55.         sleep(3)
  56.         sprint("install")
  57.         term.setBackgroundColor(colors.white)
  58.         term.setTextColor(colors.black)
  59.         term.clear()
  60.         sleep(1)
  61.         term.setCursorPos(1,1)
  62.         sprint("Stupid errors!")
  63.         sleep(3)
  64.         sprint("Anyway, thanks for installing my os")
  65.         sleep(5)
  66.         sprint("Currently, it's just a basic command line, but I'll be sending you code packages as I make them")
  67.         sleep(5)
  68.         sprint("Your computer will restart a few times during the installation")
  69.         sleep(5)
  70.         write("Restart")
  71.         textutils.slowWrite(" 321")
  72.         os.reboot()
  73.     else
  74.         print("Please enable HTTP in your config. I have no idea how you downloaded this anyway")
  75.     end
  76. else
  77.     print("You need an advanced computer to see it say work in progress")
  78. end
Add Comment
Please, Sign In to add comment