Help with CCS

Im looking to use the happy medium wile I finish up crimbo town. This is my CSS

[ default ]
try to steal an item
if happymediumglow red
skill siphon spirit
endif
consult WHAM.ash

Now it seems to work fins except it siphons blue drinks instead of red. What am I missing? Thanks.
 

slyz

Developer
In a CCS, you can't mix KoL Macro commands and consult scripts. All the lines that correspond to KoL Macros are ignored in your CCS, so this is what Mafia sees:
Code:
[ default ]
 try to steal an item
 skill siphon spirit
 consult WHAM.ash

If WHAM doesn't handle spirit siphoning, you should handle it yourself in another consult script, like this one:
PHP:
void main( int initround, string foe, string page )
{
	string macro;
	macro += "if happymediumglow red;";
	macro += "   skill siphon spirit;";
	macro += "endif;";

	visit_url( "fight.php?action=macro&macrotext=" + url_encode( macro ), true, true );
}

Simply save this in a file called consult_siphon.ash and use the following CCS:
Code:
[ default ]
 try to steal an item
 consult consult_siphon.ash
 consult WHAM.ash
 
Top