Advertisement
Guest User

ns

a guest
Sep 1st, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. m = peripheral.wrap("monitor_4")
  2. pc = {
  3.   peripheral.wrap("computer_4"),
  4.   peripheral.wrap("computer_6"),
  5.   peripheral.wrap("computer_8"),
  6.   peripheral.wrap("computer_9")
  7. }
  8.  
  9. m.clear()
  10.  
  11. m.setTextScale(1.5)
  12. m.setTextColor(colors.yellow)
  13. m.setCursorPos(7,1)
  14. m.write("-System-")
  15. m.setCursorPos(7,2)
  16. m.write("Neustart")
  17. m.setCursorPos(7,4)
  18.  
  19.  while true do
  20.  x,c,a,b = os.pullEvent("monitor_touch")
  21.  if c == "monitor_4" then
  22.  rednet.open("top")
  23.  for i = 1,#pc do
  24.  pc[i].reboot()
  25.  end
  26.  m.setCursorPos(8,5)
  27.  m.setTextColor(colors.orange)
  28.  m.write("durch")
  29.  m.setCursorPos(7,6)
  30.  m.write("gefuehrt")
  31.  sleep(3)
  32.  os.reboot()
  33.  end
  34.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement