Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- term.setBackgroundColor(colors.green)
- term.clear()
- term.setCursorPos(20,10)
- write("Click to start!")
- term.setCursorPos(1,19)
- write("<--exit")
- while true do
- event, button, x, y = os.pullEvent("mouse_click")
- if x > 0 and x < 8 and y == 19 or y == 18 then
- term.setCursorPos(1,19)
- term.setTextColor(colors.red)
- write("<--exit")
- sleep(0.2)
- os.reboot()
- break
- else
- rednet.send(71, "")
- term.setBackgroundColor(colors.red)
- term.clear()
- term.setCursorPos(24,10)
- write("Busy!")
- break
- end
- end
- while true do
- os.pullEvent("rednet_message")
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- os.reboot()
- break
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement