Maxstripe

OneOs

Dec 22nd, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent = os.pullEventRaw
  2. branding = "Atlas"
  3. version = "1.0 Alpha"
  4. lockscreen = "Locked By: ", branding, " OS ", version
  5. protected = "Your Room,"
  6. owner = "Maxstripe."
  7. print("Locked By: ", branding, " OS ", version)
  8. correctpassword = "hub"
  9. correctusername = "porn"
  10. breakoutpassword = "update"
  11. local unlock = false
  12. while unlock == false do
  13.   write("Username: ")
  14.   local username = read()
  15.   term.clear()
  16.   term.setCursorPos(1,1)
  17.   print("Locked By: ", branding, " OS ", version)
  18.   if username == correctusername then
  19.     write("Password: ")
  20.     local password = read()
  21.     term.clear()
  22.     term.setCursorPos(1,1)
  23.     print()
  24.     if password == correctpassword then
  25.       term.clear()
  26.       term.setCursorPos(1,1)
  27.       write("Validating Credentials")
  28.       sleep(1)
  29.       write(".")
  30.       sleep(1)
  31.       write(".")
  32.       sleep(1)
  33.       write(".")
  34.       sleep(1)
  35.       term.clear()
  36.       term.setCursorPos(1,1)
  37.       print("Credentials Valid")
  38.       sleep(1)
  39.       term.clear()
  40.       term.setCursorPos(1,1)
  41.       print("Welcome to: ", protected, " ", owner)
  42.       redstone.setOutput("right", true)
  43. --      redstone.setOutput("left", true)
  44. --      redstone.setOutput("top", true)
  45. --      redstone.setOutput("bottom", true)
  46. --      redstone.setOutput("front", true)
  47. --      redstone.setOutput("back", true)
  48.       sleep(2.5)
  49.       redstone.setOutput("right", false)
  50. --      redstone.setOutput("left", false)
  51. --      redstone.setOutput("top", false)
  52. --      redstone.setOutput("bottom", false)
  53. --      redstone.setOutput("front", false)
  54. --      redstone.setOutput("back", false)
  55.       os.shutdown()
  56.       elseif password == breakoutpassword then
  57.         unlock = true
  58.         else
  59.           term.clear()
  60.           term.setCursorPos()
  61.           print("Incorrect Password")
  62.           sleep(60)
  63.           os.shutdown()
  64.           end
  65.     else
  66.       term.clear()
  67.       term.setCursorPos(1,1)
  68.       print("Invalid Username")
  69.       sleep(5)
  70.       os.reboot()
  71.       end
  72.     end
Add Comment
Please, Sign In to add comment