Advertisement
BruceWplays

Farm V8 Updater

Sep 9th, 2022 (edited)
847
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. updateloop = 0
  2. udfarmargs = {...}
  3. if udfarmargs[1] == "noset" then
  4.     udopenset = 0
  5. end
  6. while true do
  7.     if fs.exists("Farmnew") then
  8.         shell.run("delete","Farmnew")
  9.     end
  10.     shell.run("pastebin","get","ZW6q8wWs","Farmnew")
  11.     if fs.exists("Farmnew") then
  12.         if fs.exists("Farmold") then
  13.             shell.run("delete","Farmold")
  14.         end
  15.         if fs.exists("Farm") then
  16.             shell.run("rename","Farm","Farmold")
  17.         end
  18.         shell.run("rename","Farmnew","Farm")
  19.         if fs.exists("Farm") then
  20.             break
  21.         end
  22.     end
  23.     if fs.exists("Farm") then
  24.         if updateloop > 20 then
  25.             break
  26.         end
  27.     end
  28.     if fs.exists("Farmold") then
  29.         if updateloop > 30 then
  30.             shell.run("rename","Farmold","Farm")
  31.             if fs.exists("Farm") then
  32.                 break
  33.             end
  34.         end
  35.     end
  36.     updateloop = updateloop + 1
  37. end
  38. local stu = fs.open("startup.lua", "w")
  39. stu.write('sleep(5)\nshell.run("farmupdate", "noset")')
  40. stu.close()
  41. if udopenset == 0 then
  42.     shell.run("Farm", "noset")
  43. else
  44.     shell.run("Farm")
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement