Advertisement
Guest User

startup

a guest
Jan 26th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.42 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Welcome to Mares"); term.setCursorPos(1,2)
  5. sleep(3)
  6. print("Feeding Mares"); term.setCursorPos(14,2); textutils.slowPrint("...",1)
  7. sleep(3)
  8. print("Observing Mares"); term.setCursorPos(16,3); textutils.slowPrint("...",1)
  9. sleep(4)
  10. print("Petting Mares"); term.setCursorPos(14,4); textutils.slowPrint("...",1)
  11. sleep(6)
  12. print("Finding Bucket"); term.setCursorPos(15,5); textutils.slowPrint("...",1)
  13. sleep(6)
  14. print("Mounting Mare"); term.setCursorPos(14,6); textutils.slowPrint("...",1)
  15. sleep(6)
  16. print("Hope you like that")
  17. sleep(2)
  18. print("End of fanatasy")
  19. sleep(2)
  20. term.clear()
  21. term.setCursorPos(1,1)
  22. p = "password"
  23. print("Welcome to Mare Security Corp.")
  24. print("Version 0.78")
  25. print("+---------------------+")
  26. print("|Username:            |")
  27. print("|Password:            |")
  28. print("+---------------------+")
  29. term.setCursorPos(14,4)
  30. print("Admin")
  31. term.setCursorPos(14,5)
  32. pt = read("*")
  33. if pt == (p) then
  34. term.setCursorPos(1,7)
  35. print("Logging in"); term.setCursorPos(11,7); textutils.slowPrint("...",1); term.setCursorPos(11,7); textutils.slowPrint("___",1)
  36. term.setCursorPos(1,8)
  37. sleep(2)
  38. print("Welcome User!")
  39. sleep(2)
  40. term.clear()
  41. term.setCursorPos(1,1)
  42. elseif pt == "admin" then
  43. write("Admin Mode")
  44. else
  45. term.clear()
  46. print("Incorrect Loggin! Shutting Down!"); term.setCursorPos(1,2)
  47. textutils.slowPrint("...",1)
  48. os.reboot()
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement