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

Locko 1.2 Epic Locking Program 1.4.5

Started by MLGgameplayer, 01 December 2012 - 10:05 AM
MLGgameplayer #1
Posted 01 December 2012 - 11:05 AM

[twitter]MLG_Crew[/twitter]
this link is locko 1.0 old version: [media]http://www.youtube.com/watch?v=E4FBZs48k1E&list=LL5UejVgr6Bof6BV5k-Djx3A&feature=mh_lolz[/media]
my locking program my first scripting or lua if you want to say here are the downloads if you are lazy :P/> :
Pastebin: http://pastebin.com/BqZm8YXb
Mediafire: http://www.mediafire...bl7i6f40jg87eqh
first do edit startup (For manual users only)
and type these in

while true do
term.clear()
term.setCursorPos(1, 1)
print ("-----------------------------------------")
print ("------- You are Running Locko 1.2 -------")
print ("-----------------------------------------")
print ("---------------- Please -----------------")
print ("--------------- Subcribe ----------------")
print ("------------------ To -------------------")
print ("------------------ My -------------------")
print ("---------------- Youtube ----------------")
print ("------------- MLGgameplayer -------------") [color=#008000]--You can edit this but it will make me happy if you didn't and give me some credit![/color]
print ("-----------------------------------------")
textutils.slowPrint("Made by MLGgameplayer",10 [color=#008000]--You can change 10 to any ticks you like and my name anything but it makes me happy if you didn't :D/>/>[/color]
sleep(3)
print ("Loading please wait")textutils.slowPrint("!!!!!!!!",10)textutils.slowPrint("!!!!!!!!",10) [color=#008000]--You can change this if you like[/color]
sleep(2)
print ("Welcome Please Enter Your Password: ")
input = read ("*")
if input == "cheese" then [color=#008000]-- You can change cheese to any password to anything you like![/color]
sleep(1)
print ("Welcome Master MLG please Enter you have 5 seconds to enter") --[color=#008000] You can change this also[/color]
redstone.setOutput("right", true)
sleep(1)
print ("5")
sleep(1)
print ("4")
sleep(1)
print ("3")
sleep(1)
print ("2")
sleep(1)
print ("1")
sleep(2)
textutils.slowPrint("Closing Door...",10)
sleep(2)
redstone.setOutput("right", false)
os.shutdown ()
else
sleep(1)
print ("Incorrect Password! \nRebooting...")
sleep(2)
os.reboot ()
end
end

hoped you liked it spend some time doing this!

Edited on 01 December 2012 - 06:53 PM
MLGgameplayer #2
Posted 01 December 2012 - 11:20 AM
please post that you share what you edited with my code because it educate us an tell me to add some bits to it so please do so share your ideas!
Bubba #3
Posted 01 December 2012 - 11:30 AM
Proper grammar/capitalization/etc. are beneficial to getting people interested in your code and you should also put your code in code tags to make it more readable.
rhyleymaster #4
Posted 01 December 2012 - 11:47 AM
This code is on the Tekkit wiki…
Bubba #5
Posted 01 December 2012 - 11:51 AM
This code is on the Tekkit wiki…

I think this code is so generic that even if it were on the Tekkit wiki it's possible that he didn't copy it. Either way though I would suggest a few things:
1) Add the os.pullEventRaw() function. Don't know what it is? Look it up on the CC wiki.
2) Rednet authentication
3) Get rid of slowprint - it's a waste of time TBH.

Overall people need to stop posting 'their' code after five minutes of copy/pasting. It's gotten to the point where I hardly ever check the Programs section anymore and end up missing out on some actually cool stuff.
rhyleymaster #6
Posted 01 December 2012 - 04:08 PM
This code is on the Tekkit wiki…

I think this code is so generic that even if it were on the Tekkit wiki it's possible that he didn't copy it. Either way though I would suggest a few things:
1) Add the os.pullEventRaw() function. Don't know what it is? Look it up on the CC wiki.
2) Rednet authentication
3) Get rid of slowprint - it's a waste of time TBH.

Overall people need to stop posting 'their' code after five minutes of copy/pasting. It's gotten to the point where I hardly ever check the Programs section anymore and end up missing out on some actually cool stuff.

Im about their too. Seriously people, Make your OWN scripts.
Geforce Fan #7
Posted 01 December 2012 - 04:45 PM
Oh my god.
You made a video for a freaking lock system.
Seriously?
Geforce Fan #8
Posted 01 December 2012 - 04:47 PM
This code is on the Tekkit wiki…

I think this code is so generic that even if it were on the Tekkit wiki it's possible that he didn't copy it. Either way though I would suggest a few things:
1) Add the os.pullEventRaw() function. Don't know what it is? Look it up on the CC wiki.
2) Rednet authentication
3) Get rid of slowprint - it's a waste of time TBH.

Overall people need to stop posting 'their' code after five minutes of copy/pasting. It's gotten to the point where I hardly ever check the Programs section anymore and end up missing out on some actually cool stuff.

Im about their too. Seriously people, Make your OWN scripts.
Me three. And no code under 250 lines unless it's REAAAAALLLYYY good, an installer, launcher, or something that's not a program meant to be used by itself with nothing else.
rhyleymaster #9
Posted 01 December 2012 - 04:57 PM
This code is on the Tekkit wiki…

I think this code is so generic that even if it were on the Tekkit wiki it's possible that he didn't copy it. Either way though I would suggest a few things:
1) Add the os.pullEventRaw() function. Don't know what it is? Look it up on the CC wiki.
2) Rednet authentication
3) Get rid of slowprint - it's a waste of time TBH.

Overall people need to stop posting 'their' code after five minutes of copy/pasting. It's gotten to the point where I hardly ever check the Programs section anymore and end up missing out on some actually cool stuff.

Im about their too. Seriously people, Make your OWN scripts.
Me three. And no code under 250 lines unless it's REAAAAALLLYYY good, an installer, launcher, or something that's not a program meant to be used by itself with nothing else.

On the contrary. a code can be under 200 lines and be good, but still less than average.