Lock familiar equipment

From Kolmafia
Revision as of 07:24, 11 November 2014 by imported>Bale (r11197)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

void lock_familiar_equipment(booean locking )

  • locking is the desired lock status

This function will lock familiar equipment if locking is true or unlock familiar equipment if locking is false. If there is no need to change locking status, then this function will do nothing.

Code Samples

if( equipped_item($slot[familiar]) == $item[miniature life preserver] && !is_familiar_equipment_locked() )
   lock_familiar_equipment(true);

See Also

is_familiar_equipment_locked() | my_familiar()