Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Crush or NoCrush ?")
- input = read()
- print("How long before forced shtudown ? (in seconds)(0 = No forced Shutdown)")
- security = tonumber(read())
- if input == "Crush" or input == "NoCrush" then
- rednet.send(Computer2ID, input)
- rednet.set(TurtleID, input)
- if security > 0 and input == "Crush" then
- sleep(security)
- rednet.send(9, "NoCrush")
- end
- else
- print("Error ! No possibility found !")
- print("Restarting !")
- sleep(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement