Though I am considering adding a zlib variable BaleCC_LightsOutBossAutomated which will allow the fights to be automated by Mafia if it is set to true. Does this sound like a good idea? Any way to make it better?
I have no idea what this sentence means. Sorry. Are you suggesting that it should work even if Spookyraven Lights Out counters are off? It manifestly cannot do that since KoLmafia won't run a counter script unless there is a counter.One, maybe automate it based on the Lights Out automation being set to true instead of skip and the next location being available, and if so then using the total turns played rather than the normal counter checker (if possible) to make it start...
The first part, detecting whatever the Manor1 page's Lights Out choice is set to. If it's set to skip or show in browser, don't automate it for the user. If it's set to continue the quest, then automate it for them.
static string copyableOutfitName = "copyable";
if (
have_outfit(copyableOutfitName)
&& last_rare != $location[The Haunted Storage Room]
&& canadv($location[The Haunted Storage Room])
) {
int copyableItemCount = 0;
float piecesTotalPrice = 0.0;
foreach index, piece in outfit_pieces(copyableOutfitName) {
if (item_amount(piece) + equipped_amount(piece) < 1) {
//FIXME: correctly handle outfits with duplicate items.
copyableItemCount = 0; // force failure, since we can't equip the outfit.
break;
}
if (!piece.tradeable || !piece.discardable) {
continue;
}
copyableItemCount = copyableItemCount + 1;
if (historical_age(piece) > 1 || historical_price(piece) == 0) {
mall_price(piece);
}
piecesTotalPrice = piecesTotalPrice + historical_price(piece);
}
if (
5 <= copyableItemCount
&& expensive < piecesTotalPrice / copyableItemCount
) {
best = $location[The Haunted Storage Room];
expensive = piecesTotalPrice / copyableItemCount;
}
}
assuming that "PVPable" is the same thing as tradeable and discardable.... I couldn't find any confirmation of that.
Also, I should take a moment to note that the long-forgotten necklace from The Wreck of the Edgar Fitzsimmons currently appears to have the best value in the mall, but it is absent from CounterChecker.ash. The giant pearl from An Octopus's Garden is also missing from CounterChecker, but that's probably not a big deal if one assumes that it is worth its autosale value of 12k, since that's well below several other semi-rares.
Those plus "not a gift item".
I installed this script and set it as my counter script, but I have no idea how to run or use it. What do I do to get it to grab the most expensive Semi-Rare?
Things I should check tomorrow when I presumably can pay closer attention?
I'm sure it should work since I've used it... I wonder what could be screwing it up? You opened the manor? You have set spookyraven on ?
Yes.
Did you check your session log?
[1524] The Haunted Billiards Room
Encounter: Lights Out in the Billiards Room
Took choice 900/1: unknown
choice.php?whichchoice=900&option=1&pwd
Encounter: Lights Out in the Billiards Room
Took choice 900/2: unknown
choice.php?whichchoice=900&option=2&pwd
Encounter: Lights Out in the Billiards Room
Took choice 900/2: unknown
choice.php?whichchoice=900&option=2&pwd
[1709] The Haunted Billiards Room
Encounter: Lights Out in the Billiards Room
Took choice 900/1: unknown
choice.php?whichchoice=900&option=1&pwd
Encounter: Lights Out in the Billiards Room
Took choice 900/2: unknown
choice.php?whichchoice=900&option=2&pwd
Encounter: Lights Out in the Billiards Room
Took choice 900/2: unknown
choice.php?whichchoice=900&option=2&pwd
I was wondering what that was, but I failed to see the obvious pattern.Another little thing... because the adventure isn't captured, automated adventure with conditions will make mafia to abort. I've changed my own copy to do this instead