Advertisement
Guest User

startup

a guest
Jan 24th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. while true do
  2.   term.clear()
  3.   term.setCursorPos(15,1)
  4.   textutils.slowPrint("Digite sua Senha Abaixo.")
  5.   print("")
  6.   term.setCursorPos(24,3)
  7.   local input = read("*")
  8.   if input == "frani" then
  9.     term.setCursorPos(20,5)
  10.     textutils.slowPrint("Senha Correta!")
  11.     print("")
  12.     sleep(1)
  13.     term.setCursorPos(2,5)
  14.     redstone.setOutput("bottom", true)
  15.     sleep(5)
  16.     redstone.setOutput("bottom", false)
  17.   else
  18.     term.clear()
  19.     term.setCursorPos(18,5)
  20.     textutils.slowPrint("Você Errou a Senha")
  21.     print("")
  22.     term.setCursorPos(17,7)
  23.     textutils.slowPrint("O Alarme Sera Ligado!")
  24.     print("")
  25.     sleep(2)
  26.     shell.run("alarme")
  27.     end
  28.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement