AndreSoYeah

IDK

Jul 12th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. --RRC Server program made by Walia6 And Lego on Mudserv
  2. --July 12,2013
  3.  
  4. --Out is 2323
  5. --In is 2324
  6.  
  7. --version 0.01
  8. local config = "WLRRC.mccfg"
  9. shell.run(config)
  10. local modem = peripheral.wrap(side)
  11. local channels =
  12. {
  13. ["Out"] = 2323,
  14. ["In"] = 2324,
  15. ["Tower"] = 2325
  16. }
  17.  
  18. rednet.open(side)
  19. modem.open(channels["Out"])
  20. while true do
  21. local _,_,senderCh,_,msg = os.pullEvent("modem_message")
  22. if senderCh == channels["Out"] then
  23. modem.transmit(channels["Out"],2324,msg)
  24. print("Transmitted: "..msg)
  25. modem.transmit(channels["Tower"],2326,msg)
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment