Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local version = 1.0
- os.pullEvent = os.pullEventRaw
- local filename = "startup"
- local paste = "g1Q2tN4q"
- local function update()
- local url = "http://pastebin.com/raw.php?i="..paste
- local temp = http.get(url)
- local ver = temp.readLine()
- if tonumber(string.sub(ver, 17)) ~= version then
- fs.delete(filename)
- shell.run("pastebin get "..paste.." "..filename)
- shell.run(filename)
- return true
- end
- return false
- end
- local test = update()
- if test == true then
- error()
- end
- local pass = "whitefish1"
- while true do
- shell.run("clear")
- print("~Welcome to The Tower~")
- write("\nPassword: ")
- local input = read("*")
- if input == pass then
- rs.setOutput("left", true)
- sleep(5)
- rs.setOutput("left", false)
- else
- shell.run("clear")
- print("INCORRECT PASSWORD!")
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement