Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- print( "Copyright by Birog" )
- write( "Es wird nach Updates gesucht... " )
- local response = http.get("http://pastebin.com/raw.php?i=YS3BTKSr")
- if response then
- print("Update-suche erfolgreich!")
- local sSource = response.readAll()
- response.close()
- local file = fs.open( "firework", "r" )
- local sTarget = ""
- if file then
- sTarget = file.readAll()
- file.close()
- end
- if sSource ~= sTarget then
- term.write("Updates gefunden!")
- file = fs.open( "firework", "w" )
- file.write( sSource )
- file.close()
- print( "Wurde herruntergeladen als - firework - -Datei")
- print("Programm wird Neugestartet!")
- shell.run("firework")
- return
- else
- print("Es sind keine Updates vorhanden!")
- print("Programm wird gestartet!")
- sleep(3)
- clear()
- end
- else
- clear()
- print("ERROR! Informiere bitte Birog!!")
- clear()
- end
- --------------------------------------------------------------------------------------------------------
- os.startTimer(60)
- os.pullEvent(timer)
- a=0
- while a < 16 do
- print("Orange")
- redstone.setBundledOutput("back",colors.orange)
- sleep(0.75)
- print("black")
- redstone.setBundledOutput("back",colors.black)
- sleep(0.75)
- print("blue")
- redstone.setBundledOutput("back",colors.blue )
- sleep(0.75)
- print("brown")
- redstone.setBundledOutput("back",colors.brown )
- sleep(0.75)
- print("green")
- redstone.setBundledOutput("back",colors.green )
- sleep(0.75)
- print("gray")
- redstone.setBundledOutput("back",colors.gray )
- sleep(0.75)
- print("light blue")
- redstone.setBundledOutput("back",colors.lightBlue)
- sleep(0.75)
- print("light gray")
- redstone.setBundledOutput("back",colors.lightGray)
- sleep(0.75)
- print("lime")
- redstone.setBundledOutput("back",colors.lime)
- sleep(0.75)
- print("magenta")
- redstone.setBundledOutput("back",colors.magenta )
- sleep(0.75)
- print("Indigo")
- redstone.setBundledOutput("back",colors.cyan )
- sleep(0.75)
- print("pink")
- redstone.setBundledOutput("back",colors.pink )
- sleep(0.75)
- print("purple")
- redstone.setBundledOutput("back",colors.purple )
- sleep(0.75)
- print("red")
- redstone.setBundledOutput("back",colors.red )
- sleep(0.75)
- print("yellow")
- redstone.setBundledOutput("back",colors.yellow )
- sleep(0.75)
- print("white")
- redstone.setBundledOutput("back",colors.white)
- sleep(0.75)
- a=a+1
- end
- redstone.setBundledOutput("back",0)
- print("END")
- sleep(30)
- os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement