Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local filename, fileList;
- local X, Y, d, x, y, z, s, r, auto, avoid, autofuel, top, plug;
- --Finds the filename of the dig program.
- fileList = fs.list("");
- for _, file in ipairs(fileList) do
- if(file ~= 'rom' and file ~= 'startup' and file ~= 'ProtLib' and file ~= 'save') then
- filename = file;
- break;
- end;
- end;
- file = io.open('save', 'r');
- X = file:read('*l');
- Y = file:read('*l');
- d = file:read('*l');
- x = file:read('*l');
- y = file:read('*l');
- z = file:read('*l');
- s = file:read('*l');
- r = file:read('*l');
- auto = file:read('*l');
- avoid = file:read('*l');
- autofuel = file:read('*l');
- top = file:read('*l');
- plug = file:read('*l');
- shell.run(filename, X, Y, d, x, y, z, s, r, auto, avoid, autofuel, top, plug);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement