Advertisement
Birog

Firework

Oct 26th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5. print( "Copyright by Birog" )
  6. write( "Es wird nach Updates gesucht... " )
  7. local response = http.get("http://pastebin.com/raw.php?i=YS3BTKSr")
  8. if response then
  9. print("Update-suche erfolgreich!")
  10. local sSource = response.readAll()
  11. response.close()
  12. local file = fs.open( "firework", "r" )
  13. local sTarget = ""
  14. if file then
  15. sTarget = file.readAll()
  16. file.close()
  17. end
  18. if sSource ~= sTarget then
  19. term.write("Updates gefunden!")
  20. file = fs.open( "firework", "w" )
  21. file.write( sSource )
  22. file.close()
  23. print( "Wurde herruntergeladen als - firework - -Datei")
  24. print("Programm wird Neugestartet!")
  25. shell.run("firework")
  26. return
  27. else
  28. print("Es sind keine Updates vorhanden!")
  29. print("Programm wird gestartet!")
  30. sleep(3)
  31. clear()
  32. end
  33. else
  34. clear()
  35. print("ERROR! Informiere bitte Birog!!")
  36. clear()
  37. end
  38. --------------------------------------------------------------------------------------------------------
  39.  
  40. os.startTimer(60)
  41. os.pullEvent(timer)
  42.  
  43. a=0
  44. while a < 16 do
  45. print("Orange")
  46. redstone.setBundledOutput("back",colors.orange)
  47. sleep(0.75)
  48. print("black")
  49. redstone.setBundledOutput("back",colors.black)
  50. sleep(0.75)
  51. print("blue")
  52. redstone.setBundledOutput("back",colors.blue )
  53. sleep(0.75)
  54. print("brown")
  55. redstone.setBundledOutput("back",colors.brown )
  56. sleep(0.75)
  57. print("green")
  58. redstone.setBundledOutput("back",colors.green )
  59. sleep(0.75)
  60. print("gray")
  61. redstone.setBundledOutput("back",colors.gray )
  62. sleep(0.75)
  63. print("light blue")
  64. redstone.setBundledOutput("back",colors.lightBlue)
  65. sleep(0.75)
  66. print("light gray")
  67. redstone.setBundledOutput("back",colors.lightGray)
  68. sleep(0.75)
  69. print("lime")
  70. redstone.setBundledOutput("back",colors.lime)
  71. sleep(0.75)
  72. print("magenta")
  73. redstone.setBundledOutput("back",colors.magenta )
  74. sleep(0.75)
  75. print("Indigo")
  76. redstone.setBundledOutput("back",colors.cyan )
  77. sleep(0.75)
  78. print("pink")
  79. redstone.setBundledOutput("back",colors.pink )
  80. sleep(0.75)
  81. print("purple")
  82. redstone.setBundledOutput("back",colors.purple )
  83. sleep(0.75)
  84. print("red")
  85. redstone.setBundledOutput("back",colors.red )
  86. sleep(0.75)
  87. print("yellow")
  88. redstone.setBundledOutput("back",colors.yellow )
  89. sleep(0.75)
  90. print("white")
  91. redstone.setBundledOutput("back",colors.white)
  92. sleep(0.75)
  93.  
  94. a=a+1
  95. end
  96. redstone.setBundledOutput("back",0)
  97. print("END")
  98. sleep(30)
  99. os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement