Malibu Stacey
Active member
Can I see the CCS section which invoked the consult script, please?
Looks like you had digitize, summon love gnats, extract, sing along and then called WHAM?
The first four would get composed into a macro, each round of which we would show on a single screen, since it was a mcro, and then we'd call the consult script, which would do its stuff.
How did it used to show? Did it show all the rounds from the macro and then all the rounds from Wham, all on one page?
Or did it used to refresh a time or two, showing the initial rounds, and then show the final round?
my CCS looks like this:
Code:
[ default ]
consult consult_test.ash <- does nothing but print the current monster to the CLI to workaround -> https://kolmafia.us/showthread.php?23415-Some-zoneless-encounters-skip-1st-entry-in-CCS
consult oracle.ash <- this is what cast digitize using a macro (my own script)
consult WHAM.ash <- this calls SmartStasis.ash first which submits a macro with summon love gnats, extract & sing along. It then submits its own macro which in this case was a simple attack.
oracle.ash does this for Witchess monsters:
Code:
string macro;
switch ( mob )
{
case $monster[Witchess Knight]:
case $monster[Witchess Bishop]:
if (a stupidly complex condition)
{
macro += "skill Digitize; ";
}
break;
}
if (macro != "")
{
visit_url("fight.php?action=macro¯otext=" + url_encode(macro) ,true,true);
}
Previously there would be 4 refreshes of fight.php shown in the relay browser in this situation.
- The initial start of the fight
- My script casting digitize in a macro
- WHAM.ash calling SmartStasis.ash casting summon love gnats, extract & sing along in it's own macro
- WHAM calling attack in it's own macro which kills the monster & ends the fight.
OK, I did that in revision 19549. It no longer depends on luck to accumulate multiple rounds worth of items; every time we parse a fight response, we create the decorated page which will build up the deferred list of found items, and when the fight is over, you will see all of the items.
I tested with a CCS with three actions and a call to WHAM.
I don't think I want WHAM; it sometimes one shotted with an attack and sometimes used a love song. I can always finish my fights in Barf Mountain with with an attack.
Yeah WHAM is dumb about using items when it doesn't need to but thankfully you can set
Code:
zlib WHAM_noitemsplease = true
Did your CCS create a macro with 3 actions or did it submit those actions using use_skill(), attack() etc?
I'll give 19549 a test after the next rollover.
Thanks.