Weatherboy
Member
So, I've had this cli script that does Felonia for me in aftercore for quite some time, but I've recently been trying to make it more user friendly across a wider audience. But now I seem to be kinda stuck.
the 2nd part of the quest is to retrieve the elemental mushroom that Zapruder asks for, then, if you don't already have that familiar, you use the mushroom and finally equip the (new) familiar.
I think I've figured out how to figure out which one Zapruder is asking for, but then I run into trouble trying to that string into an appropriate $item and $familiar.
I'm not really in a position where I can test this right now, but obviously, the part i'm concerned about is where I create a new string and then do .to_item() and .to_familiar() on it. Is this going to work at all?
I don't know, maybe it will be easier to see if Zapruder gives you a pregnant mushroom when you return, then just equip any of the elemental fairies you might already have, cuz you don't have to use the same fairy that zapruder gives you. Ideas or suggestions?
the 2nd part of the quest is to retrieve the elemental mushroom that Zapruder asks for, then, if you don't already have that familiar, you use the mushroom and finally equip the (new) familiar.
I think I've figured out how to figure out which one Zapruder is asking for, but then I run into trouble trying to that string into an appropriate $item and $familiar.
Code:
//felonia.ash
//completes mayor zapruder's quest in the muscle sign degrassi knoll
void main() {
get_next_goal string
new_familiar_base string
new_item item
new_familiar familiar
if (!in_muscle_sign()) {
print("you must be under a muscle moon sign to do Felonia");
exit; }
if (in_muscle_sign()) {
visit_url("knoll.php?place=mayor"); # start the quest
if (item_amount($item[annoying pitchfork])==0) {
add_item_condition(1, $item[annoying pitchfork]);
adventure(*, $location[bugbear pens]"); }
get_next_goal = buffer ("knoll.php?place=mayor"); # determine which mushroom Zapruder wants
if (contains_text(get_next_goal,"frozen mushroom")) {
retrieve_item(1,$item[frozen mushroom]);
new_familiar_base = "frozen"; }
if (contains_text(get_next_goal,"flaming mushroom")) {
retrieve_item(1,$item[flaming mushroom]);
new_familiar_base = "flaming"); }
if (contains_text(get_next_goal,"stinky mushroom")) {
retrieve_item(1,$item[stinky mushroom]);
new_familiar_base = "stinky" }
new_item =$item[("pregnant "+new_familiar_base+" mushroom").to_item()]
new_familiar=$familiar[(new_familiar_base+" gravy fairy").to_familiar()]
visit_url("knoll.php?place=mayor"); # grow the fairy
if !(have_familiar(new_familiar) use_item(1,new_item);
use_familiar(new_familiar);
cli_execute("conditions clear"); # get the required items
add_item_condition(1, $item[inexplicably glowing rock]);
add_item_condition(1, $item[spooky glove]);
set_property("choiceAdventure5",2);
adventure(*, $location[spooky gravy barrow]);
equip($slot[acc3],$item[spooky glove]); # finally kill felonia
set_property("choiceAdventure5",1);
cli_execute("conditions add 1 choiceadv");
adventure(*, $location[spooky gravy barrow]);
visit_url("knoll.php?place=mayor"); # gain the 6 mushroom fermenting solutions
}
}
I'm not really in a position where I can test this right now, but obviously, the part i'm concerned about is where I create a new string and then do .to_item() and .to_familiar() on it. Is this going to work at all?
I don't know, maybe it will be easier to see if Zapruder gives you a pregnant mushroom when you return, then just equip any of the elemental fairies you might already have, cuz you don't have to use the same fairy that zapruder gives you. Ideas or suggestions?
Last edited: