I have no idea where to get started on this pretty much, so I started on calling from a simple file from my website, the file is just called "test" and has no extension. The thing that is on this site is this:
100 cobblestone 1
200 dirt 2
300 gravel 3
The way I will use this is (still have to edit the first part according to the interactive sorter), but I want it to see it as:
[Item ID from the interactive sorter] [Name it will be given] [Chest number to go into]
so I got started with looking around and trying to get it to put the stuff from the website into a table. This is where my first problem shows up, I have no idea how to do this. I wrote the following script:
website = http.get("http://www.nowebsiteforyou.com/ftb/test")
print(website.readAll()) -- check if it even sees the website
itemtable = { }
table.insert(itemtable,website)
itemtest = itemtable[1]
itemtest2 = itemtable[2]
print(itemtest)
print(itemtest2)
As you pro's will look at this, you will probably facepalm, but as I said, I have no idea what I'm doing. I also read something about "ipairs" but I can't seem to understand what they exactly are, and the way you use them what every part does :/ So if you suggest that, please explain with it how it works :)/>
Also small note: Again, I am a starter with all this, I've only wrote basic scripts and nothing really complicated so this is my first real big project so please, please explain every single part :P/>
Thanks ahead! :)/>