Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("monitor_4")
- pc = {
- peripheral.wrap("computer_4"),
- peripheral.wrap("computer_6"),
- peripheral.wrap("computer_8"),
- peripheral.wrap("computer_9")
- }
- m.clear()
- m.setTextScale(1.5)
- m.setTextColor(colors.yellow)
- m.setCursorPos(7,1)
- m.write("-System-")
- m.setCursorPos(7,2)
- m.write("Neustart")
- m.setCursorPos(7,4)
- while true do
- x,c,a,b = os.pullEvent("monitor_touch")
- if c == "monitor_4" then
- rednet.open("top")
- for i = 1,#pc do
- pc[i].reboot()
- end
- m.setCursorPos(8,5)
- m.setTextColor(colors.orange)
- m.write("durch")
- m.setCursorPos(7,6)
- m.write("gefuehrt")
- sleep(3)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement