Stills available

From Kolmafia
Revision as of 04:43, 13 April 2011 by imported>Bale (http://kolmafia.us/showthread.php?6433-stills_available()-returning-10-if-guild-is-still-locked)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

int stills_available()

Returns the number of Nash Crosby's Still uses you have left for the day. This is 0 if you are not a moxie class. If you are a moxie class, but have not opened the guild this returns 10.

Code Sample

This function attempts to create a Divine, or gives a warning if still uses aren't available.

if ((item_amount($item[orange]) > 0) &&
    (item_amount($item[bottle of whiskey]) > 0) &&
    (item_amount($item[bottle of whiskey]) > 0) &&
    (item_amount($item[little paper umbrella]) > 0) &&
    (stills_available() >= 2)) {
       create(1 , $item[Divine]);
    } else {
       print("You'd have to spend some meat to get a Divine." , "red");
    }

See Also

create() | item_amount() | print()