Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.white)
- image = paintutils.loadImage("LaPC1")
- paintutils.drawImage(image, 1, 1)
- sleep(0.1)
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.white)
- image = paintutils.loadImage("LaPC2")
- paintutils.drawImage(image, 1, 1)
- sleep(0.1)
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.white)
- image = paintutils.loadImage("LaPC3")
- paintutils.drawImage(image, 1, 1)
- sleep(0.1)
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.white)
- image = paintutils.loadImage("LaPC")
- paintutils.drawImage(image, 1, 1)
- term.setTextColor(256)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(8,1)
- print("The setup was created by REALDanishTMM")
- term.setBackgroundColor(256)
- term.setCursorPos(4,10)
- speed = 80
- string = " "
- textutils.slowPrint(string, speed)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.setCursorPos(10,12)
- speed = 80
- string = "Do you want to download the program?"
- textutils.slowPrint(string, speed)
- term.setTextColor(colors.white)
- term.setBackgroundColor(256)
- term.setCursorPos(10,14)
- print(" ")
- term.setCursorPos(10,15)
- print(" Download ")
- term.setCursorPos(10,16)
- print(" ")
- term.setCursorPos(10,17)
- print(" [X] ")
- term.setCursorPos(10,18)
- print(" ")
- term.setTextColor(colors.white)
- term.setBackgroundColor(256)
- term.setCursorPos(29,14)
- print(" ")
- term.setCursorPos(29,15)
- print(" Cancel ")
- term.setCursorPos(29,16)
- print(" ")
- term.setCursorPos(29,17)
- print(" [X] ")
- term.setCursorPos(29,18)
- print(" ")
- term.setBackgroundColor(colors.white)
- term.setCursorPos(1,1)
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "17,17" and button == 1 then
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(10,18)
- print(" ")
- term.setCursorPos(29,18)
- print(" ")
- sleep(0.1)
- term.setCursorPos(10,17)
- print(" ")
- term.setCursorPos(29,17)
- print(" ")
- sleep(0.1)
- term.setCursorPos(10,16)
- print(" ")
- term.setCursorPos(29,16)
- print(" ")
- sleep(0.1)
- term.setCursorPos(10,15)
- print(" ")
- term.setCursorPos(29,15)
- print(" ")
- sleep(0.1)
- term.setCursorPos(10,14)
- print(" ")
- term.setCursorPos(29,14)
- print(" ")
- sleep(0.1)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.white)
- term.setCursorPos(10,12)
- speed = 80
- string = "Do you want to download the program?"
- textutils.slowPrint(string, speed)
- sleep(0.1)
- term.setTextColor(colors.black)
- term.setCursorPos(10,12)
- print("Loading...")
- term.setCursorPos(4,10)
- term.setBackgroundColor(32)
- textutils.slowPrint(" ")
- if fs.exists("File") then
- sleep(0.1)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print(" ")
- sleep(0.1)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Downloading...")
- term.setCursorPos(4,10)
- term.setBackgroundColor(32)
- textutils.slowPrint(" ")
- term.setCursorPos(4,10)
- term.setBackgroundColor(32)
- textutils.slowPrint(" ")
- sleep(0.1)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(10,12)
- print(" ")
- if fs.exists("startup") then
- fs.delete("startup")
- end
- fs.copy("File", "startup")
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Download Finish.Checking Files...")
- sleep(5)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Check Files Finish. ")
- sleep(2)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Ejecting.... ")
- sleep(4)
- shell.run("eject left")
- shell.run("eject top")
- shell.run("eject bottom")
- shell.run("eject back")
- shell.run("eject right")
- shell.run("eject front")
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Eject Done. ")
- sleep(3)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Rebooting.... ")
- sleep(4)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Rebooting In 3... ")
- sleep(1)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Rebooting In 2... ")
- sleep(1)
- term.setCursorPos(10,12)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Rebooting In 1... ")
- sleep(1)
- os.reboot()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- else
- term.setBackgroundColor(colors.white)
- term.setCursorPos(10,12)
- print(" ")
- sleep(0.1)
- term.setCursorPos(10,12)
- print("The file is not available")
- sleep(2)
- os.reboot()
- end
- break
- end
- if XY == "36,17" and button == 1 then
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- shell.run("eject left")
- shell.run("eject top")
- shell.run("eject bottom")
- shell.run("eject back")
- shell.run("eject right")
- shell.run("eject front")
- term.clear()
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement