Advertisement
AnonymusHochgenuss

updater

Feb 15th, 2020 (edited)
1,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. function connectiontest()
  2.  if fs.exists("testfile") then
  3.   fs.delete("testfile")
  4.  end
  5.  shell.run("pastebin get f8JpQz2h testfile")
  6.  if fs.exists("testfile") then
  7.   pastebin="true"
  8.   fs.delete("updatecom")
  9.   shell.run("pastebin get vqd5zi1n updatecom")
  10.   shell.run("clear")
  11.   print("connection to pastebin success")
  12.  else
  13.   pastebin="false"
  14.   shell.run("clear")
  15.   print("connection to pastebin failed")
  16.   print("")
  17.   print("Try again to connect")
  18.   write("Re-connect in: ")
  19.   textutils.slowPrint("3..2..1")
  20.   sleep(1)
  21.  end
  22. end
  23. connectiontest()
  24. while pastebin == "false" do
  25.  connectiontest()
  26. end
  27. if fs.exists("baum") then
  28.  fs.delete("baum")
  29.  shell.run("pastebin get PYJrZtvD baum")
  30. end
  31.  
  32. if fs.exists("receive") then
  33.  fs.delete("receive")
  34.  shell.run("pastebin get T561UA3C receive")
  35. end
  36.  
  37. if fs.exists("dig") then
  38.  fs.delete("dig")
  39.  shell.run("pastebin get dmWfdKBB dig")
  40. end
  41.  
  42. if fs.exists("farm") then
  43.  fs.delete("farm")
  44.  shell.run("pastebin get rvxiLLt8 farm")
  45. end
  46.  
  47. if fs.exists("goto") then
  48.  fs.delete("goto")
  49.  if fs.exists("slave") then
  50.   shell.run("pastebin get 99h4tSqA goto")
  51.  elseif fs.exists("chunkloader") then
  52.   shell.run("pastebin get bTEJnfKt goto")
  53.  end
  54. end
  55.  
  56. if fs.exists("worker") then
  57.  fs.delete("worker")
  58.  shell.run("pastebin get v0FPk5c7 worker")
  59. end
  60.  
  61. if fs.exists("chunkgoto") then
  62.  fs.delete("chunkgoto")
  63.  shell.run("pastebin get bTEJnfKt chunkgoto")
  64. end
  65.  
  66. if fs.exists("chunkworker") then
  67.  fs.delete("chunkworker")
  68.  shell.run("pastebin get sHT3JWGa chunkworker")
  69. end
  70.  
  71. if fs.exists("chunkloader") then
  72.  fs.delete("chunkloader")
  73.  shell.run("pastebin get jNT2dWPq chunkloader")
  74. end
  75.  
  76. if fs.exists("slave") then
  77.  fs.delete("slave")
  78.  shell.run("pastebin get wkxKPemM slave")
  79. end
  80.  
  81. if fs.exists("dl") then
  82.  fs.delete("dl")
  83. end
  84. shell.run("pastebin get 5PjTiWGk dl")
  85. if fs.exists("updater") then
  86.  fs.delete("updater")
  87. end
  88. shell.run("pastebin get M6Erb7su updater")
  89. shell.run("clear")
  90. id=os.getComputerID()
  91. print("Computer-ID: "..id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement