Posted 12 June 2012 - 10:34 PM
i have a room on a multiplayer server that makes biomass and harvests all my suger canes. i have conected all the engien's both biomass engien's and redstone one's with a diffrend collored cable leading from a bundled cable. i want it so you startup the computer my lock system pop,s up (i'll put that in my self) you login and then it open's menu program it should have following options
–fermenter
–sugercane farms
–pumps
–biomass pump
–fermentor pump
–wheat farm
so when ever you chose a option it will pop up with another menu where it's tell's you to choose either "on" or "off" and when you choose one it will save that to it will out put redstone even if you reboot it (dont know if that possiple but it would be nice)
so if you are up for the challenge just post it.
the reason im asking you pro coders is that i have been trying to get it remembering the option and makeing the program myself and i have meet my limit the only thing i have a sligt idea of how to make is a lock system and the is cuz MysticT told me how. but if any1 takes on the challege then i thank you
ps. sry for bad english
this is my lock system
–fermenter
–sugercane farms
–pumps
–biomass pump
–fermentor pump
–wheat farm
so when ever you chose a option it will pop up with another menu where it's tell's you to choose either "on" or "off" and when you choose one it will save that to it will out put redstone even if you reboot it (dont know if that possiple but it would be nice)
so if you are up for the challenge just post it.
the reason im asking you pro coders is that i have been trying to get it remembering the option and makeing the program myself and i have meet my limit the only thing i have a sligt idea of how to make is a lock system and the is cuz MysticT told me how. but if any1 takes on the challege then i thank you
ps. sry for bad english
this is my lock system
--[[Prevent Termination]]
local oldPullEvent = os.pullEvent
os.pullEvent = os.pullEventRaw
--[[Setup usernames and passwords]]
local tUsers = {
["user1"] = "pass1",
["user2"] = "pass2",
["user3"] = "pass3",
["user4"] = "pass4",
["user5"] = "pass5",
["user6"] = "pass6"
}
local function clear()
term.clear()
term.setCursorPos(1, 1)
end
--[[Infinite loop]]
while true do
clear()
--[[Ask for username]]
write("Username: ")
local usr = read()
--[[Check username]]
if tUsers[usr] ~= nil then
--[[Ask for password]]
write("Password: ")
local pass = read("*")
--[[Check password]]
if pass == tUsers[usr] then
print("Entering menu")
shell.run(your program name)
--[[Function here]]
--[[Else Function]]
else
print("Wrong password")
sleep(2)
end
else
print("The Entered Username Dosen't exist: ", usr)
sleep(2)
end
end
os.pullEvent = oldPullEvent