Advertisement
ecco7777

CC Item price lister

Jun 12th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. i=peripheral.wrap("bottom")
  2. while true do
  3. e, id, amount=os.pullEvent("isort_item")
  4. fp=fs.open("price","a")
  5. fp.writeLine(id)
  6. print("Id: "..tostring(id))
  7. print("Item name: ")
  8. fp.writeLine(io.read())
  9. print("Preis: ")
  10. fp.writeLine(io.read())
  11. fp.close()
  12. i.sort(3,1)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement