AnonymusHochgenuss

updater

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