Eliteofdelete
Member
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]);
}
}
}