Posted 22 November 2015 - 06:09 AM
I cannot figure out how to get this to work.
btw I am using the standard login with a few edits made by me
any ideas? thanks in advance!
btw I am using the standard login with a few edits made by me
local opentime = 10
local side = "back"
local password = "dlk"
local don = "D125"
local don2 = "D12"
local res1 = "Dcal"
local res2 = "Dmac"
local res3 = "Dan"
local res4 = "Dale"
term.clear()
term.setCursorPos(1,1)
print("Type Your Username(Needed to teleport you) :")
local userName = read()
term.setCursorPos(1,2)
write("Type Your ID :")
local code = read("#")
if code == password then
fs.exit()
else
if code == don then
hate()
os.reboot()
else
term.clear()
term.setCursorPos(1,1)
print("ID not found")
fs.makeDir("hdd01")
local file = fs.open("hdd00/"..code, "a")
file.writeLine("failed "..userName)
file.close()
sleep(15)
os.reboot()
end
end
function hate()
if fs.exists("hdd00/"..code.."check") then
term.setCursorPos(1,1)
print("Okay! heres your ticket for today! please stand still!")
fs.makeDir("hdd00")
local file = fs.open("hdd00/"..code, "a")
file.writeLine("Passed "..userName)
file.close()
local check = fs.open("hdd00/"..code.."check", "a")
check.writeLine("used 1 times today")
check.close()
rs.setOutput(side,true)
sleep(opentime)
rs.setOutput(side,false)
end
end
any ideas? thanks in advance!