Hello! I am writing a script to unequip all my familiar's equipment and can't get the unequip() or unequip_slot() functions to work. I've been researching the Reference manual and google and can't find out why. I just want an quick way to unequip the familiar equipment from all my familiars. Can someone spot where i went wrong? Or does someone know an easier/different way? I am using Windows Xp, KolMafia 12.0.
Thanks!
Results:
Thanks!
Code:
void undress_pet(familiar pet) {
item it = familiar_equipment(pet);
print("Pet= "+pet+" IT= " + it);
if(have_familiar(pet)){
//use_familiar(pet);
//boolean result = unequip_slot( $slot[familiar]) ;
boolean result = unequip( it ) ;
}
}
void main() {
for x from 0 upto 80 by 1
undress_pet(to_familiar(x));
}
Code:
> call scripts\undress_pets.ash
Undefined reference 'unequip' (undress_pets.ash, line 8)