Advertisement
Guest User

Untitled

a guest
Mar 21st, 2012
1,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. --Made By Djblocksaway
  2. --Easy Lock Version 1.1
  3.  
  4. function os.pullEvent()
  5. local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
  6. if event == "terminate" then
  7. end
  8. return event, p1, p2, p3, p4, p5
  9. end
  10.  
  11. term.clear()
  12. term.setCursorPos(1,1)
  13. print "Easy Lock 1.1"
  14. print " "
  15. write ("Password: ")
  16.  
  17. correctpass = "123"
  18. pass = read("*")
  19.  
  20. if pass == (correctpass) then
  21. print " "
  22. write("Correct! You may enter!")
  23. redstone.setOutput("left", true)
  24. rs.setOutput("right",true)
  25. rs.setOutput("back",true)
  26. rs.setOutput("bottom",true)
  27. rs.setOutput("top",true)
  28. rs.setOutput("front",true)
  29. sleep(4)
  30. redstone.setOutput("left", false)
  31. rs.setOutput("back",false)
  32. rs.setOutput("top",false)
  33. rs.setOutput("right",false)
  34. rs.setOutput("bottom",false)
  35. rs.setOutput("front",false)
  36. os.reboot()
  37.  
  38. else
  39. print " "
  40. write("Incorrect! Rebooting!")
  41. sleep(2)
  42. os.reboot()
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement