xxangel17xx

H.I.S.S-2

Apr 22nd, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.13 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local side = "bottom"
  3. local password1 = "angel"
  4. local password2 = "matrix"
  5. local passwordadmin = "adminaccess"
  6. term.clear()
  7. sleep(1)
  8. print("Loading...")
  9. sleep(2)
  10. print("H.I.S.S Loaded")
  11. print("Welcome to the Home Intelligent Security System.")
  12. print("To continue please enter your H.I.S.S Access code.")
  13. write("Code: ")
  14. local input = read("*")
  15. if input == password1 then
  16.  term.clear()
  17.  term.setCursorPos(1,1)
  18.  print("Password correct!")
  19.  print("Welcome Home Angel")
  20.  rs.setOutput(side,true)
  21.  sleep(6)
  22.  rs.setOutput(side,false)
  23.  os.reboot()
  24. end
  25. if input == password2 then
  26.  term.clear()
  27.  term.setCursorPos(1,1)
  28.  print("Password correct!")
  29.  print("Welcome Home Matrix")
  30.  rs.setOutput(side,true)
  31.  sleep(6)
  32.  rs.setOutput(side,false)
  33.  os.reboot()
  34. end
  35. if input == passwordadmin then
  36.  term.clear()
  37.  term.setCursorPos(1,1)
  38.  print("Password correct!")
  39.  print("Computer unlocking...")
  40.  print("Please type 'reboot' or 'shutdown' before leaving")
  41.  os.pullEvent(terminate)
  42.  
  43. else
  44.  term.clear()
  45.  term.setCursorPos(1,1)
  46.  print("Password incorrect!")
  47.  sleep(2)
  48.  os.reboot()
  49. end
Advertisement
Add Comment
Please, Sign In to add comment