Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.find("modem", function(name, obj) return obj.isWireless() end)
- local function randbytes(len)
- local out = ""
- for i = 1, len do
- out = out .. string.char(math.random(1, 255))
- end
- return out
- end
- while true do
- m.transmit(rednet.CHANNEL_BROADCAST, rednet.CHANNEL_BROADCAST,
- {
- sProtocol = "chat",
- nRecipient = rednet.CHANNEL_BROADCAST,
- nMessageID = math.random(0, 1313131),
- message = {
- sType = "login",
- nUserID = math.random(0, 1313131),
- sUsername = randbytes(16)
- }
- })
- sleep(0.4)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement