Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- updateloop = 0
- udfarmargs = {...}
- if udfarmargs[1] == "noset" then
- udopenset = 0
- end
- while true do
- if fs.exists("Farmnew") then
- shell.run("delete","Farmnew")
- end
- shell.run("pastebin","get","ZW6q8wWs","Farmnew")
- if fs.exists("Farmnew") then
- if fs.exists("Farmold") then
- shell.run("delete","Farmold")
- end
- if fs.exists("Farm") then
- shell.run("rename","Farm","Farmold")
- end
- shell.run("rename","Farmnew","Farm")
- if fs.exists("Farm") then
- break
- end
- end
- if fs.exists("Farm") then
- if updateloop > 20 then
- break
- end
- end
- if fs.exists("Farmold") then
- if updateloop > 30 then
- shell.run("rename","Farmold","Farm")
- if fs.exists("Farm") then
- break
- end
- end
- end
- updateloop = updateloop + 1
- end
- local stu = fs.open("startup.lua", "w")
- stu.write('sleep(5)\nshell.run("farmupdate", "noset")')
- stu.close()
- if udopenset == 0 then
- shell.run("Farm", "noset")
- else
- shell.run("Farm")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement