The problem with the forage script is in the Itemname field.
It is returning "NULL" for all items, so it is unable to determine what is available to loot, so it skips the loot statement.
I'm no programmer, but have been looking at it myself the last couple of days, and I have no idea how to fix it....