Off Topic > Games
RExx Industries;;Minecraft Server -{Tekkit Mod}- IT'S UP! :D
Daedalus:
--- Quote from: ? on April 27, 2012, 05:23:51 PM ---Or I can just post the program code right here so people don't get scammed by buying something really simple.
--- End quote ---
It won't be simple stuff, and it'll be cheap. When you purchase, you also get a free computer and disk drive!
?:
--- Quote from: Daedalus on April 27, 2012, 05:28:55 PM ---It won't be simple stuff, and it'll be cheap. When you purchase, you also get a free computer and disk drive!
--- End quote ---
--- Code: ---local function clearScreen()
term.clear()
term.setCursorPos(1, 1)
end
while true do --Reruns the code-block if it is finished, instead of rebooting.
clearScreen() --shell.run ("clear")
print ("Type password to enter {LOCATION}!")
if read() == "{PASSWORD}" then term.clear() --shell.run("clear")
print("Correct Password!")
print("Open door for how long?")
local a = read() -- Per default you should always try to declare your variables as local soas not to accidentally override a global one.
clearScreen() --shell.run("clear")
print("Opening door!")
sleep (1)
redstone.setOutput("{SIDE OF DOOR}",true)
clearScreen() --shell.run("clear")
sleep (a)
redstone.setOutput("{SIDE OF DOOR}",false)
else
clearScreen() --shell.run("clear")
print("Incorrect Password, please try again.")
sleep (5)
end
end
--- End code ---
--- Code: -----Made By Djblocksaway
--Easy Lock Version 1.1
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
term.clear()
term.setCursorPos(1,1)
print "Easy Lock 1.1"
print " "
write ("Password: ")
correctpass = "123"
pass = read("*")
if pass == (correctpass) then
print " "
write("Correct! You may enter!")
redstone.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
redstone.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
os.reboot()
else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end
--- End code ---
Someone can also just edit your floppy disks when you're away.
Daedalus:
I wasn't just gonna do locks, lol. Also, a selling point is that you don't have to code it yourself.
Dragonoid-X:
Woo fixed my minecraft
?:
--- Quote from: Daedalus on April 27, 2012, 07:05:37 PM ---I wasn't just gonna do locks, lol. Also, a selling point is that you don't have to code it yourself.
--- End quote ---
>Google "Computercraft programs".
>Download