Rahph

DiscoStarter

Jun 27th, 2017
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.45 KB | None | 0 0
  1. local sV = "V. 1"
  2. mon=peripheral.wrap("top")
  3. x,y=mon.getSize()
  4. mon.setPaletteColor(colors.blue,0x23272A)
  5. mon.setPaletteColor(colors.white,0xFFFFFF)
  6. mon.clear()
  7. mon.setCursorPos(x-#sV,y)
  8. mon.write(sV)
  9. mon.setBackgroundColor(colors.blue)
  10. mon.clear()
  11. mon.setTextColor(colors.white)
  12. mon.setCursorPos(1,2)
  13. mon.setPaletteColor(colors.gray,0x99AAB5)
  14. mon.setTextColor(colors.gray)
  15. for i=1,x do mon.write("\127") end
  16. mon.setCursorPos(1,1)
  17. for i=1,x do mon.write("\127") end
  18. mon.setCursorPos(1,3)
  19. for i=1,x do mon.write("\127") end
  20. mon.setTextColor(colors.white)
  21. mon.setCursorPos((x-16)/2+1,2)
  22. mon.write(" DISCO CONTROL! ")
  23. mon.setCursorPos(1,4)
  24. mon.write("Updating base [")
  25. shell.run("delete .ctrl")
  26. mon.write("####")
  27. shell.run("wget https://pastebin.com/raw/UEGMGET3 .ctrl")
  28. mon.write("########]")
  29. mon.setCursorPos(1,6)
  30. mon.write("Updating launcher [")
  31. shell.run("delete .launch")
  32. mon.write("####")
  33. shell.run("wget https://pastebin.com/raw/uytrr4xu .launch")
  34. mon.write("#######]")
  35. mon.setCursorPos(1,7)
  36. mon.write("Updating DiscoAPI (NOT CURRENTLY USED) [")
  37. shell.run("delete /disco/disco.api")
  38. mon.write("####")
  39. shell.run("wget https://pastebin.com/raw/b6uyzhhm /disco/disco.api")
  40. mon.write("#######]")
  41. mon.setCursorPos(1,9)
  42. mon.write("Starting...")
  43. sleep(0.25)
  44. shell.run(".ctrl")
  45. mon.setBackgroundColor(colors.black)
  46. mon.clear()
  47. mon.setCursorPos(1,1)
  48. mon.setTextColor(colors.white)
  49. mon.write("DISCO CONTROLL HAS EXIT")
  50. sleep(0.2)
  51. mon.clear()
Advertisement
Add Comment
Please, Sign In to add comment