Advertisement
Rolcam

Legacy Mall Billboard Program - Condemned Network

Feb 3rd, 2024 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. This program is designed for use with Computercraft
  3. This is a legacy version of the billboard program designed for use in Minecraft 1.6.4
  4. Custom version for: The Condemned Network - Tekkit Main (1.6.4) player mall
  5. Billboard Specs: 8 blocks wide by 5 blocks tall advanced monitor
  6.  
  7. Programmed by Rolcam
  8. You can copy/modify this program as you wish, just please leave the documentation intact
  9.  
  10. ]]--
  11. --Change this to the side the monitor is on
  12. side = "right"
  13. -- Time variable for how long (in seconds) to display each advert
  14. t = 5
  15. --Redirects setup/install output to monitor (for artistic effect)
  16. local monitor = peripheral.wrap(side)
  17. if not fs.exists("boot") then
  18.     term.setTextColor(colors.red)
  19.     print("Warning: boot image missing!")
  20.     print("Downloading image...")
  21.     term.setTextColor(colors.white)
  22.     shell.run("pastebin get edscQ8zU boot")
  23.     term.setTextColor(colors.green)
  24.     print("Main boot image downloaded.")
  25.     term.setTextColor(colors.white)
  26. else
  27.     term.setTextColor(colors.green)
  28.     print("boot image found!")
  29.     term.setTextColor(colors.white)
  30. end
  31. local img = paintutils.loadImage("boot")
  32. term.redirect(monitor)
  33. paintutils.drawImage(img, 1,1)
  34. term.restore()
  35. term.setBackgroundColor(colors.blue)
  36. term.setTextColor(colors.orange)
  37. term.clear()
  38. print("Rolcam's Billboard Program V3")
  39. term.setTextColor(colors.white)
  40. print(" ")
  41. print("Beginning system check...")
  42. --Checks for missing signs and labels itself
  43. print("Checking signs...")
  44. if not fs.exists("image") then
  45.     term.setTextColor(colors.red)
  46.     print("Warning: advert image missing!")
  47.     term.setTextColor(colors.white)
  48.     print("Downloading image...")
  49.     shell.run("pastebin get EZDcTC35 image")
  50.     term.setTextColor(colors.green)
  51.     print("File downloaded")
  52.     term.setTextColor(colors.white)
  53. else
  54.     term.setTextColor(colors.green)
  55.     print("beach image found!")
  56.     term.setTextColor(colors.white)
  57. end
  58.  
  59. if not fs.exists("timnoot") then
  60.     term.setTextColor(colors.red)
  61.     print("Warning: timnoot's advert missing!")
  62.     term.setTextColor(colors.white)
  63.     print("Downloading image...")
  64.     shell.run("pastebin get f0u7ttWn timnoot")
  65.     term.setTextColor(colors.green)
  66.     print("File downloaded")
  67.     term.setTextColor(colors.white)
  68. else
  69.     term.setTextColor(colors.green)
  70.     print("timnoot's advert found!")
  71.     term.setTextColor(colors.white)
  72. end
  73.  
  74. if not fs.exists("XpqUUpqX") then
  75.     term.setTextColor(colors.red)
  76.     print("Warning: XpqUUpqX's advert missing!")
  77.     term.setTextColor(colors.white)
  78.     print("Downloading image...")
  79.     shell.run("pastebin get fk2QQhw4 XpqUUpqX")
  80.     term.setTextColor(colors.green)
  81.     print("File downloaded")
  82.     term.setTextColor(colors.white)
  83. else
  84.     term.setTextColor(colors.green)
  85.     print("XpqUUpqX's advert found!")
  86.     term.setTextColor(colors.white)
  87. end
  88.  
  89. if not fs.exists("mall") then
  90.     term.setTextColor(colors.red)
  91.     print("Warning: Mall sign is missing!")
  92.     term.setTextColor(colors.white)
  93.     print("Downloading image...")
  94.     shell.run("pastebin get k1dsWddA mall")
  95.     term.setTextColor(colors.green)
  96.     print("File downloaded")
  97.     term.setTextColor(colors.white)
  98. else
  99.     term.setTextColor(colors.green)
  100.     print("Mall sign image found!")
  101.     term.setTextColor(colors.white)
  102. end
  103. mallImg = paintutils.loadImage("mall")
  104.  
  105. print("Sign check completed!")
  106. print("Checking for computer label")
  107. if os.getComputerLabel() == nil then
  108.     term.setTextColor(colors.red)
  109.     print("Warning: Computer is not labeled!")
  110.     term.setTextColor(colors.white)
  111.     print("Labelling Computer")
  112.     os.setComputerLabel("Mall - Billboard")
  113. else
  114.     term.setTextColor(colors.green)
  115.     print("Computer is already labelled. Great!")
  116.     term.setTextColor(colors.white)
  117. end
  118. print("System Check Completed!")
  119. print("Starting Billboard!")
  120.  
  121. term.redirect(monitor)
  122. adSign = paintutils.loadImage("image")
  123. tnAd = paintutils.loadImage("timnoot")
  124. XpqAd = paintutils.loadImage("XpqUUpqX")
  125. while true do
  126.     paintutils.drawImage(mallImg, 1, 1)
  127.     sleep(10)
  128.     paintutils.drawImage(adSign, 1, 1)
  129.     sleep(t)
  130.     paintutils.drawImage(mallImg, 1, 1)
  131.     sleep(10)
  132.     paintutils.drawImage(tnAd, 1, 1)
  133.     sleep(t)
  134.     paintutils.drawImage(mallImg, 1, 1)
  135.     sleep(10)
  136.     paintutils.drawImage(XpqAd, 1, 1)
  137.     sleep(t)
  138.  
  139. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement