TheDrunx

startupbank

May 19th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local side = "left"
  3. local password = "lexbank"
  4. local opentime = 4
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print ("")
  8. print (" National Lexminister")
  9. print ("")
  10. print (" HostBukkit RP Banking Systems")
  11. print (" Copyright 1990 - 2012")
  12. print ("")
  13. print (" __________________________________")
  14. print (" | |")
  15. print (" | Remember: Unauthorised access |")
  16. print (" | is prohibited and punishable |")
  17. print (" | by death. Use at your own risk. |")
  18. print (" |__________________________________|")
  19. print ("")
  20. write (" Please enter password: ")
  21. local input = read("*")
  22. if input == password then
  23. print ("")
  24. print (" Password Correct! Door now opening...")
  25. rs.setOutput (side, true)
  26. sleep(opentime)
  27. print (" ...door is now closed. Have a nice day!")
  28. rs.setOutput (side, false)
  29. sleep(2)
  30. os.reboot()
  31. else
  32. print ("")
  33. print (" Password Incorrect!")
  34. sleep(2)
  35. print (" Restarting system...")
  36. sleep(2)
  37. os.reboot()
  38. end
Add Comment
Please, Sign In to add comment