Advertisement
Guest User

password

a guest
Feb 9th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. term.clear()
  2. while true do
  3.  term.setCursorPos(16,8)
  4.  term.setTextColor(colors.green)
  5.  write("Password: ")
  6.  term.setTextColor(colors.white)
  7.  Password = read("*")
  8.  if Password == "eva" then
  9.  term.setCursorPos(16,10)
  10.  term.setTextColor(colors.blue)
  11.  print("Welcome Home!")
  12.  term.setTextColor(colors.white)
  13.  redstone.setOutput("left",false)
  14.  os.sleep(4)
  15.  redstone.setOutput("left",true)
  16.  term.clear()
  17.  term.setCursorPos(1,1)
  18.  elseif Password == "backdoor" then
  19.  term.setCursorPos(10,10)
  20.  term.setTextColor(colors.cyan)
  21.  print("Brute force sucessful, door opening!")
  22.  term.setTextColor(colors.white)
  23.  redstone.setOutput("left",false)
  24.  os.sleep(4)
  25.  redstone.setOutput("left",true)
  26.  term.clear()
  27.  term.setCursorPos(1,1)
  28.  else
  29.  term.clear()
  30.  term.setCursorPos(16,4)
  31.  term.setTextColor(colors.red)
  32.   print("Password Incorrect!")
  33.   term.setTextColor(colors.white)
  34.   os.sleep(1)
  35.   term.clear()
  36.  end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement