Jeyjey0

Installer4

Nov 4th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  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.  
  56. term.clear()
  57. term.setCursorPos(1, 1)
  58. print("Installed Stripmine program by Jey0")
  59. sleep(2)
Add Comment
Please, Sign In to add comment