drProfessorGTA

ProfOS 1.0 Herunterfahren

Oct 23rd, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.45 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3.  
  4. id = os.getComputerID()
  5.  
  6.  
  7. if id == 0 then
  8. mon = peripheral.wrap("monitor_0")
  9. elseif id == 1 then
  10. mon = peripheral.wrap("monitor_1")
  11. end
  12.  
  13. mon.setTextScale(0.5)
  14.  
  15.  
  16.  
  17. shell.run("clear")
  18. print("Abmelden .")
  19. mon.clear()
  20. mon.setCursorPos(1,1)
  21. mon.write("Abmelden .")
  22. sleep(1.0)
  23.  
  24. shell.run("clear")
  25. print("Abmelden ..")
  26. mon.clear()
  27. mon.setCursorPos(1,1)
  28. mon.write("Abmelden ..")
  29. sleep(1.0)
  30.  
  31. shell.run("clear")
  32. print("Abmelden ...")
  33. mon.clear()
  34. mon.setCursorPos(1,1)
  35. mon.write("Abmelden ...")
  36. sleep(1.0)
  37.  
  38.  
  39. shell.run("clear")
  40. print("Abmelden .")
  41. mon.clear()
  42. mon.setCursorPos(1,1)
  43. mon.write("Abmelden .")
  44. sleep(1.0)
  45.  
  46. shell.run("clear")
  47. print("Abmelden ..")
  48. mon.clear()
  49. mon.setCursorPos(1,1)
  50. mon.write("Abmelden ..")
  51. sleep(1.0)
  52.  
  53. shell.run("clear")
  54. print("Abmelden ...")
  55. mon.clear()
  56. mon.setCursorPos(1,1)
  57. mon.write("Abmelden ...")
  58. sleep(1.0)
  59.  
  60.  
  61. shell.run("clear")
  62. print("Abmelden .")
  63. mon.clear()
  64. mon.setCursorPos(1,1)
  65. mon.write("Abmelden .")
  66. sleep(1.0)
  67.  
  68. shell.run("clear")
  69. print("Abmelden ..")
  70. mon.clear()
  71. mon.setCursorPos(1,1)
  72. mon.write("Abmelden ..")
  73. sleep(1.0)
  74.  
  75. shell.run("clear")
  76. print("Abmelden ...")
  77. mon.clear()
  78. mon.setCursorPos(1,1)
  79. mon.write("Abmelden ...")
  80. sleep(1.0)
  81.  
  82.  
  83. if id == 0 then
  84. sp1 = peripheral.wrap("speaker_0")
  85. sp2 = peripheral.wrap("speaker_1")
  86. elseif id == 1 then
  87. sp1 = peripheral.wrap("speaker_3")
  88. sp2 = peripheral.wrap("speaker_4")
  89. end
  90.  
  91. sp1.playSound("block.portal.travel")
  92. sp2.playSound("block.portal.travel")
  93.  
  94.  
  95.  
  96. shell.run("clear")
  97. print("PC wird heruntergefahren .")
  98. mon.clear()
  99. mon.setCursorPos(1,1)
  100. mon.write("PC wird heruntergefahren .")
  101. sleep(1.0)
  102.  
  103. shell.run("clear")
  104. print("PC wird heruntergefahren ..")
  105. mon.clear()
  106. mon.setCursorPos(1,1)
  107. mon.write("PC wird heruntergefahren ..")
  108. sleep(1.0)
  109.  
  110. shell.run("clear")
  111. print("PC wird heruntergefahren ...")
  112. mon.clear()
  113. mon.setCursorPos(1,1)
  114. mon.write("PC wird heruntergefahren ...")
  115. sleep(1.0)
  116.  
  117.  
  118. shell.run("clear")
  119. print("PC wird heruntergefahren .")
  120. mon.clear()
  121. mon.setCursorPos(1,1)
  122. mon.write("PC wird heruntergefahren .")
  123. sleep(1.0)
  124.  
  125. shell.run("clear")
  126. print("PC wird heruntergefahren ..")
  127. mon.clear()
  128. mon.setCursorPos(1,1)
  129. mon.write("PC wird heruntergefahren ..")
  130. sleep(1.0)
  131.  
  132. shell.run("clear")
  133. print("PC wird heruntergefahren ...")
  134. mon.clear()
  135. mon.setCursorPos(1,1)
  136. mon.write("PC wird heruntergefahren ...")
  137. sleep(1.0)
  138.  
  139.  
  140.  
  141. shell.run("clear")
  142. mon.clear()
  143.  
  144.  
  145. os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment