About the BHH Library, bountyhunting.ash, bounty.txt, and 'make bountytxt.ash'
These scripts make use of a clever idea by macman to store data about all the potential bountyhunts in a map file, so that you can access metadata about the various bountyhunts (how many items, which items, which zone, etc). This data file uses the following metadata for each bountyhunt.
I think it's fairly self descriptive.
# -1 means boost -combats, 0 means leave alone, 1 means boost +combats
int [int] choiceAdventureChanges;
"Bounty.txt" is the actual data file used, "make bountytxt.ash" is the script one can use to generate "bounty.txt".
I have also written a script to generally facilitate scripted bountyhunting, although it will not actually do your bountyhunting for you. This script is "bountyhunting.ash". Of particular interest is a function which will report which bountyhunts are available, so you can make 'smart' scripted decisions as to which bountyhunt to take.
I make use of this library file in "auto bountyhunt.ash".
There are several other useful bountyhunt related functions.
# returns a map of bountyinfo objects
# each one represents one of todays bounty hunting options
# the first one is the 'easy' one, third one is the 'hard' one
BountyInfo [int] bounty_options ()
# accept a given bounty hunt with the BHH
boolean accept_bounty(item acceptplz)
# return true if you have an outstanding hunt
# return true if you've completed a hunt today
# just in case you want to cancel
# just in case you forget your current bounty
This final function attempts to figure out if you can access the particular bountyhunt zone.
boolean can_access_hunt(BountyInfo hunt)