Apparently the eldritch invasion is interfering with the script a little bit when reading meat from Hagnk.. I implemented a small fix so that it at least works if you don't have any meat stored.
It's the following line in the original version causing trouble so another option is to just comment it out, such as if you're using a different version (it's not important to the script).
storage_meat = excise(visit_url("storage.php?which=5"),"You have "," meat").to_int();
There was also another big problem with the other version I uploaded as CFStat will report a price of 0 on low-volume items, so in such cases it's now ignored, and mafias price is used.