Dispensary available

From Kolmafia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

black_market_available() | guild_store_available() | white_citadel_available()

Special

When not logged in, this function returns false.