Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- colony = peripheral.wrap("bottom")
- list = fs.open("colony-request-list.txt", "w")
- content = colony.getRequests()
- print(#content .. " Active Request(s)\n*------------*")
- list.write(#content .. " Active Request(s)\n*------------*\n")
- for _, request in ipairs(content) do
- print(request.name .. " for\n" .. request.target .. ":\n" .. request.minCount .. " - " .. request.count .. "x")
- list.write(request.name .. " for\n" .. request.target .. ":\n" .. request.minCount .. " - " .. request.count .. "x\n")
- for _, item in ipairs(request.items) do
- print(item.displayName .. ": " .. tostring(item.count))
- list.write(item.displayName .. ": " .. tostring(item.count .. "\n"))
- end
- print("*------------*\n")
- list.write("*------------*\n\n")
- end
Advertisement
Add Comment
Please, Sign In to add comment