Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Designed for an 8 wide by 5 tall advanced monitor
- tSides = {"left","right","bottom","top","front","back"}
- for i = 1, #tSides do
- monitor = peripheral.wrap(tSides[i])
- if monitor then
- side = tSides[i]
- break
- end
- end
- --Prevents program termination
- os.pullEvent = os.pullEventRaw
- local currentTerm = term.current()
- --Redirects setup/install output to monitor (for artistic effect)
- local monitor = peripheral.wrap(side)
- if not fs.exists("boot") then
- term.setTextColor(colors.red)
- print("Warning: boot image missing!")
- print("Downloading image...")
- term.setTextColor(colors.white)
- shell.run("pastebin get edscQ8zU boot")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("boot image found!")
- term.setTextColor(colors.white)
- end
- local img = paintutils.loadImage("boot")
- term.redirect(monitor)
- paintutils.drawImage(img, 1,1)
- term.redirect(currentTerm)
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.orange)
- term.clear()
- print("Rolcam's Billboard Program V3")
- term.setTextColor(colors.white)
- print(" ")
- print("Beginning system check...")
- --Checks for missing signs and labels itself
- print("Checking signs...")
- if not fs.exists("image") then
- term.setTextColor(colors.red)
- print("Warning: beach image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get EZDcTC35 image")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("beach image found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("night") then
- term.setTextColor(colors.red)
- print("Warning: night image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get KizP2jiT night")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("night image found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("moon") then
- term.setTextColor(colors.red)
- print("Warning: moon image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get LL7rSBmx moon")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("moon image found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("village") then
- term.setTextColor(colors.red)
- print("Warning: village image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get ncJRFq5J village")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("village image found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("mars") then
- term.setTextColor(colors.red)
- print("Warning: mars image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get Xh9Lnr1u mars")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("mars image found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("bar") then
- term.setTextColor(colors.red)
- print("Warning: bar image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get T2r2qxNj bar")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("bar image found!")
- term.setTextColor(colors.white)
- end
- print("Sign check completed!")
- print("Checking for computer label")
- if os.getComputerLabel() == nil then
- term.setTextColor(colors.red)
- print("Warning: Computer is not labeled!")
- print("Labelling Computer")
- os.setComputerLabel("Billboard Comp")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("Computer is already labelled. Great!")
- term.setTextColor(colors.white)
- end
- print("System Check Completed!")
- sleep(1)
- print("Starting Billboard!")
- term.redirect(monitor)
- local img2 = paintutils.loadImage("image")
- local img3 = paintutils.loadImage("bar")
- local img4 = paintutils.loadImage("night")
- local img5 = paintutils.loadImage("moon")
- local img6 = paintutils.loadImage("village")
- local img7 = paintutils.loadImage("mars")
- sleep(0.5)
- x=1
- t=5
- while true do
- paintutils.drawImage(img2, 1, 1)
- sleep(t)
- paintutils.drawImage(img3, 1, 1)
- sleep(t)
- paintutils.drawImage(img4, 1, 1)
- sleep(t)
- paintutils.drawImage(img5, 1, 1)
- sleep(t)
- paintutils.drawImage(img6, 1, 1)
- sleep(t)
- paintutils.drawImage(img7, 1, 1)
- sleep(t)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement