Malibu Stacey
Active member
I have been mostly just letting Winterbay's WHAM script run my combats for me (with a handful of exceptions in my CCS) because I'm lazy and it does a pretty good job.
However I decided to write a consult script to run before WHAM to automate a few things.
It didn't seem to be working when fighting certain monsters like 5 free Witchess pieces or faxed monsters.
So I created a new script called consult_test.ash to test this containing the following:
and created a new CCS called "consult test" containing only the following:
Attempting to fight a Witchess Monster with this setup yields the following:
Fighting a faxed monster with this setup yields the following:
Fighting a monster in the Neverending Party yields the following:
which is finally executing the script. The Neverending Party is however an adventure.php location (but still a free fight as the previous 2 tested encounters were).
If I add a single line to the CCS so it looks like this:
I get the following when fighting a Witchess Monster (can't test another fax until tomorrow unfortunately).
which is now also executing the script. I can remove that single line & it stops working again.
So it looks like some encounters in non-adventure.php locations are for some reason ignoring the first line in the CCS. Other things which might be similarly affected which I haven't tested yet is fighting Time-Spinner monsters from the Adventure Way Back in Time option, Deck of Every Card encounters, Tentacles (skill summoned or Dr. Gordon Stuart), the God Lobster, Genie wishes and monsters fought using copiers other than the fax.
Also I stripped the combat logs down as WHAM finishing the fight isn't really relevant to this bug but if required I can provide the full fight logs.
However I decided to write a consult script to run before WHAM to automate a few things.
It didn't seem to be working when fighting certain monsters like 5 free Witchess pieces or faxed monsters.
So I created a new script called consult_test.ash to test this containing the following:
Code:
void main(int round, monster mob, string page_text)
{
print("===== CONSULT TEST =====", "fuchsia");
print("monster = " + to_string(mob), "fuchsia");
}
and created a new CCS called "consult test" containing only the following:
Code:
[ default ]
consult consult_test.ash
consult WHAM.ash
Attempting to fight a Witchess Monster with this setup yields the following:
Code:
[19228] Your Witchess Set
Preference lastEncounter changed from L.O.V. Emporium to Play against the Witchess Pieces
Encounter: Play against the Witchess Pieces
Preference lastEncounter changed from Play against the Witchess Pieces to Witchess Bishop
Encounter: Witchess Bishop
Preference _lastCombatStarted changed from 20181218055352 to 20181218055452
Preference _witchessFights changed from 2 to 3
Round 0: Malibu Stacey wins initiative!
You have the latest batfactors.txt. Will not check again today.
WHAM: Running SmartStasis
Round 1: Malibu Stacey executes a macro!
Fighting a faxed monster with this setup yields the following:
Code:
[19228] photocopied monster
Preference lastEncounter changed from Witchess Bishop to Black Crayon Crimbo Elf
Encounter: Black Crayon Crimbo Elf
Preference _lastCombatStarted changed from 20181218055452 to 20181218060503
Round 0: Malibu Stacey wins initiative!
WHAM: Running SmartStasis
Round 1: Malibu Stacey executes a macro!
Fighting a monster in the Neverending Party yields the following:
Code:
[19228] The Neverending Party
Preference lastEncounter changed from Black Crayon Crimbo Elf to jock
Encounter: jock
Preference _lastCombatStarted changed from 20181218060503 to 20181218061609
Round 0: Malibu Stacey wins initiative!
===== CONSULT TEST =====
monster = jock
WHAM: Running SmartStasis
Round 1: Malibu Stacey executes a macro!
which is finally executing the script. The Neverending Party is however an adventure.php location (but still a free fight as the previous 2 tested encounters were).
If I add a single line to the CCS so it looks like this:
Code:
[ default ]
twiddle
consult consult_test.ash
consult WHAM.ash
I get the following when fighting a Witchess Monster (can't test another fax until tomorrow unfortunately).
Code:
[19228] Your Witchess Set
Preference lastEncounter changed from jock to Play against the Witchess Pieces
Encounter: Play against the Witchess Pieces
Preference lastEncounter changed from Play against the Witchess Pieces to Witchess Bishop
Encounter: Witchess Bishop
Preference _lastCombatStarted changed from 20181218061609 to 20181218062025
Preference _witchessFights changed from 3 to 4
Round 0: Malibu Stacey wins initiative!
===== CONSULT TEST =====
monster = Witchess Bishop
WHAM: Running SmartStasis
Round 1: Malibu Stacey executes a macro!
which is now also executing the script. I can remove that single line & it stops working again.
So it looks like some encounters in non-adventure.php locations are for some reason ignoring the first line in the CCS. Other things which might be similarly affected which I haven't tested yet is fighting Time-Spinner monsters from the Adventure Way Back in Time option, Deck of Every Card encounters, Tentacles (skill summoned or Dr. Gordon Stuart), the God Lobster, Genie wishes and monsters fought using copiers other than the fax.
Also I stripped the combat logs down as WHAM finishing the fight isn't really relevant to this bug but if required I can provide the full fight logs.
Last edited: