Lock familiar equipment: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Bale (talk | contribs)
r11197
 
(No difference)

Latest revision as of 07:24, 11 November 2014

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()