
I didn't compile it, I just took the binaries that were there, was that my mistake?
Also, I tried coding a farmer together from bits and pieces, and this:
- Code: Select all
var inventory = checkInventory();
var seeds = inventory.getItems("invobjs/carrot");
for (var i = 0; i < seeds.length; i++) {
jPrint(seeds[i].name);
jPrint(seeds[i].quality);
}
function checkInventory() {
if(!jHaveWindow("Inventory")) {
jToggleInventory();
while(!jHaveWindow("Inventory"))
jSleep(100);
}
return jGetWindow("Inventory").getInventories()[0];
}
results in

I don't think I actually need that, but I wanted to understand the language better.