Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local testss = "local pullEvent = os.pullEvent os.pullEvent = os.pullEventRaw"
- local m = periphperal.wrap("top")
- local todolist = {["xxmobkiller"] = {"1. Finish Walls","2. Finish -1 walls and floor"}, ["demo"] = {"1. Need to get more money","2. Follow the rules"}}
- local todolistColors = {["xxmobkiller"] = {color.red,colors.red}, ["demo"] = {color.red, color.green}}
- local usernames = {"xxmobkiller","demo"}
- local passwords = {["xxmobkiller"] = "25565", ["demo"] = "demo"}
- local user = ""
- local foundUsername = false
- local foundPassword = false
- local currentpos1 = 1
- local currentpos2 = 1
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("===========================")
- write("Welcome to ToDoList")
- write("made by xxmobkiller")
- write("===========================")
- write("Loading LUA")
- sleep(2)
- write("Loading LUA.")
- sleep(1)
- write("Loading LUA..")
- sleep(2)
- write("Loading LUA...")
- sleep(3)
- write("Loading Finished")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- write("===========================")
- write("Welcome to ToDoList")
- write("made by xxmobkiller")
- write("===========================")
- write("Your Username:")
- local input = read()
- for index,username in pairs(usernames) do
- if foundUsername == false and username == input do
- foundUsername = true
- user = username
- end
- end
- sleep(2)
- write("Not Your Minecraft Password:")
- local input = read("*")
- if foundUsername == true and passwords[user] == input do
- foundUsername = true
- user = username
- term.clear()
- term.setCursorPos(1,1)
- end
- if foundUsername == true and foundPassword == true do
- print("===========================")
- print("Welcome, " .. user .. " to ToDoList")
- print("===========================")
- print("Now Loading your ToDo List on the BigScreen!")
- sleep(2)
- for index,value in pairs(todolist) do
- if todolistColors[user] ~= nil and todolistColors[user][index] ~= nil do
- setText(1,todolistColors[user][index],currentpos1,currentpos2,value)
- currentpos2 = currentpos2 + 1
- end
- end
- print("Editing System is coming soon :)")
- sleep(3)
- else
- print("I did not found your username or password in")
- print("my database!")
- sleep(5)
- end
- end
- setText = function(scale,color,pos1,pos2,text)
- m.setTextScale(scale)
- m.setTextColor(color)
- m.setCursorPos(pos1,pos2)
- m.write(text)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement