Jeyjey0

Installer11

Nov 13th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 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. sleep(0.25)
  31. if not fs.exists("mine3") == true then
  32. ininstaller("32KicVhL","mine3")
  33. sleep(0.3)
  34. end
  35. sleep(0.25)
  36. if not fs.exists("mine4") == true then
  37. ininstaller("JH83qrQY","mine4")
  38. sleep(0.3)
  39. end
  40. sleep(0.25)
  41. if not fs.exists("torch") == true then
  42. ininstaller("X1vczfG6","torch")
  43. sleep(0.3)
  44. end
  45. sleep(0.25)
  46. if not fs.exists("stripmine") == true then
  47. ininstaller("xqZYmzsN","stripmine")
  48. sleep(0.3)
  49. end
  50. sleep(0.25)
  51. if not fs.exists("detect") == true then
  52. ininstaller("x9mcx4yi","detect")
  53. sleep(0.3)
  54. end
  55. term.clear()
  56. term.setCursorPos(1, 1)
  57. print("Installed Stripmine program by Jey0")
  58. sleep(2)
Add Comment
Please, Sign In to add comment