i believe it is later in the same file?Is it possible to get me the debug log from choosing to install the two upgrades at the same time?
There's a bowling ball property, hasCosmicBowlingBall, that av-snapshot uses to tell whether the user has a cosmic bowling ball. Is that not a Mafia-maintained property?Much like with the bowling ball, we can track it with other properties; for the ball, we can look at `bowlingBallReturnCombats`; for the autumn-aton, we can look at whatever property will track when we expect it to return as well.
Yes, I handle it in my PR. It's just a reskin of quest item and has been applied to cosmic bowling ball too.The autumn-aton is "May not be moved out of inventory"..
That is new.
[use]
link applied to the autumn-aton outside of the inventory doesn't quite work for me. The javascript:singleUse(...)
doesn't seem to handle the choice-adventure redirect correctly, whereas the direct inv_use.php
link in the inventory does.We have the technology to handle that; things like the Orcish frat house blueprints also redirect to a choice.It looks like the[use]
link applied to the autumn-aton outside of the inventory doesn't quite work for me. Thejavascript:singleUse(...)
doesn't seem to handle the choice-adventure redirect correctly, whereas the directinv_use.php
link in the inventory does.
Fixed in 26828I just pulled the latest version 26826, and it has a bug where the autumn-aton doesn't get removed from KoLmafia's inventory when you send it off, so it just keeps incrementing the count each time it returns. If I run "ash $item[autumn-aton].item_amount()" after 1 quest, it returns "2".
I dumped this into Bestbetweenbattle with no effect? I assume I did something horribly wrong since ash is like Greek to me, and any help or point in the right direction would be greatly appreciated.I've sent some debug logs over to gausie, but I'd also like to post some code snippets I've been using for this, in case they end up being helpful at all in development.
This xpath can retrieve the available locations for the autumn-otan. It appears to be based on the locations you've been to this ascension that you can currently access, but its definition of "can currently access" differs from mafias, as does its definition of "you've been to"; free zone intro adventures (as well as cleaver noncombats) appear not to count (other noncombats do), and you aren't listed as able to adventure in the 8-bit realm unless you actively have the transfunctioner equipped.
Code:const text = visitUrl('inv_use.php?pwd&whichitem=10954'); xpath(text, '//select[@name="heythereprogrammer"]//option[position()>1]/text()').map((name) => toLocation(name));
I've been running this code in essentially an afterAdventureScript to repeatedly send off the autumn-otan to gather html and goods
Choice option 1 contains any upgrades you have if they're available, and choice 2, when run with the "heythereprogrammer" parameter sends it off. It looks like option 3 exits.Code:function autumnAton() { const item = toItem("autumn-aton"); if (item === Item.none || !availableAmount(item)) return; const location = Location.get("The Deep Dark Jungle"); cliExecute("debug on"); visitUrl("inv_use.php?pwd&whichitem=10954"); if (availableChoiceOptions()[1]) { runChoice(1); } runChoice(2, `heythereprogrammer=${location.id}`); visitUrl("main.php"); cliExecute("debug off"); cliExecute("refresh inventory"); }
Thanks for the reply! This didn't work for me though, have I put it in the wrong place? I added it to BBB right after the "notify Zarqon" bit.With the support the item now has, automating it to always go to location X should be as simple as:
Code:if (item_amount($item[autumn-aton]) > 0) { cli_execute("autumnaton send X"); }