lock_familiar_equipment()

From KoLMafia
Jump to: navigation, 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