Just to be clear, you are simply auto-adventuring from Mafia's "Adventure" panel?
Request 4 of 4 (Manor2: Haunted Ballroom) in progress...
(Dance Card counter expired)
Bad item value: "fernswarthy letter" (CounterChecker.ash, line 143)
Unexpired counters:
Fortune Cookie (15)
counters add 15 Inhaler
Unexpired counters:
Fortune Cookie (15)
Inhaler (15)
559 boolean getChoiceAdv(int count, location l, string goal) {
560 string last_adventure = "";
561 int n=0;
562 while(n < count && my_adventures() >0) {
563 n = n + 1;
564 last_adventure = visit_url(to_url(l));
565 if(contains_text(last_adventure, "choice.php")){
566 run_choice(last_adventure, goal);
567 cli_execute("mood execute");
568 print("GetChoiceAdv returning true due to contains text...");
569 return true;
570 } else {
571 print("Running combat, n is " + n + " count is " + count);
572 run_combat();
573 print("Combat complete for n " + n );
574 }
575 # here, either combat is over, or you hit a noncombat
576 # now, lets restore HP and MP, as well as maintaining our mood
577 cli_execute("mood execute");
578 restore_hp(0);
579 restore_mp(0);
580 print("End of loop, n is " + n + " count is " + count);
581 }
582 print("Returning false from getChoiceAdv, n is " + n + " count is " + count + " and my_adventures is " + my_adventures());
583 return false;
584 }
Checking counters now for Wormwood with 0
Goal: not-a-pipe.
To change this goal, use set wormwood = xxx, where xxx is a stat or item. (Optionally add 951, 51 or 1 for stats.)
Worm Wood first step...
[2668] Stately Pleasure Dome
Encounter: angry poet
Round 0: oh shazbot wins initiative!
Running combat, n is 1 count is 3
Round 1: oh shazbot uses the facsimile dictionary!
Round 2: oh shazbot uses the facsimile dictionary!
Round 3: oh shazbot uses the facsimile dictionary!
Round 4: oh shazbot uses the facsimile dictionary!
Round 5: oh shazbot uses the facsimile dictionary!
Round 6: oh shazbot uses the facsimile dictionary!
Round 7: oh shazbot uses the facsimile dictionary!
You lose 6 hit points
Round 8: oh shazbot uses the facsimile dictionary!
Round 9: oh shazbot uses the facsimile dictionary!
Round 10: oh shazbot uses the facsimile dictionary!
You gain 36 hit points
You gain 36 Muscularity Points
Round 11: oh shazbot uses the facsimile dictionary!
Round 12: oh shazbot uses the facsimile dictionary!
Round 13: oh shazbot executes a macro!
Round 13: oh shazbot attacks!
Round 14: oh shazbot wins the fight!
You gain 15 Fortitude
You gain 7 Magicalness
You gain 9 Cheek
Combat complete for n 1
Mood swing complete.
End of loop, n is 1 count is 3
(Wormwood counter expired)
Countdown: 1 second...
Waiting completed.
Checking counters now for Wormwood with -1
Time has expired for you to adventure at Wormwood for not-a-pipe.
[B]Running combat, n is 2 count is 3
Combat complete for n 2
Mood swing complete.
End of loop, n is 2 count is 3[/B]
[2669] Stately Pleasure Dome
Encounter: Kubla Khan
Round 0: oh shazbot wins initiative!
Running combat, n is 3 count is 3
Round 1: oh shazbot uses the facsimile dictionary!
Round 2: oh shazbot uses the facsimile dictionary!
Round 3: oh shazbot uses the facsimile dictionary!
Round 4: oh shazbot uses the facsimile dictionary!
You gain 35 hit points
You gain 35 Muscularity Points
You lose 8 hit points
Round 5: oh shazbot uses the facsimile dictionary!
Round 6: oh shazbot uses the facsimile dictionary!
Round 7: oh shazbot uses the facsimile dictionary!
Round 8: oh shazbot uses the facsimile dictionary!
Round 9: oh shazbot uses the facsimile dictionary!
Round 10: oh shazbot uses the facsimile dictionary!
Round 11: oh shazbot uses the facsimile dictionary!
Round 12: oh shazbot uses the facsimile dictionary!
Round 13: oh shazbot uses the facsimile dictionary!
Round 14: oh shazbot executes a macro!
Round 14: oh shazbot attacks!
Round 15: oh shazbot wins the fight!
You acquire an item: Polka Pop
You gain 9 Muscleboundness
You gain 10 Mysteriousness
You gain 12 Sarcasm
Combat complete for n 3
Mood swing complete.
End of loop, n is 3 count is 3
Returning false from getChoiceAdv, n is 3 count is 3 and my_adventures is 129
Wormwood counter expired.
That's very interesting and very puzzling. I really want to know what happened on line 564 when it did last_adventure = visit_url(to_url(l)); It appears that the adventure failed completely being something other than a fight or a choice, but that makes no sense to me. Are you doing anything that could produce non-combats (without any choices) like using dance cards?
I can't think of any way to find out other than the extremely unpleasant print(last_adventure), but you may need to do that.
If you always get Uberpants instead of a lunchbox, you never got a semirare in the Spooky Forest, and you can still get one.Thus, for example, it will repeatedly go back to get a lunchbox but only managed uberpants (since a particular SR will not trigger in the same zone two times in a row).
// This only contains locations that also have a semi-rare adventure.
boolean has_clover_adv( location loc )
{
switch( loc )
{
case $location[Outskirts of The Knob]:
case $location[Limerick Dungeon]:
case $location[Sleazy Back Alley]:
case $location[Haunted Pantry]:
case $location[Harem]:
case $location[Haunted Kitchen]:
case $location[Haunted Library]:
case $location[Guano Junction]:
case $location[Laboratory]:
case $location[Pre-Cyrpt Cemetary]:
case $location[Post-Cyrpt Cemetary]:
case $location[South of The Border]:
case $location[Spooky Forest]:
case $location[Hippy Camp]:
case $location[Frat House]:
return true;
default:
return false;
}
}