Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. function wait(seconds, event)
  2. local waitdelay = os.startTimer(seconds)
  3. local chk, p1, p2, p3;
  4. repeat chk, p1, p2, p3 = os.pullEvent() until (event ~= nil and chk == event) or (chk == "timer" and p1 == waitdelay)
  5. return chk, p1, p2, p3
  6. end
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. textutils.slowPrint("Running startup Program...")
  10. wait(1)
  11. term.setCursorPos(1,1)
  12. term.clearLine()
  13. print("Running startup Program..")
  14. wait(1)
  15. term.setCursorPos(1,1)
  16. term.clearLine()
  17. print("Running startup Program...")
  18. wait(1)
  19. term.setCursorPos(1,1)
  20. term.clearLine()
  21. print("Running startup Program..")
  22. wait(1)
  23. term.setCursorPos(1,1)
  24. term.clearLine()
  25. print("Running startup Program...")
  26. wait(1)
  27. textutils.slowPrint("Processing Scripts...")
  28. wait(1)
  29. term.setCursorPos(1,2)
  30. term.clearLine()
  31. print("Processing Scripts..")
  32. wait(1)
  33. term.setCursorPos(1,2)
  34. term.clearLine()
  35. print("Processing Scripts...")
  36. wait(1)
  37. totalbytes = 3250187
  38. local count = 0
  39. repeat
  40. count = count + 325000
  41. print("Bytes Loaded: " .. count)
  42. wait(0.001)
  43. until count >= totalbytes
  44. textutils.slowPrint("35 folders detected.")
  45. wait(2)
  46. textutils.slowPrint("491 initial files loaded.")
  47. wait(2)
  48. textutils.slowPrint("Loading user made programs.")
  49. wait(1)
  50. textutils.slowPrint("Loading startup screen")
  51. wait(1)
  52. term.clear()
  53. pos1 = 30
  54. term.setCursorPos(pos1, 9)
  55. countt = 0
  56. repeat
  57. term.setCursorPos(pos1, 9)
  58. print("-")
  59. pos1 = pos1 - 1
  60. wait(0.5)
  61. until pos1 == 18
  62. term.clearLine()
  63.  
  64. term.setCursorPos(1,6)
  65. print([[
  66. _____ _____ ____ ____
  67. / ___/______ _/ _/ /_/ __ \/ __/
  68. / /__/ __/ _ / _/ __/ /_/ /\ \
  69. \___/_/ \_,_/_/ \__/\____/___/
  70. / / ___ ___ ____/ /__ ___/ /
  71. / /__/ _ \/ _ / _ / -_) _ /
  72. /____/\___/\_,_/\_,_/\__/\_,_/
  73.  
  74. ]])
  75. wait(4)
  76. wait(1)
  77. term.clear()
  78. term.setCursorPos(1,1)
  79. print("CraftOS 1.4")
  80. print("This computers ID id: " .. os.getComputerID())
  81. print("------------------------")
  82. -- Height, 18
  83. -- Width, 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement