bumcheekcity
Active member
Would BCA need anything? Surely run_choice() is all that's needed?
visit_url("choice.php?whichchoice=580&option=2&pwd");
visit_url("choice.php?whichchoice=584&option=4&pwd");
visit_url("choice.php?whichchoice=580&option=1&pwd");
visit_url("choice.php?whichchoice=123&option=2&pwd");
cli_execute("dvorak");
visit_url("choice.php?whichchoice=125&option=3&pwd");
while (item_amount($item[spooky sapling]) == 0) {
cli_execute("mood execute");
if (contains_text(visit_url("adventure.php?snarfblat=15"), "Combat")) {
bumRunCombat();
} else {
visit_url("choice.php?whichchoice=502&option=1&pwd="+my_hash());
visit_url("choice.php?whichchoice=503&option=3&pwd="+my_hash());
if (item_amount($item[bar skin]) > 0) visit_url("choice.php?whichchoice=504&option=2&pwd="+my_hash());
visit_url("choice.php?whichchoice=504&option=3&pwd="+my_hash());
visit_url("choice.php?whichchoice=504&option=4&pwd="+my_hash());
}
}
if (can_interact()) {
if (adventure(my_adventures(), loc, "consultCasual")) {}
} else if (consultScript != "") {
if (adventure(my_adventures(), loc, consultScript)) {}
} else if (my_primestat() == $stat[Mysticality] && in_hardcore()) {
if (adventure(my_adventures(), loc, "consultMyst")) {}
} else {
if (adventure(my_adventures(), loc)) {}
}
if(my_adventures() == 0)
return false;
else
return true;
Since the script already uses adventures one by one, why not add a check for semi rares?
Since the script already uses adventures one by one, why not add a check for semi rares?
BCC: We have completed the stage [guild].
bcasc_lastCouncilVisit => 89001
BCC: Training Feasting
You learned a new skill: Demand Sandwich
BCC: Training Feasting
You learned a new skill: Legendary Girth
BCC: Training Feasting
You learned a new skill: Song of the Glorious Lunch
BCC: Training Feasting
You learned a new skill: Big Boned
BCC: Training Feasting
You learned a new skill: Legendary Appetite
BCC: Training Feasting
You learned a new skill: Heroic Belch
BCC: Training Feasting
You learned a new skill: Hungry Eyes
BCC: Training Feasting
You learned a new skill: More to Love
BCC: Training Feasting
You learned a new skill: Barrel Chested
BCC: Training Feasting
You learned a new skill: Gourmand
BCC: Training Shouting
You learned a new skill: Intimidating Bellow
BCC: Training Shouting
You learned a new skill: Legendary Bravado
BCC: Training Shouting
You learned a new skill: Song of Accompaniment
BCC: Unable to train - no room for any more Boris
BCC: We have not completed the stage [knob].
...
Level 9 Starting
bcasc_lastCouncilVisit => 89009
You acquire an item: strange leaflet
BCC: Training Fighting
You learned a new skill: Cleave
BCC: Unable to train - no room for any more Boris
BCC: stopping so you can pay attention to Clancy.
void bcAutoBoris() {
/// needs re-write !!
/// we want the user to be able to configure the priority of fight/shout/feast
/// (prioity 0 = abort so user can train manually), blank = do nothing at all
/// e.g. 321 = feast/shout/fight, 123 = fight/shout/feast, 30=feast then manual abort
string defaultPriority = "321";
string borisResult = visit_url("da.php?place=gate1");
while (contains_text(borisResult, "hungering for knowledge")) {
/// can this be written better? array of text vs skill numbers?
if (contains_text(borisResult, "Study Feasting")) {
print("BCC: Training Feasting", "purple");
visit_url("da.php?whichtree=3&action=borisskill");
} else {
if (contains_text(borisResult, "Study Shouting")) {
print("BCC: Training Shouting", "purple");
visit_url("da.php?whichtree=2&action=borisskill");
} else {
if (contains_text(borisResult, "Study Fighting")) {
print("BCC: Training Fighting" ,"purple");
visit_url("da.php?whichtree=1&action=borisskill");
} else {
print("BCC: You are a fully trained Boris." ,"purple");
return;
}
}
}
borisResult = visit_url("da.php?place=gate1");
}
print("BCC: Unable to train - no room for any more Boris", ,"purple");
return;
}
void bcAutoClancy() {
/// got to be a better way than this, needs a config option as well
string charpane = visit_url("charpane.php");
if (contains_text(charpane, "_att.gif")) abort("BCC: stopping so you can pay attention to Clancy.");
/// do we eventually want to do this automatically?
/// what about buying the instrument from Uncle P's?
}
void bcAutoGuild() {
/// eventually the code to check and buy guild skills will go here ...
}
void bcCouncil() {
int lastVisit = get_property("bcasc_lastCouncilVisit").to_int();
int thisVisit = 1000*my_ascensions()+my_level();
if (lastVisit < thisVisit) {
string visitString = thisVisit.to_string();
set_property("bcasc_lastCouncilVisit", visitString);
visit_url("council.php");
if (my_path() == "Avatar of Boris") {
bcAutoBoris();
bcAutoClancy();
} else {
bcAutoGuild();
}
}
return;
}