Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- monitor = peripheral.wrap("back")
- term.redirect(monitor)
- term.setCursorBlink(false)
- term.setCursorPos(1,1)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- -- os.pullEvent( "rednet_message" )
- id,message = rednet.receive()
- while id==5 do
- if message==('system1') then
- term.setTextColor(colors.pink)
- term.write("hacking")
- else
- term.setTextColor(colors.white )
- term.write("system 1 ok")
- end
- end
- os.sleep(1)
- id,message = rednet.receive()
- while id==6 do
- if message==('system2') then
- term.setTextColor(colors.pink)
- print()
- term.write("hacking")
- else
- term.setTextColor(colors.white)
- print()
- term.write("system 2 ok")
- end
- end
- os.sleep(1)
- id,message = rednet.receive()
- while id==7 do
- if message==('system3') then
- term.setTextColor(colors.pink)
- print()
- term.write("hacking")
- else
- term.setTextColor(colors.white)
- print()
- term.write("system 3 ok")
- end
- end
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement