Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- term.clear()
- local rPos = "Home"
- local uInput = " "
- local pInput = " "
- local cUser = "Pikachu"
- local cPass = "minecraft"
- function cleer()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- term.clear()
- end
- function click()
- if rPos == "Home" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 20 and x <= 25 and y == 8 then
- rLogin()
- elseif x >=20 and x<= 31 and y == 10 then
- rDir()
- else
- rHome()
- end
- elseif rPos == "Login" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 5 then
- rHome()
- elseif x >= 11 and x <= 19 and y == 2 then
- term.setCursorPos(11,2)
- term.setBackgroundColor(colors.gray)
- write(" ")
- term.setCursorPos(11,2)
- uInput = read()
- term.setBackgroundColor(colors.black)
- rLogin()
- elseif x >= 11 and x <= 19 and y == 3 then
- term.setCursorPos(11,3)
- term.setBackgroundColor(colors.gray)
- write(" ")
- term.setCursorPos(11,3)
- pInput = read()
- term.setBackgroundColor(colors.black)
- rLogin()
- elseif x >= 1 and x <= 6 and y == 6 then
- if uInput == cUser and pInput == cPass then
- rDone()
- else
- term.setCursorPos(1,7)
- term.setBackgroundColor(colors.red)
- write("Wrong!")
- term.setBackgroundColor(colors.black)
- sleep(1)
- rLogin()
- end
- else
- rLogin()
- end
- elseif rPos == "Dir" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rHome()
- elseif x >= 1 and x <= 14 and y == 3 then
- rTFolder()
- elseif x >= 1 and x <= 5 and y == 4 then
- rCache()
- elseif x >= 1 and x <= 9 and y == 5 then
- rTrash()
- else
- rDir()
- end
- elseif rPos == "TFolder" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rDir()
- elseif x >= 1 and x <= 16 and y == 3 then
- rFiss()
- elseif x >= 1 and x <= 20 and y == 4 then
- rCProg()
- else
- rTFolder()
- end
- elseif rPos == "Fiss" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rTFolder()
- else
- rFiss()
- end
- elseif rPos == "CProg" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rTFolder()
- else
- rCProg()
- end
- elseif rPos == "Cache" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rDir()
- elseif x >= 1 and x <= 16 and y == 3 then
- rD1337()
- elseif x >= 1 and x <= 15 and y == 4 then
- rD007()
- elseif x >= 1 and x <= 16 and y == 5 then
- rD9001()
- else
- rCache()
- end
- elseif rPos == "D1337" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rCache()
- else
- rD1337()
- end
- elseif rPos == "D007" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rCache()
- else
- rD007()
- end
- elseif rPos == "D9001" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rCache()
- else
- rD9001()
- end
- elseif rPos == "Trash" then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x >= 1 and x <= 5 and y == 1 then
- rDir()
- else
- rTrash()
- end
- end
- end
- function rDone()
- cleer()
- write("Congrats! You successfully hacked in!")
- term.setCursorPos(1,2)
- write("Now fuck off")
- sleep(10)
- end
- function rTrash()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("The Trash Can is Empty!")
- rPos = "Trash"
- click()
- end
- function rD9001()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("Dickachu: .heisenberg")
- term.setCursorPos(1,4)
- write("NotSoBot: ERROR! NO FACE DETECTED!")
- term.setCursorPos(1,5)
- write("Dickachu: Damn this thing hardly works")
- rPos = "D9001"
- click()
- end
- function rD007()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("LadyElisabeth: Hey ")
- term.setBackgroundColor(colors.blue)
- write("@Dickachu")
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1,4)
- write("Dickachu: Yup?")
- term.setCursorPos(1,5)
- write("LadyElisabeth: You mind if I use your PC?")
- term.setCursorPos(1,6)
- write("Dickachu: Uh yeah sure the pass is minecraft")
- term.setCursorPos(1,7)
- write("Why do you need it?")
- term.setCursorPos(1,8)
- write("LadyElisabeth: Mine broke")
- rPos = "D007"
- click()
- end
- function rD1337()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("Dickachu: Why did the chicken cross the road?")
- term.setCursorPos(1,4)
- write("Atlas: Why?")
- term.setCursorPos(1,5)
- write("Dickachu: To get to the gays house!")
- term.setCursorPos(1,6)
- write("Atlas: Alright...")
- term.setCursorPos(1,7)
- write("Dickachu: Knock knock")
- term.setCursorPos(1,8)
- write("Atlas: Who is there?")
- term.setCursorPos(1,9)
- write("Dickachu: The chicken!")
- term.setCursorPos(1,10)
- write("Atlas: Not funny :/")
- rPos = "D1337"
- click()
- end
- function rCache()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("discord_1337.txt")
- term.setCursorPos(1,4)
- write("discord_007.txt")
- term.setCursorPos(1,5)
- write("discord_9001.txt")
- rPos = "Cache"
- click()
- end
- function rCProg()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("local event, button, x, y = os.pullEvent(mouse_click)")
- term.setCursorPos(1,5)
- write("-- button gives info on which button has been pressed")
- term.setCursorPos(1,6)
- write("-- x and y are the positions of the click")
- rPos = "CProg"
- click()
- end
- function rFiss()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("Apparently the username Pikachu is very popular")
- term.setCursorPos(1,4)
- write("I can't sign up unless I pick another name")
- term.setCursorPos(1,5)
- write("So I guess I will put my usernames here so")
- term.setCursorPos(1,6)
- write("I don't forget")
- term.setCursorPos(1,8)
- write("Pikaman - Youtube")
- term.setCursorPos(1,9)
- write("Niggachu - Pornhub")
- term.setCursorPos(1,10)
- write("Pikerchu - Mineimator")
- rPos = "Fiss"
- click()
- end
- function rTFolder()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("Forum issues.txt")
- term.setCursorPos(1,4)
- write("Clicking Program.txt")
- rPos = "TFolder"
- click()
- end
- function rDir()
- cleer()
- write(">Back")
- term.setCursorPos(1,3)
- write("Testing folder")
- term.setCursorPos(1,4)
- write("CACHE")
- term.setCursorPos(1,5)
- write("Trash can")
- rPos = "Dir"
- click()
- end
- function rLogin()
- cleer()
- rPos = "Login"
- write("-Please login-")
- term.setCursorPos(1,2)
- write("Username: ")
- term.setBackgroundColor(colors.gray)
- write(" ")
- term.setCursorPos(11,2)
- write(uInput)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1,3)
- write("Password: ")
- term.setBackgroundColor(colors.gray)
- write(" ")
- term.setCursorPos(11,3)
- write(pInput)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1,5)
- write(">Back")
- term.setCursorPos(1,6)
- write(">Login")
- click()
- end
- function rHome()
- cleer()
- term.setCursorPos(19,5)
- term.setBackgroundColor(colors.yellow)
- write(" ")
- term.setCursorPos(19,6)
- write(" ")
- term.setCursorPos(29,6)
- write(" ")
- term.setCursorPos(19,7)
- write(" ")
- term.setBackgroundColor(colors.green)
- term.setCursorPos(20,6)
- write("-Welcome-")
- term.setBackgroundColor(colors.yellow)
- term.setCursorPos(19,8)
- write(" ")
- term.setCursorPos(25,8)
- write(" ")
- term.setCursorPos(19,9)
- write(" ")
- term.setCursorPos(19,11)
- write(" ")
- term.setCursorPos(19,10)
- write(" ")
- term.setCursorPos(32,10)
- write(" ")
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(20,8)
- write(">Login")
- term.setCursorPos(20,10)
- write(">Directories")
- rPos = "Home"
- click()
- end
- rHome()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement