Advertisement
Jeyjey0

Installer5

Nov 5th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function ininstaller(code,name)
  2. local response = http.get(
  3. "http://pastebin.com/raw/"..code
  4. )
  5.  
  6. if response then
  7.  
  8. local sResponse = response.readAll()
  9. response.close()
  10. h = fs.open(name,"w")
  11. h.write(sResponse)
  12. h.close()
  13. return sResponse
  14. else
  15. print( "Failed." )
  16. end
  17. end
  18. term.clear()
  19. term.setCursorPos(1, 1)
  20. print("Installing...")
  21. if not fs.exists("mine") == true then
  22. ininstaller("sKw4TY2m","mine")
  23. sleep(0.3)
  24. end
  25. sleep(0.25)
  26. if not fs.exists("mine2") == true then
  27. ininstaller("uxFcBnFB","mine2")
  28. sleep(0.3)
  29. end
  30.  
  31. sleep(0.25)
  32. if not fs.exists("mine3") == true then
  33. ininstaller("32KicVhL","mine3")
  34. sleep(0.3)
  35. end
  36.  
  37. sleep(0.25)
  38. if not fs.exists("mine4") == true then
  39. ininstaller("JH83qrQY","mine4")
  40. sleep(0.3)
  41. end
  42.  
  43. sleep(0.25)
  44. if not fs.exists("torch") == true then
  45. ininstaller("X1vczfG6","torch")
  46. sleep(0.3)
  47. end
  48.  
  49.  
  50. sleep(0.25)
  51. if not fs.exists("stripmine") == true then
  52. ininstaller("1N2wT96P","stripmine")
  53. sleep(0.3)
  54. end
  55. sleep(0.25)
  56. if not fs.exists("detect") == true then
  57. ininstaller("hGPxfBzS","detect")
  58. sleep(0.3)
  59. end
  60. term.clear()
  61. term.setCursorPos(1, 1)
  62. print("Installed Stripmine program by Jey0")
  63. sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement