Advertisement
DOGGYWOOF

Untitled

Aug 22nd, 2024 (edited)
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.36 KB | None | 0 0
  1. -- Function to clear the screen and pause
  2. local function clearScreen()
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. term.setBackgroundColor(colors.black)
  6. term.setTextColor(colors.white)
  7. end
  8.  
  9. -- Function to print the sad face with normal and glitchy effects
  10. local function printSadFace(normal)
  11. term.setBackgroundColor(normal and colors.blue or colors.black)
  12. term.setTextColor(normal and colors.white or colors.red)
  13. term.clear()
  14.  
  15. -- Normal sad face
  16. if normal then
  17. print(" ___")
  18. sleep(0.2)
  19. print("__ / _/")
  20. sleep(0.2)
  21. print("\\/ |/ ")
  22. sleep(0.2)
  23. print("__ |\\_ ")
  24. sleep(0.2)
  25. print("\\/ \\__\\")
  26. sleep(0.5)
  27. else
  28. -- Glitchy sad face
  29. for i = 1, 10 do
  30. term.setBackgroundColor(colors.blue)
  31. term.setTextColor(i % 2 == 0 and colors.red or colors.white) -- Glitchy text color
  32. term.clear()
  33. print(" ___")
  34. sleep(0.05)
  35. print("__ / _/")
  36. sleep(0.05)
  37. print("\\/ |/ ")
  38. sleep(0.05)
  39. print("__ |\\_ ")
  40. sleep(0.05)
  41. print("\\/ \\__\\")
  42. sleep(0.2 + math.random() * 0.3) -- Random delay
  43. term.setBackgroundColor(colors.blue)
  44. term.setTextColor(colors.white)
  45. term.clear()
  46. end
  47. end
  48. end
  49.  
  50. -- Function to display the BSOD message with normal, corrupted, and scary effects
  51. local function printBSODMessage(normal)
  52. term.clear()
  53. term.setCursorPos(1, 1)
  54. term.setBackgroundColor(normal and colors.blue or colors.black)
  55. term.setTextColor(normal and colors.white or colors.red)
  56. term.clear()
  57.  
  58. -- Normal BSOD message
  59. if normal then
  60. print(" ___")
  61. sleep(0.1)
  62. print("__ / _/")
  63. sleep(0.1)
  64. print("\\/ |/ ")
  65. sleep(0.1)
  66. print("__ |\\_ ")
  67. sleep(0.1)
  68. print("\\/ \\__\\")
  69. sleep(1)
  70. print("")
  71. print("Your PC ran into a problem and needs to restart.")
  72. sleep(1)
  73. print("We're just collecting some error info, and then we'll restart for you.")
  74. sleep(1)
  75. print("")
  76. print("99% complete")
  77. sleep(1)
  78. else
  79. -- Corrupted BSOD message with glitches
  80. local messages = {
  81. "Your PC ran into a problem and needs to restart.",
  82. "We're just collecting some error info, and then we'll restart for you.",
  83. "",
  84. "9% complete",
  85. "29% complete",
  86. "55% complete",
  87. "77% complete",
  88. "99% complete",
  89. "",
  90. "For more information about this issue and possible fixes, visit:",
  91. "https://www.windows.com/stopcode",
  92. "",
  93. "If you call a support person, give them this info:",
  94. "Stop code: CRITICAL_PROCESS_DIED"
  95. }
  96.  
  97. for i, message in ipairs(messages) do
  98. -- Randomly set colors and introduce artifacts
  99. term.setBackgroundColor(math.random(2) == 1 and colors.blue or colors.black)
  100. term.setTextColor(math.random(2) == 1 and colors.white or colors.red)
  101. term.clear()
  102.  
  103. -- Add random artifacts to the text
  104. if math.random() > 0.8 then
  105. message = message .. " " .. string.char(math.random(32, 126)) -- Add random characters
  106. end
  107.  
  108. print(message)
  109. sleep(0.2 + math.random() * 0.5) -- Unpredictable delay
  110. end
  111.  
  112. -- Intense glitchy screen effect
  113. for i = 1, 10 do
  114. term.setBackgroundColor(math.random(2) == 1 and colors.blue or colors.black)
  115. term.setTextColor(math.random(2) == 1 and colors.white or colors.red)
  116. term.clear()
  117. sleep(0.05 + math.random() * 0.1) -- Rapid flickering
  118. end
  119. end
  120. end
  121.  
  122. -- Function to display the final normal BSOD with a disturbing twist and flickering effect
  123. local function printFinalNormalBSODWithFlicker()
  124. term.clear()
  125. term.setCursorPos(1, 1)
  126. term.setBackgroundColor(colors.blue)
  127. term.setTextColor(colors.white)
  128. term.clear()
  129.  
  130. -- Display a normal BSOD message
  131. print(" ___")
  132. sleep(0.1)
  133. print("__ / _/")
  134. sleep(0.1)
  135. print("\\/ |/ ")
  136. sleep(0.1)
  137. print("__ |\\_ ")
  138. sleep(0.1)
  139. print("\\/ \\__\\")
  140. sleep(1)
  141. print("")
  142. print("Your PC ran into a problem and needs to restart.")
  143. sleep(1)
  144. print("We're just collecting some error info, and then we'll restart for you.")
  145. sleep(1)
  146. print("")
  147. print("99% complete")
  148. sleep(1)
  149.  
  150. -- Display the final message normally
  151. print("")
  152. print("For more information about this issue and possible fixes, visit:")
  153. print("https://www.windows.com/stopcode")
  154. print("")
  155. print("If you call a support person, give them this info:")
  156. print("Stop code: CRITICAL_PROCESS_DIED")
  157.  
  158. -- Short pause before the twist
  159. sleep(2)
  160.  
  161. -- Final flickering effect with disturbing message
  162. for i = 1, 30 do
  163. term.setBackgroundColor(i % 2 == 0 and colors.red or colors.black)
  164. term.setTextColor(colors.white)
  165. term.clear()
  166. print("UR COMPUTER IS NOW UNDER MY CONTROL")
  167. sleep(0.1) -- Short flickering interval
  168. end
  169.  
  170. -- Add additional disturbing messages
  171. term.setBackgroundColor(colors.black)
  172. term.setTextColor(colors.red)
  173. term.clear()
  174. print("ERROR: UNABLE TO RESTART")
  175. sleep(1)
  176. print("SYSTEM CORRUPTION DETECTED")
  177. sleep(1)
  178. print("CONTACT SUPPORT IMMEDIATELY")
  179. sleep(1)
  180. print("WARNING: MALICIOUS SOFTWARE DETECTED")
  181. sleep(1)
  182. print("SECURITY BREACH: ACTIVATING LOCKDOWN")
  183. sleep(1)
  184. print("ALL COMMUNICATIONS MONITORED")
  185. sleep(1)
  186. print("YOU ARE BEING WATCHED")
  187. sleep(1)
  188. print("SEND HELP... IF YOU CAN")
  189.  
  190. -- Reboot the ComputerCraft computer
  191. sleep(5)
  192. os.reboot()
  193. end
  194.  
  195. -- Start normal, increase scare, return to normal, and end with a twist
  196. clearScreen()
  197. sleep(1) -- Black screen delay
  198.  
  199. -- Normal start
  200. printSadFace(true)
  201. printBSODMessage(true)
  202.  
  203. -- Increasingly scary
  204. sleep(1)
  205. printSadFace(false)
  206. printBSODMessage(false)
  207.  
  208. -- Return to normal
  209. sleep(1)
  210. printSadFace(true)
  211. printFinalNormalBSODWithFlicker()
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement