Advertisement
Guest User

startup

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