This worries me. Can you describe exactly what you do and exactly what is wrong? Are you saying that you change familiars via use_familiar( familiar ) and after doing so, equipped_item( $slot[ familiar ] ) is incorrect?I have found that i need to do a refresh after changing familiars or the fam eq doesn't get updated and causes errors
I have found that i need to do a refresh after changing familiars or the fam eq doesn't get updated and causes errors
This worries me. Can you describe exactly what you do and exactly what is wrong? Are you saying that you change familiars via use_familiar( familiar ) and after doing so, equipped_item( $slot[ familiar ] ) is incorrect?
For x from 1 upto NumFamiliars by 1
{
familiar pet = to_familiar(x);
if(have_familiar(pet)){
use_familiar(pet);
cli_execute("refresh equip"); // ** Must use, else failures
foreach x in MrFamEq
{
if (have_equipped(to_item(MrFamEq[x].name))) {
cli_execute("unequip " + MrFamEq[x].name);
print_html("<b><font color='#FF0000'>"+MrFamEq[x].name + " Removed from " + pet+"</font></b>");
}
//else print_html("<b><font color='#FFFF00'>" + MrFamEq[x].name +" Not on " + pet + "</font></b>");
}
}
//else print_html("<b><font color='#00FFFF'>Do Not have " + pet + "</font></b>");
} // close for loop
1 lucky Tam O'Shanter
2 miniature gravy-covered maypole
3 wax lips
4 plastic pumpkin bucket
5 flaming familiar doppelgänger
6 Mayflower bouquet
7 origami "gentlemen's" magazine
familiar fam = my_familiar();
item md = to_item( "Meat detector" );
print( "Current familiar = " + fam + " wearing " + equipped_item( $slot[ familiar ] ) );
print( "Have a " + md + " equipped = " + have_equipped( md ));
use_familiar( $familiar[ leprechaun ] );
print( "Current familiar = " + my_familiar() + " wearing " + equipped_item( $slot[ familiar ] ) );
print( "Have a " + md + " equipped = " + have_equipped( md ));
use_familiar( fam );
print( "Current familiar = " + my_familiar() + " wearing " + equipped_item( $slot[ familiar ] ) );
print( "Have a " + md + " equipped = " + have_equipped( md ));
> familiarTest.ash
Current familiar = Cheshire Bat wearing smile-sharpening stone
Have a Meat detector equipped = false
Putting Grinning Grrl the Cheshire Bat back into terrarium...
Taking Lucky Grrl the Leprechaun out of terrarium...
Current familiar = Leprechaun wearing Meat detector
Have a Meat detector equipped = true
Putting Lucky Grrl the Leprechaun back into terrarium...
Taking Grinning Grrl the Cheshire Bat out of terrarium...
Current familiar = Cheshire Bat wearing smile-sharpening stone
Have a Meat detector equipped = false
Requests complete.