import <canadv.ash>
string questlog = visit_url("questlog.php?which=2");
boolean go_primordial() {
if (contains_text(questlog,"Primordial Fear")) return vprint("You have already completed the Primordial Fear quest.",2);
if (!can_adv($location[primordial soup],true)) return false;
// open the zone
string prop = get_property("usedAgainstCyrus");
if (prop == "") {
while (item_amount($item[memory of some delicious amino acids]) == 0) {
set_property("choiceAdventure349","3"); // swim down
obtain(1,"memory of some delicious amino acids",$location[primordial soup]);
}
if (use(1,$item[memory of some delicious amino acids])) {}
set_property("choiceAdventure349","1"); // swim up
obtain(1,"choiceadv",$location[primordial soup]);
}
boolean have_pair() {
for i from 4011 to 4016
if (!contains_text(prop,to_item(i)) && retrieve_item(1,to_item(i)))
return true;
return false;
}
// go fight cyrus a few times
while (!contains_text(questlog,"Primordial Fear")) {
obtain(3,"memory of some delicious amino acids",$location[primordial soup]);
while (!have_pair() && my_adventures() > 0) adventure(1,$location[primordial soup]);
if (my_adventures() == 0) return vprint("Out of adventures.",-2);
if (use(3,$item[memory of some delicious amino acids])) {}
obtain(1,"choiceadv",$location[primordial soup]); // let FTF throw the correct item at Cyrus
questlog = visit_url("questlog.php?which=2");
}
return true;
}