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

disklock door(CTRL+T protected)

Started by fixerpro, 06 August 2012 - 04:33 AM
fixerpro #1
Posted 06 August 2012 - 06:33 AM
dont wanna download with trouble?
  • heres code for lock
os.pullEvent = os.pullEventRaw
print "Disk Needed" –This can be any message saying that it needs a disk
sleep(10) –any time u want before shutin down
os.shutdown()
  • heres code for disk
shell.run "shell"
print "Unlocked" – could be any message
redstone.setOutput ("SIDE", true)
sleep(5) –time for it to stay open,can be set to another #
redstone.setOutput ("SIDE", false)
os.shutdown()
acters124 #2
Posted 07 August 2012 - 03:47 PM
you have to make that disk have the program named startup.
chrismash #3
Posted 08 August 2012 - 11:54 PM
put this on disk startup then you have bypass
os.pullEvent
justync7 #4
Posted 09 August 2012 - 12:22 AM
This is cool but i suggest just making the pc not needed to be opened and make it use disk labels and eject the disk when the door opens
fixerpro #5
Posted 09 August 2012 - 03:58 AM

i know,but thats the code to input to your disk for a program named startup,i will fix that
thx
fixerpro #6
Posted 09 August 2012 - 04:03 AM
i forgot to put that code for that,i only posted the simple code,i will make it more advanced when i start to learn more programming such as wireless rednet,and more compicated lua,im still learning proggraming here,i am working on LockerAPI/program to save your programs on a disk that requires code/pass to use and store files,i will be testing and posting it,fixerpro
fixerpro #7
Posted 13 November 2012 - 05:01 PM
put this on disk startup then you have bypass os.pullEvent

but that wont work,the door wont open,it will just unlock the computer,not the door XD
rhyleymaster #8
Posted 13 November 2012 - 06:20 PM
put this on disk startup then you have bypass
os.pullEvent
Try: os.pullEvent = os.pullEventRaw

also, To the creator of the thread, are you just learning Lua?
Heracles421 #9
Posted 13 November 2012 - 06:56 PM
put this on disk startup then you have bypass
os.pullEvent
Try: os.pullEvent = os.pullEventRaw

also, To the creator of the thread, are you just learning Lua?

I guess he is:

i forgot to put that code for that,i only posted the simple code,i will make it more advanced when i start to learn more programming such as wireless rednet,and more compicated lua,im still learning proggraming here,i am working on LockerAPI/program to save your programs on a disk that requires code/pass to use and store files,i will be testing and posting it,fixerpro
Tiin57 #10
Posted 14 November 2012 - 10:25 AM
Please, please don't clutter with these things. :/
I know you're learning, but this board is stuffed with basically worthless programs. No offense intended.
fixerpro #11
Posted 02 February 2013 - 05:36 PM
this is my old program,plz check out my newer ones

admins plz lock or delete my post