Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made with Advanced Installer Creater--
- --YEP thats right this installs a program that made this program trippy right?
- print("Ready to install")
- print("Press any key to continue...")
- os.pullEvent("key")
- --This is a function is part of Pastebin! I didn't write this--
- --Well, I rewrote it to be used inside of a program rather than as a program itself--
- function get(sCode,sFile)
- local sPath = shell.resolve( sFile )
- if fs.exists( sPath ) then
- return false
- end
- local response = http.get("http://pastebin.com/raw.php?i="..textutils.urlEncode( sCode ))
- if response then
- local sResponse = response.readAll()
- response.close()
- local file = fs.open( sPath, "w" )
- file.write( sResponse )
- file.close()
- return true
- else
- return false
- end
- end
- if not http then
- error("Http API not enabled")
- end
- print("Downloading...")
- fs.makeDir("IC")
- if fs.exists("/IC/AIC") then
- print("File conflict! Deleting...")
- shell.run("delete /IC/AIC")
- print("Fixed. Retrying...")
- end
- if get("ne9NUiFX","/IC/AIC") then
- print("Successfully downloaded AIC")
- else
- print("Something went wrong while downloading AIC")
- return
- end
- fs.makeDir("IC")
- if fs.exists("/IC/button") then
- print("File conflict! Deleting...")
- shell.run("delete /IC/button")
- print("Fixed. Retrying...")
- end
- if get("YjXkvXaE","/IC/button") then
- print("Successfully downloaded button")
- else
- print("Something went wrong while downloading button")
- return
- end
- print("Done!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement