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

Reader Command/lua

Started by kaioo1312, 12 September 2013 - 08:45 AM
kaioo1312 #1
Posted 12 September 2013 - 10:45 AM
I saw somewhere a script that has somthing like reader(kaioo1312) and i cant think what this code is it would be realy useful for private areas of my house like my chest-room and because its on tekkit lite my nuclear reactors etc etc.
if anyone knows this code it would be much appreciated!
-kaioo1312
EDIT:
what this mystery program does is it can be used in somthing like this:

term.clear()
term.setCursorPos(1,1)
reader=(kaioo1312)
if true do
shell.run"passworddoor"
else
print "You are not kaioo go away
os.reboot()
end
so it basicly detects the player (kaioo1312) and it prevents somone else from getting into that area even if they know the password
NOTE: Yes i know the above code doesn't work but its just a example.
thanks
Cranium #2
Posted 12 September 2013 - 11:06 AM
That's a very VERY non-specific description. reader(anything) would be a customer function, so there's no telling what it could be. Perhaps if you give us a description of what the program is supposed to do?

Also, it would be nice if you could try typing out your responses in complete sentences, it helps others read exactly what you mean, rather than guessing.
kaioo1312 #3
Posted 12 September 2013 - 11:50 AM
That's a very VERY non-specific description. reader(anything) would be a customer function, so there's no telling what it could be. Perhaps if you give us a description of what the program is supposed to do?

Also, it would be nice if you could try typing out your responses in complete sentences, it helps others read exactly what you mean, rather than guessing.

i added a extended description
Lyqyd #4
Posted 12 September 2013 - 02:41 PM
The original code probably required something like OpenCCSensors or MiscPeripherals.
kaioo1312 #5
Posted 28 October 2013 - 05:13 AM
Thanks Lyqyd i found it was a Player Detector block in MiscPeripherals.