Posted 18 July 2014 - 06:07 PM
Yeah i really should have check the name before i posted :o/>
I don't really know how to explain what i'm wanting so i hope this is an ok job:
There's an elevator made out of drawbridges from a mod called minefactory reloaded. It needs a constant redstone signal to go up which is were it needs to stay, since i'm entering from the top. The computer at the top should say something like, "enter your password" and if correct the drawbridges come down, but if the password is wrong it ask for a second(new) password and when entered if correct then ask you for the original password again. There is a pc at the bottom with should turn off the redstone signal and allow the bridge to come down and allow you to get on. It also should ask for the password. I do have Project Red: Integration so that could help.
I do know a little coding for like locked doors and some other stuff but this is way to advanced for me…
***Just me thinking***
I also have an idea to "spit out" but i don't know if its possible.
The drawbridge has an inventory so when it goes up it empties it and when it comes back down it takes it all back. My idea is if i had local "users" for the code when i login as that user it will take me down to a certain point and a different local "user" when logged in will take it to a different "floor"
Heres my local user code idea, but its not written for the drawbridge its written for doors :/
Local owner = "Sovet"
Local ownerpass = "srs"
local admin = "Cabalee"
local adminpass = "music"
local guest = "Footykaiser11"
local guestpass = "bigfoot"
while true do –If anything cannot happend, it will close the loop.
rs.setOutput("left", false)
rs.setOutput("right", false)
rs.setOutput("back", false)
term.clear()
term.setCursorPos(1,1)
write("Please enter your username: ")
local name = read()
if name == owner then
term.clear()
term.setCursorPos(1,1)
write("Please enter password: ")
local pass = read("*")
if pass == ownerpass then
rs.setOutput("left", true)
rs.setOutput("right", true)
rs.setOutput("back", true)
term.clear()
term.setCursorPos(1,1)
print("Access Granted. All rights have been invoked. Welcome back Soviet!")
sleep(10)
end
elseif name == admin then
term.clear()
term.setCursorPos(1,1)
write("Please enter password: ")
local pass = read("*")
if pass == adminpass then
rs.setOutput("left",true)
rs.setOutput("right", true)
term.clear()
term.setCursorPos(1,1)
print("Access Granted. Access level medium. Welcome back Cabalee!")
sleep(10)
end
elseif name == guest then
term.clear()
term.setCursorPos(1,1)
write("Please enter password: ")
local pass = read("*")
if pass == guestpass then
rs.setOutput("left",true)
term.clear()
term.setCursorPos(1,1)
print("Access Granted. Low level access. Welcome back Footykiser!")
sleep(10)
end
end
end
I don't really know how to explain what i'm wanting so i hope this is an ok job:
There's an elevator made out of drawbridges from a mod called minefactory reloaded. It needs a constant redstone signal to go up which is were it needs to stay, since i'm entering from the top. The computer at the top should say something like, "enter your password" and if correct the drawbridges come down, but if the password is wrong it ask for a second(new) password and when entered if correct then ask you for the original password again. There is a pc at the bottom with should turn off the redstone signal and allow the bridge to come down and allow you to get on. It also should ask for the password. I do have Project Red: Integration so that could help.
I do know a little coding for like locked doors and some other stuff but this is way to advanced for me…
***Just me thinking***
I also have an idea to "spit out" but i don't know if its possible.
The drawbridge has an inventory so when it goes up it empties it and when it comes back down it takes it all back. My idea is if i had local "users" for the code when i login as that user it will take me down to a certain point and a different local "user" when logged in will take it to a different "floor"
Heres my local user code idea, but its not written for the drawbridge its written for doors :/
Local owner = "Sovet"
Local ownerpass = "srs"
local admin = "Cabalee"
local adminpass = "music"
local guest = "Footykaiser11"
local guestpass = "bigfoot"
while true do –If anything cannot happend, it will close the loop.
rs.setOutput("left", false)
rs.setOutput("right", false)
rs.setOutput("back", false)
term.clear()
term.setCursorPos(1,1)
write("Please enter your username: ")
local name = read()
if name == owner then
term.clear()
term.setCursorPos(1,1)
write("Please enter password: ")
local pass = read("*")
if pass == ownerpass then
rs.setOutput("left", true)
rs.setOutput("right", true)
rs.setOutput("back", true)
term.clear()
term.setCursorPos(1,1)
print("Access Granted. All rights have been invoked. Welcome back Soviet!")
sleep(10)
end
elseif name == admin then
term.clear()
term.setCursorPos(1,1)
write("Please enter password: ")
local pass = read("*")
if pass == adminpass then
rs.setOutput("left",true)
rs.setOutput("right", true)
term.clear()
term.setCursorPos(1,1)
print("Access Granted. Access level medium. Welcome back Cabalee!")
sleep(10)
end
elseif name == guest then
term.clear()
term.setCursorPos(1,1)
write("Please enter password: ")
local pass = read("*")
if pass == guestpass then
rs.setOutput("left",true)
term.clear()
term.setCursorPos(1,1)
print("Access Granted. Low level access. Welcome back Footykiser!")
sleep(10)
end
end
end
Edited on 18 July 2014 - 05:00 PM