OK. Here's my rewrite of auto bounty script. I've tried to follow KISS principle.
Script takes two arguments, maximum number of adventures and maximum moxie difference (difference between moxie and "moxie for no hit" in given area).
All bounty data stored in map. Item, plural name, quantity...