Advertisement
Folstaria

Untitled

Jun 20th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. local color = colors.lime
  2.  
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. password = "pipboy"
  6. inverted = true
  7. side = "bottom"
  8. opentime = 5
  9.  
  10. term.setTextColor(color)
  11. rs.setOutput(side,inverted)
  12. print("--------------------------------------------------")
  13. print("---------------VAULT 8 DOOR CONTROLS--------------")
  14. print("--------------------------------------------------")
  15. print("-- ROBCO INDUSTRIES (TM) TERMLINK PROTOCOL --")
  16. print("-- ENTER PASSWORD NOW --")
  17. print("-- --")
  18. print("-- --")
  19. print("-- --")
  20. print("-- --")
  21. print("-- PASSWORD: --")
  22. print("-- [ ] --")
  23. print("-- --")
  24. print("-- --")
  25. print("-- --")
  26. print("-- --")
  27. print("-- --")
  28. print("-- ROBCO / VAULT-TEC UI Model 1.3 --")
  29. print("--------------------------------------------------")
  30. print("--------------------------------------------------")
  31.  
  32. term.setCursorPos(21,10)
  33. input = read("*", nil, 6)
  34. if input == password then
  35. if inverted == true then
  36. term.setCursorPos(8,12)
  37. print("Password Recognised. Door Opening.")
  38. rs.setOutput(side, false)
  39. sleep(opentime)
  40. os.reboot()
  41. end
  42. else
  43. term.setCursorPos(12,12)
  44. print("Password not Recognised.")
  45. sleep(1)
  46. os.reboot()
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement