Advertisement
Guest User

startup

a guest
Mar 9th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. localoldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3.  
  4. local p = "Tornado"
  5. local u = "Admin"
  6.  
  7. while true do
  8.   sleep(0.1)
  9.   term.clear()
  10.   term.setCursorPos(12,1)
  11.   write("Vault Door Security Console")
  12.   term.setCursorPos(1,2)
  13.   write("---------------------------------------------------")
  14.   term.setCursorPos(15,7)
  15.   write("Username: ")
  16.   input = read()
  17.  
  18.   if input == u then
  19.     term.setCursorPos(15,8)
  20.     write("Password: ")
  21.     input = read("*")
  22.    
  23.     if input == p then
  24.       term.clear()
  25.       term.setCursorPos(13,7)
  26.       shell.run("Door")
  27.       break
  28.       end
  29.    end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement