Posted 11 December 2013 - 04:11 PM
I hope this doesn't sound malicious, but I need to fake an ID.
What I want to do is "change" my computers ID in a quick "chat program" I wrote.
Code of the fist computers startup:
First computer:
What I want to do is "change" my computers ID in a quick "chat program" I wrote.
Code of the fist computers startup:
os.getComputerId = function()
fakeId = 9
return fakeId
end
Chat program code:First computer:
rednet.open("top")
local input = read()
rednet.send(1, input)
Second computer chat code:
while true do
id, message = rednet.receive()
print(id..":"..message)
end
But it just prints the real ID. Any help?Edited on 11 December 2013 - 03:12 PM