Dispensary available

From Kolmafia
Revision as of 06:07, 18 February 2011 by imported>Bale (new in r9054)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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

black_market_available() | guild_store_available() | white_citadel_available()

Special

When not logged in, this function returns false.