Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --ID 6
- rednet.open("top")
- args = {...}
- function sendTrains()
- print("Sending trains")
- rednet.broadcast(textutils.serialize({"REFUEL", colors.white}))
- sleep(10)
- rednet.broadcast(textutils.serialize({"REFUEL", colors.orange}))
- sleep(10)
- rednet.broadcast(textutils.serialize({"REFUEL", colors.magenta}))
- sleep(10)
- rednet.broadcast(textutils.serialize({"REFUEL", colors.lightBlue}))
- sleep(2)
- end
- if args[1] == "boot" then
- print("Sending at boot")
- sendTrains()
- end
- while true do
- for i = 0,24 do
- remaining = 250 - i * 10
- print(remaining .. " seconds before next refuel")
- sleep(10)
- end
- sendTrains()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement