per http://kolmafia.us/showthread.php?9824-how-to-detect-Clancy-status-in-ash could someone please add a way of detecting clancy status from ash scripts.
many thanks
Dave
many thanks
Dave
boolean check_Clancy()
{
if (minstrel_quest()) {
//if (contains_text(visit_url("charpane.php"), "_att.gif")) {
string what_now = visit_url("main.php?action=clancy");
matcher m_choice = create_matcher("whichchoice\\s+value=(\\d+)", what_now);
if (!find(m_choice)) abort("Looks like there's some confusion about what Clancy *really* wants...");
visit_url("choice.php?whichchoice=" + group(m_choice, 1) + "&option=1");
return true;
}
return false;
}