Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- sleep(1)
- term.clear()
- local w, h = term.getSize()
- h1=h/2
- w1=w-14
- w2=w1/2
- w3=(w-26)/2
- w4=(w-22)/2
- term.setCursorPos(w2,h1)
- print("Notstrom Client")
- term.setCursorPos(w3,h1+1)
- write("Zum einschalten 1 Druecken ")
- auswahl = read()
- if auswahl =="1" then
- rednet.send(151,"on")
- term.clear()
- term.setCursorPos(w4,h1)
- print("Notstrom Eingeschaltet")
- y,x,z = rednet.receive()
- if x == "end" then
- os.reboot()
- end
- elseif auswahl =="reboot" then
- rednet.send(151,"reboot")
- return
- else
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement