Jeyjey0

Installer with ore detector

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