Is there a version which contains some sort of get_bounty(location), so if there is a bounty available for that location today it will automatically get it? Thinking Top Floor of the castle farming
Edit: This is what I came up with, unless there is a better way to accomplish it?
Edit: This is what I came up with, unless there is a better way to accomplish it?
PHP:
boolean get_bounty(item it){
string bhh_page = visit_url("bhh.php");
if( bhh_page.contains_text("be a Bounty Hunter") && bhh_page.contains_text("value=" + it.to_int()) ){
visit_url("bhh.php?pwd&action=takebounty&whichitem=" + it.to_int());
return true;
}
return false;
}
// If there is a bounty available for a certain location, get it
boolean get_bounty(location loc){
foreach it in $items[]{
if( it.bounty == loc ){ return get_bounty(it); }
}
return false;
}
Last edited: