Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Designed for an 8 wide by 5 tall advanced monitor
- --Change this to the side the monitor is on
- side = "back"
- --Prevents program termination
- os.pullEvent = os.pullEventRaw
- --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.restore()
- term.setBackgroundColor(colors.green)
- term.setTextColor(colors.red)
- term.clear()
- print("Rolcam's Billboard Program V3 - Xmas Edition")
- term.setTextColor(colors.white)
- print(" ")
- print("Beginning system check...")
- --Checks for missing signs and labels itself
- print("Checking signs...")
- if not fs.exists("beach") then
- term.setTextColor(colors.red)
- print("Warning: beach image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get F8hWPxD1 beach")
- 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("tree") then
- term.setTextColor(colors.red)
- print("Warning: Christmas tree 1/3 image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get C4p7xrWd tree")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("Christmas tree image 1/3 found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("tree2") then
- term.setTextColor(colors.red)
- print("Warning: Christmas tree image 2/3 missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get 1v1fPcth tree2")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("Christmas tree image 2/3 found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("tree3") then
- term.setTextColor(colors.red)
- print("Warning: Christmas tree image 3/3 missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get YAYejpSW tree3")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("Christmas tree image 3/3 found!")
- term.setTextColor(colors.white)
- end
- if not fs.exists("snowflake") then
- term.setTextColor(colors.red)
- print("Warning: snowflake image missing!")
- term.setTextColor(colors.white)
- print("Downloading image...")
- shell.run("pastebin get XbLRZ99h snowflake")
- term.setTextColor(colors.green)
- print("File downloaded")
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.green)
- print("snowflake 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 dxZLBDSR 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
- --Downloads the slot hall signs if this board is configured for the slot hall
- 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)
- img2 = paintutils.loadImage("beach")
- img3 = paintutils.loadImage("tree")
- img32 = paintutils.loadImage("tree2")
- img33 = paintutils.loadImage("tree3")
- img4 = paintutils.loadImage("snowflake")
- img5 = paintutils.loadImage("village")
- sleep(0.5)
- t=5
- while true do
- paintutils.drawImage(img2, 1, 1)
- sleep(t)
- -- Animated Christmas Tree
- yCoord = -12
- while yCoord < 2 do
- paintutils.drawImage(img3, 1, yCoord)
- yCoord = yCoord + 1
- sleep(0.25)
- end
- xTime = 5
- while xTime > 0 do
- paintutils.drawImage(img32, 1, 1)
- sleep(0.25)
- paintutils.drawImage(img3, 1, 1)
- sleep(0.25)
- paintutils.drawImage(img33, 1, 1)
- sleep(0.25)
- paintutils.drawImage(img3, 1, 1)
- sleep(0.25)
- xTime = xTime - 1
- end
- paintutils.drawImage(img4, 1, 1)
- sleep(t)
- paintutils.drawImage(img5, 1, 1)
- sleep(t)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement