Input (To send a message to other users)
rednet.open("top") var = read() rednet.broadcast(var) shell.run("Sender1")
Monitor output (shows messages from yourself and all other users)
rednet.open("top") m = peripheral.wrap("right") password = 42 while true do event, id, message, distance = os.pullEvent("rednet_message") if password == 42 then local cX,cY = m.getCursorPos() m.setCursorPos(1,cY+1) m.write(message) if cY >= 25 then ---should clear first 3 lines if there are more then 25 (Max)---------- term.scroll(3)[/color] ---doesn't respond/doesn't give output------------ end end sleep(0.1) end
The commented code is what I'm having issues with
Just for reference, disk drives are disabled on the server (dupe glitches from older versions) so I wanted to keep this code as simple as possible to enter upwards of 10 times.
Edited by kenny_tha_koala, 21 November 2014 - 03:34 AM.