This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
houseofkraft's profile picture

How to spoof ID's - Tutorial

Started by houseofkraft, 01 October 2016 - 01:49 PM
houseofkraft #1
Posted 01 October 2016 - 03:49 PM
Hi Guys!

I am going to show you all how to spoof ID's in ComputerCraft

You might have been wanting to change ID's to either trick rednet or just for fun.

Since the rednet API uses os.getComputerID() to get the ID we can just overwrite os.getComputerID()

Code:

os.getComputerID = function()
return 1 -- Change this to the ID you want to be
end

Thanks!
Lyqyd #2
Posted 02 October 2016 - 03:43 AM
Yep, thanks for the reminder!

Closed.