Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.white)
- shell.run("clear")
- if term.isColor() then
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- print("[Client] PC check.")
- else
- term.setBackgroundColor(colors.black)
- shell.run("clear")
- term.setCursorPos(1,1)
- print("You need an Advanced Computer")
- sleep(10)
- os.reboot()
- end
- if not http then
- term.setBackgroundColor(colors.black)
- shell.run("clear")
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Http is not enabled")
- print()
- print("Edit the config:")
- write("[Config] -> ")
- term.setTextColor(colors.white)
- write("enableAPI_http=")
- term.setTextColor(colors.yellow)
- write("true")
- sleep(5)
- os.reboot()
- end
- if fs.exists(".minecraft/bin/minecraft/menu/screen") then
- fs.delete(".minecraft/bin/minecraft/menu/screen") end
- if fs.exists(".minecraft/bin/labyos/menu/screen") then
- fs.delete(".minecraft/bin/labyos/menu/screen") end
- if fs.exists(".minecraft/bin/labyos/setup/a") then
- fs.delete(".minecraft/bin/labyos/setup/a") end
- fs.makeDir(".minecraft")
- fs.makeDir(".minecraft/bin/minecraft/menu")
- fs.makeDir(".minecraft/bin/minecraft/META-INF")
- fs.makeDir(".minecraft/texturenpacks")
- fs.makeDir(".minecraft/bin/minecraft")
- fs.makeDir(".minecraft/texturenpacks")
- fs.makeDir(".minecraft/saves")
- fs.makeDir(".minecraft/config")
- fs.makeDir(".minecraft/bin/labyos/menu/")
- fs.makeDir(".minecraft/bin/labyos/setup/")
- term.setTextColor(colors.white)
- fs.delete(".minecraft/bin/labyos/setup/step2")
- fs.delete(".minecraft/bin/labyos/setup/a")
- shell.run("pastebin get zwnGBpGf .minecraft/bin/labyos/setup/b")
- shell.run("pastebin get kg4JWkWz .minecraft/bin/labyos/setup/step4")
- shell.run("pastebin get MnbC1b3K .minecraft/bin/labyos/setup/step3r")
- shell.run("pastebin get gwY3mbW4 .minecraft/bin/labyos/setup/step3")
- shell.run("pastebin get JS1BwWCY .minecraft/bin/labyos/setup/step2")
- shell.run("pastebin get qQY0rdDf .minecraft/bin/labyos/setup/a")
- shell.run("pastebin get HzryNrQ6 .minecraft/bin/minecraft/menu/screen")
- shell.run("pastebin get GMrW3JSb .minecraft/texturenpacks/bg.png")
- shell.run("pastebin get menC9QwE .minecraft/texturenpacks/button.png")
- shell.run("pastebin get RTpm0Azp .minecraft/texturenpacks/logo.png")
- shell.run("pastebin get Evvrwchr .minecraft/texturenpacks/logomenu.png")
- shell.run("pastebin get c1da047A .minecraft/bin/labyos/menu/screen")
- shell.run("pastebin get d3aZT093 .minecraft/bin/labyos/a")
- shell.run("pastebin get 2FdiqMS5 .minecraft/bin/labyos/b")
- shell.run("pastebin get 3pnxk5bG .minecraft/bin/labyos/c")
- shell.run("pastebin get 8LadBNEf .minecraft/bin/labyos/d")
- shell.run("pastebin get PSxa8e6B .minecraft/bin/labyos/e")
- term.setCursorPos(1,2)
- if fs.exists("startup") then
- term.setTextColor(colors.black)
- term.setCursorPos(1,2)
- print("[Client] (Pastebin) Updating..")
- sleep(1)
- fs.delete("startup") end
- term.setTextColor(colors.white)
- shell.run("pastebin get FqZwgAeQ startup")
- term.setCursorPos(1,3)
- print("[Client] Updated.")
- sleep(0.1)
- if fs.exists(".minecraft/bin/minecraft/menu/screen") then
- print("[Client] (Pastebin) Updating..")
- sleep(1)
- fs.delete(".minecraft/bin/minecraft/menu/screen") end
- term.setTextColor(colors.white)
- shell.run("pastebin get HzryNrQ6 .minecraft/bin/minecraft/menu/screen")
- term.setCursorPos(1,2)
- print("[Client] Updated.")
- sleep(0.1)
- if fs.exists(".minecraft/bin/minecraft/menu/screen") then
- print("[Client] (fs) .minecraft/bin/minecraft/menu/screen")
- sleep(0.1)
- else
- term.setTextColor(colors.white)
- shell.run("pastebin get HzryNrQ6 .minecraft/bin/minecraft/menu/screen")
- shell.run("pastebin get GMrW3JSb .minecraft/texturenpacks/bg.png")
- shell.run("pastebin get menC9QwE .minecraft/texturenpacks/button.png")
- shell.run("pastebin get RTpm0Azp .minecraft/texturenpacks/logo.png")
- shell.run("pastebin get Evvrwchr .minecraft/texturenpacks/logomenu.png")
- print("[Client] (fs) .minecraft/bin/minecraft/menu/screen created.")
- print("[Client] (fs) .minecraft/texturenpacks/*.png created.")
- os.reboot()
- end
- shell.run("clear")
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- print("[Client] (Pastebin) Downloading Files...")
- if fs.exists(".minecraft/changelog.txt") then
- fs.delete(".minecraft/changelog.txt") end
- term.setTextColor(colors.white)
- shell.run("pastebin get DBKsrwKq .minecraft/changelog.txt")
- term.setTextColor(colors.black)
- term.setCursorPos(1,2)
- fs.makeDir(".minecraft/bin/minecraft/menu")
- fs.makeDir(".minecraft/bin/minecraft/META-INF")
- fs.makeDir(".minecraft/texturenpacks")
- fs.makeDir(".minecraft/bin/minecraft")
- fs.makeDir(".minecraft/texturenpacks")
- fs.makeDir(".minecraft/saves")
- fs.makeDir(".minecraft/config")
- if fs.exists(".minecraft/texturenpacks/launcher.png") then
- print("[Client] (fs) .minecraft/texturenpacks/launcher.png")
- sleep(0.1)
- else
- term.setTextColor(colors.white)
- shell.run("pastebin get ccNTABJZ .minecraft/texturenpacks/launcher.png")
- term.setTextColor(colors.black)
- print("[Client] (fs) .minecraft/texturenpacks/launcher.png created.")
- sleep(0.1)
- end
- print("[Client] (fs) Check files.")
- sleep(0.1)
- if fs.exists(".minecraft") then
- print("[Client] (fs) .minecraft exists.")
- sleep(0.1)
- else
- fs.makeDir(".minecraft/bin/minecraft")
- print("[Client] (fs) .minecraft/bin/minecraft created.")
- end
- local function screen()
- image = paintutils.loadImage(".minecraft/texturenpacks/launcher.png")
- paintutils.drawImage(image, 1, 1)
- end
- local function text()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.setCursorPos(1,3)
- shell.run(".minecraft/changelog.txt")
- term.setCursorPos(1,19)
- write("LabyStudio")
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.brown)
- term.setTextColor(colors.white)
- term.setCursorPos(39,7)
- print("Minecraft")
- term.setBackgroundColor(colors.lightGray)
- term.setTextColor(colors.black)
- term.setCursorPos(1,1)
- print("FlashCraftLauncher 0.1 Snapshot version")
- term.setCursorPos(38,14)
- term.setBackgroundColor(colors.white)
- print("Username:")
- term.setCursorPos(38,16)
- print("Password:")
- end
- local function login()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(38,15)
- write("")
- name = read()
- term.setCursorPos(38,17)
- write("")
- password = read("*")
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- testfor = http.get("http://login.minecraft.net/?user=" ..name.. "&password=" ..password.. "&version=12")
- printresult = testfor.readAll()
- if printresult == "Account migrated, use e-mail as username." then
- for badloop=0,3 do
- term.setCursorPos(38,18)
- term.setTextColor(colors.black)
- print("Bad login")
- sleep(0.1)
- term.setCursorPos(38,18)
- term.setTextColor(colors.red)
- print("Bad login")
- sleep(0.1)
- end
- term.setBackgroundColor(colors.white)
- term.setCursorPos(38,15)
- print(" ")
- term.setCursorPos(38,17)
- print(" ")
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(38,15)
- print(" ")
- term.setCursorPos(38,17)
- print(" ")
- text()
- login()
- end
- if printresult == "Bad login" then
- for badloop=0,3 do
- term.setCursorPos(38,18)
- term.setTextColor(colors.black)
- print("Bad login")
- sleep(0.1)
- term.setCursorPos(38,18)
- term.setTextColor(colors.red)
- print("Bad login")
- sleep(0.1)
- end
- term.setBackgroundColor(colors.white)
- term.setCursorPos(38,15)
- print(" ")
- term.setCursorPos(38,17)
- print(" ")
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(38,15)
- print(" ")
- term.setCursorPos(38,17)
- print(" ")
- text()
- login()
- else
- term.setCursorPos(38,13)
- term.setBackgroundColor(colors.gray)
- print(" Feedback! ")
- term.setBackgroundColor(colors.white)
- term.setCursorPos(38,15)
- print(" ")
- term.setCursorPos(38,17)
- print(" ")
- term.setBackgroundColor(colors.lightGray)
- term.setCursorPos(38,14)
- print(" ")
- term.setCursorPos(38,15)
- print(" ")
- term.setCursorPos(38,16)
- print(" ")
- term.setCursorPos(38,17)
- print(" ")
- term.setCursorPos(38,18)
- print(" ")
- term.setCursorPos(38,15)
- print(" Welcome,")
- term.setCursorPos(38,16)
- print(" ",name)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(1,17)
- write(" ")
- term.setCursorPos(49,16)
- term.setBackgroundColor(colors.white)
- print(" ")
- term.setCursorPos(38,18)
- term.setBackgroundColor(colors.gray)
- print(" Login ")
- term.setCursorPos(29,19)
- term.setBackgroundColor(colors.white)
- write("Logout")
- end
- lastlogin = fs.open(".minecraft/lastlogin", "w")
- lastlogin.write(name)
- lastlogin.close()
- local function play()
- term.setCursorPos(1,2)
- term.setBackgroundColor(colors.white)
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- term.setCursorPos(1,2)
- term.setTextColor(colors.black)
- if fs.exists(".minecraft/bin/minecraft/menu/screen") then
- print("[Client] Screen loaded.")
- sleep(1)
- else
- term.setTextColor(colors.white)
- print("[Client] Download files..")
- shell.run("pastebin get ------- .minecraft/bin/minecraft/menu/screen")
- if not fs.exists(".minecraft/texturenpacks/logo.png") then
- shell.run("pastebin get ------- .minecraft/texturenpacks/logo.png")
- end
- term.setCursorPos(1,3)
- print("[Client] Screen loaded.")
- sleep(1)
- end
- shell.run("clear")
- logo = paintutils.loadImage(".minecraft/texturenpacks/logo.png")
- paintutils.drawImage(logo, 1, 1)
- sleep(3)
- shell.run(".minecraft/bin/minecraft/menu/screen")
- end
- local function feedback()
- term.setCursorPos(1,2)
- term.setBackgroundColor(colors.white)
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- term.setCursorPos(2,3)
- print("Subject:")
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(2,4)
- print(" ")
- print("")
- term.setBackgroundColor(colors.white)
- print(" Name:")
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(2,7)
- print(" ")
- term.setCursorPos(2,7)
- term.setTextColor(colors.white)
- print(name)
- term.setTextColor(colors.black)
- print("")
- term.setBackgroundColor(colors.white)
- print(" Message:")
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(2,10)
- print(" ")
- term.setCursorPos(2,11)
- print(" ")
- term.setCursorPos(2,12)
- print(" ")
- term.setCursorPos(2,13)
- print(" ")
- term.setCursorPos(2,14)
- print(" ")
- term.setCursorPos(2,15)
- print(" ")
- term.setCursorPos(2,4)
- term.setTextColor(colors.white)
- write("")
- inputS = read()
- if inputS=="" then
- term.setCursorPos(2,4)
- term.setTextColor(colors.red)
- print("No subject")
- inputS = "No Text"
- term.setTextColor(colors.white)
- end
- term.setCursorPos(2,10)
- inputM = read()
- if inputM=="" then
- term.setCursorPos(2,10)
- term.setTextColor(colors.red)
- print("No text")
- sleep(1)
- inputM = "No Text"
- term.setTextColor(colors.white)
- end
- term.setTextColor(colors.white)
- email = "Betreff: "..inputS.."\n ----------------------------------------- \n Name: "..name.."\n ----------------------------------------- \n Msg:"..inputM
- http.post(
- "http://labystudio.net84.net/CC.php?message="..textutils.urlEncode(tostring(email))
- )
- term.setCursorPos(1,2)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- print(" ")
- print(" Thank you for your feedback! ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- end
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "41,18" and button == 1 then
- play()
- end
- if XY == "42,18" and button == 1 then
- play()
- end
- if XY == "43,18" and button == 1 then
- play()
- end
- if XY == "44,18" and button == 1 then
- play()
- end
- if XY == "45,18" and button == 1 then
- play()
- end
- if XY == "29,19" and button == 1 then
- screen()
- text()
- login()
- end
- if XY == "30,19" and button == 1 then
- screen()
- text()
- login()
- end
- if XY == "31,19" and button == 1 then
- screen()
- text()
- login()
- end
- if XY == "32,19" and button == 1 then
- screen()
- text()
- login()
- end
- if XY == "33,19" and button == 1 then
- screen()
- text()
- login()
- end
- if XY == "39,13" and button == 1 then
- feedback()
- end
- if XY == "40,13" and button == 1 then
- feedback()
- end
- if XY == "41,13" and button == 1 then
- feedback()
- end
- if XY == "42,13" and button == 1 then
- feedback()
- end
- if XY == "43,13" and button == 1 then
- feedback()
- end
- if XY == "44,13" and button == 1 then
- feedback()
- end
- if XY == "45,13" and button == 1 then
- feedback()
- end
- if XY == "46,13" and button == 1 then
- feedback()
- end
- if XY == "47,13" and button == 1 then
- feedback()
- end
- if XY == "48,13" and button == 1 then
- feedback()
- end
- end
- end
- local function launcher()
- screen()
- text()
- login()
- end
- launcher()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement