Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --RRC Server program made by Walia6 And Lego on Mudserv
- --July 12,2013
- --Out is 2323
- --In is 2324
- --version 0.01
- local config = "WLRRC.mccfg"
- shell.run(config)
- local modem = peripheral.wrap(side)
- local channels =
- {
- ["Out"] = 2323,
- ["In"] = 2324,
- ["Tower"] = 2325
- }
- rednet.open(side)
- modem.open(channels["Out"])
- while true do
- local _,_,senderCh,_,msg = os.pullEvent("modem_message")
- if senderCh == channels["Out"] then
- modem.transmit(channels["Out"],2324,msg)
- print("Transmitted: "..msg)
- modem.transmit(channels["Tower"],2326,msg)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment