Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Deleting existing files...")
- if fs.exists("stripmine") then
- fs.delete("stripmine")
- end
- if fs.exists("mine") then
- fs.delete("mine")
- end
- if fs.exists("back") then
- fs.delete("back")
- end
- if fs.exists("inventoryFull") then
- fs.delete("inventoryFull")
- end
- if fs.exists("torch") then
- fs.delete("torch")
- end
- if fs.exists("bridge") then
- fs.delete("bridge")
- end
- print("Deleted")
- sleep(0.34)
- term.clear()
- term.setCursorPos(1,1)
- print("Downloading and installing new Versions...")
- print("Installing Stripmine...")
- function invisiblepastebin(code,name)
- local response = http.get(
- "http://pastebin.com/raw/"..code
- )
- if response then
- local sResponse = response.readAll()
- response.close()
- h = fs.open(name,"w")
- h.write(sResponse)
- h.close()
- return sResponse
- else
- print( "Failed." )
- end
- end
- invisiblepastebin("j89Q7vEq","torch")
- invisiblepastebin("WuKaySAr","mine")
- invisiblepastebin("JtYMSHtB","bridge")
- invisiblepastebin("1vqF49fb","stripmine")
- invisiblepastebin("LESThbQQ","back")
- invisiblepastebin("3SRpyw4n","inventoryFull")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement