Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Quest installer 0.13
- slash = "/"
- side = "right" --edit this part
- if fs.exists(".user/version") then
- versionf = fs.open(".user"..slash.."version", "r")
- version = versionf.readLine()
- versionf.close()
- else
- if not fs.exists(".user") then
- fs.makeDir(".user")
- end
- shell.run("pastebin", "get", "rdSQScWF", ".user/version")
- versionf = fs.open(".user"..slash.."version", "r")
- version = versionf.readLine()
- versionf.close()
- end
- serverid = 784
- print("Quest installer Launched")
- print(" ")
- print(" ")
- print(" ____________ ")
- print(" | QUEST | ")
- print(" | Installer| ")
- print(" | "..version.." | ")
- print(" ------------ ")
- print(" ")
- if not fs.exists("modem") then
- shell.run("pastebin", "get", "vzw5KLjj", "modem")
- else
- fs.delete("modem")
- shell.run("pastebin", "get", "vzw5KLjj", "modem")
- end
- print("Modem API installed")
- fs.makeDir(".user")
- print("Directory, user created, this stores the username, server ID, Version, and the small amount of data to prevent hacks")
- servid = fs.open(".user"..slash.."servid", "w")
- servid.write(serverid)
- servid.close()
- versionf = fs.open(".user"..slash.."version", "w")
- versionf.write(version)
- versionf.close()
- regf = fs.open(".user"..slash.."register", "w")
- regf.write("false")
- regf.close()
- os.loadAPI("modem")
- print("Version and server id files created, all others need more data")
- print("Retrieving more data!")
- modem.transmit(782,782,"antihack")
- modem.open(side, serverid)
- modem.receive()
- antihack = modem.getdistance()
- nohack = fs.open(".user"..slash.."antihack", "w")
- nohack.write(antihack)
- nohack.close()
- print("Anti hack received")
- print("Retrieving client")
- fs.delete("quest")
- shell.run("pastebin", "get", "hRWFXW39", "quest")
- print("Downloaded client")
- print("Install completed")
- print("Run quest manually to complete setup!")
Advertisement
Add Comment
Please, Sign In to add comment