Unless you also have a check for bounty items in your inventory...?
import <zlib.ash>
record temp{
int qty;
location loc;
int safemoxie;
};
temp [item] bounty;
load_current_map("bounty", bounty);
foreach i in bounty {
if(bounty[i].qty==item_amount(i)) visit_url("bhh.php");
}