dispensary_available()

From KoLMafia
Jump to: navigation, search

Function Syntax

boolean dispensary_available()

This function returns true if the logged-in character has learned the password to the Knob Dispensary and possesses the Cobb's Knob lab key.

Code Samples

If the character can access the Knob Dispensary, this code will ensure you have 4 spare knob seltzers for emergency combat restoration.

if(dispensary_available())
   retrieve_item(4 , $item[knob seltzer]);

See Also

Special

When not logged in, this function returns false.