Grr... today I ran the script in the first post, without making any changes. I had farmed in the kitchens again today, so I had all the items I needed the script to handle... and it worked just fine. Though when I did something similar just using the cli, selling just 4 items, it failed. And...