Advertisement
Jeyjey0

update2

Apr 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Deleting existing files...")
  4. if fs.exists("stripmine") then
  5. fs.delete("stripmine")
  6. end
  7. if fs.exists("mine") then
  8. fs.delete("mine")
  9. end
  10. if fs.exists("back") then
  11. fs.delete("back")
  12. end
  13. if fs.exists("inventoryFull") then
  14. fs.delete("inventoryFull")
  15. end
  16. if fs.exists("torch") then
  17. fs.delete("torch")
  18. end
  19. if fs.exists("bridge") then
  20. fs.delete("bridge")
  21. end
  22. print("Deleted")
  23. sleep(0.34)
  24. term.clear()
  25. term.setCursorPos(1,1)
  26. print("Downloading and installing new Versions...")
  27. print("Installing Stripmine...")
  28. function invisiblepastebin(code,name)
  29. local response = http.get(
  30. "http://pastebin.com/raw/"..code
  31. )
  32.  
  33. if response then
  34.  
  35. local sResponse = response.readAll()
  36. response.close()
  37. h = fs.open(name,"w")
  38. h.write(sResponse)
  39. h.close()
  40. return sResponse
  41. else
  42. print( "Failed." )
  43. end
  44. end
  45. invisiblepastebin("j89Q7vEq","torch")
  46. invisiblepastebin("WuKaySAr","mine")
  47. invisiblepastebin("JtYMSHtB","bridge")
  48. invisiblepastebin("1vqF49fb","stripmine")
  49. invisiblepastebin("LESThbQQ","back")
  50. invisiblepastebin("3SRpyw4n","inventoryFull")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement