Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --require
- local component = require("component")
- local computer = require("computer")
- local meController = component.proxy(component.me_controller.address)
- local io = require("io")
- local itemid = 1
- shell = require("shell")
- local debug = true
- post = shell.execute
- --require
- function upload(file)
- end
- storedItem = meController.getItemsInNetwork({
- name = curName,
- damage = curDamage,
- id = iditem
- })
- local f = io.open("base.txt","w")
- if (debug == false) then
- while(itemid < 9999) do
- print("------Запись Start-------")
- print("["..itemid.."]" .. storedItem[itemid].label .. ": " .. storedItem[itemid].size .. "\n")
- f:write("["..itemid.."]" .. storedItem[itemid].label .. ": " .. storedItem[itemid].size .. "\n")
- print("------Запись ОК-------")
- itemid = itemid + 1
- end
- else
- print("debug true")
- f:close()
- computer.beep()
- print(storedItem[1].id)
- end
- print("------Конец-------")
- computer.beep()
- f:close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement