- ComputerCraft | Programmable Computers for Minecraft
- → Zer0t3ch's Content
Zer0t3ch's Content
There have been 32 items by Zer0t3ch (Search limited from 10-February 22)
#95405 Advanced Programs: Orefinder, Tunnel.
Posted by
Zer0t3ch
on 10 March 2013 - 08:21 AM
in
Turtle Programs
#8813 [APIs][Programs][Utilities]Mad's Programs
Posted by
Zer0t3ch
on 10 April 2012 - 04:15 PM
in
Programs
Also, would you be okay with me possibly implementing some of this INTO my code so that people don't have to download your APIs as well, provided I give you full credit for your work on the post and in the program? This is all theoretical right now, but please shoot me a PM and lemme know what you think.
#5836 [1.3] Security Terminal
Posted by
Zer0t3ch
on 24 March 2012 - 04:44 AM
in
Programs
while true do pullEvent = os.pullEvent() os.pullEvent = os.pullEventRaw() os.pullEvent = pullEvent endAfter key press it instantly crashes, I have tried multiple variations, with and without parens, and this is what it is now. Any ideas?
#5833 Cube Digger + Quarry Frame Destroyer
Posted by
Zer0t3ch
on 24 March 2012 - 03:53 AM
in
Turtle Programs
#5832 Ironsmith123's Turtle Track Layer
Posted by
Zer0t3ch
on 24 March 2012 - 03:51 AM
in
Turtle Programs
#5821 [1.3] Security Terminal
Posted by
Zer0t3ch
on 24 March 2012 - 02:42 AM
in
Programs
coolblockj, on 24 March 2012 - 02:25 AM, said:
Zer0t3ch, on 24 March 2012 - 02:10 AM, said:
Espen, on 24 March 2012 - 01:52 AM, said:
*derp* Kinda hard to match the end's with their counterparts sometimes with non-indented code. My bad.
But it will reboot in both cases (access denied/granted), so you'd at least have to replace the reboot on "access granted" with a break.
@Kolpa:
I hope you don't mind, just tried to compress the code a little to make it more efficient.
local function clear()
term.clear()
term.setCursorPos(1, 1)
end
clear()
write("Kolpa s Privacy Terminal")
term.setCursorPos(2, 5)
write("Password: ")
while true do
local pass = read("*")
if pass == "test" then
clear()
write("acces granted")
os.sleep(2)
break; -- Break out of loop.
else
clear()
write("acces denied")
os.sleep(2)
os.reboot()
end
end
Note: Didn't test it ingame, but should work. If it doesn't, give me a holler.Cheers
You're edit looks nice. Has anyone figured out a way to make programs non-terminate-able? (not a word, I know) Without editing the actual OS?
nos.pullEvent = os.pullEvent os.pullEvent = os.pullEventRaw Yourcodehere os.pullEvent = nos.pullEvent --Resets it back to normal after you're done.
http://www.zer0t3ch....03/Untitled.png
#5811 [1.3] Security Terminal
Posted by
Zer0t3ch
on 24 March 2012 - 02:10 AM
in
Programs
Espen, on 24 March 2012 - 01:52 AM, said:
*derp* Kinda hard to match the end's with their counterparts sometimes with non-indented code. My bad.
But it will reboot in both cases (access denied/granted), so you'd at least have to replace the reboot on "access granted" with a break.
@Kolpa:
I hope you don't mind, just tried to compress the code a little to make it more efficient.
local function clear()
term.clear()
term.setCursorPos(1, 1)
end
clear()
write("Kolpa s Privacy Terminal")
term.setCursorPos(2, 5)
write("Password: ")
while true do
local pass = read("*")
if pass == "test" then
clear()
write("acces granted")
os.sleep(2)
break; -- Break out of loop.
else
clear()
write("acces denied")
os.sleep(2)
os.reboot()
end
end
Note: Didn't test it ingame, but should work. If it doesn't, give me a holler.Cheers
You're edit looks nice. Has anyone figured out a way to make programs non-terminate-able? (not a word, I know) Without editing the actual OS?
#5761 TNT Team's programs [1.31][cc get][vandie's programs]
Posted by
Zer0t3ch
on 23 March 2012 - 09:40 PM
in
Programs
#5553 TNT Team's programs [1.31][cc get][vandie's programs]
Posted by
Zer0t3ch
on 22 March 2012 - 09:34 PM
in
Programs
#4365 Zer0t3ch's Programs & Tuts [1 Program - 2 zAPI Functions]
Posted by
Zer0t3ch
on 15 March 2012 - 03:52 PM
in
Programs
Also, has anyone tried this out yet? I would like some input from the community.
- ComputerCraft | Programmable Computers for Minecraft
- → Zer0t3ch's Content


