Combat Consulting Script Refuses to Run

I am trying to make a simple consulting script for fighting the shadow. I have my ccs calling it, but it fails to do anything at all when called. I am unsure as to why.
Code:
void shadowconsult( int roundnumber, monster opp, string pagetext) {
	if (opp != $monster[your shadow])
		abort("We are not fighting the shadow for some reason....");
	print("fighting the shadow", "green");
	while (!contains_text(pagetext,  "shadow version of yourself explodes")) {
		print("using stuff", "green");
		if (have_skill($skill[Ambidextrous Funkslinging])) {
			if (item_amount($item[gauze garter]) >= 2)
				throw_items($item[gauze garter], $item[gauze garter]);
			else if (item_amount($item[filthy poultice]) >= 2)
				throw_items($item[filthy poultice], $item[filthy poultice]);
			else if (item_amount($item[gauze garter]) == 1 && item_amount($item[filthy poultice]) > 0)
				throw_items($item[gauze garter], $item[filthy poultice]);
			else if (item_amount($item[gauze garter]) == 1)
				throw_item($item[gauze garter]);
			else
				throw_item($item[filthy poultice]);
		}
		else {
			if (item_amount($item[gauze garter]) == 1)
				throw_item($item[gauze garter]);
			else
				throw_item($item[filthy poultice]);
		}
	}
}
 
Yeah, it was literally nothing...or rather it would end up aborting and telling me I was on my own when I tried to fight the shadow. Theraze fixed it tho. Thanks! :)
 
Top