Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MASTER_CHANNEL = 5452
- ELEVATOR_CHANNEL = 47883
- modem = peripheral.find("modem") or error("No modem attached", 0)
- args = {...}
- recentChannel = 0
- function jobSelect()
- if args[1] == nil then
- print("No valid job selected!")
- print("'remote [job] [task] [label]'")
- print("E.G. remote elevator call windmill")
- elseif args[1] == "elevator" then
- local transmission = args[2].." "..args[3]
- modem.transmit(ELEVATOR_CHANNEL, MASTER_CHANNEL, transmission)
- print("Task signal sent: "..transmission)
- recentChannel = ELEVATOR_CHANNEL
- end
- end
- modem.open(MASTER_CHANNEL)
- jobSelect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement