Stills available: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>Heeheehee m Tpyo. =P |
||
Line 27: | Line 27: | ||
create(1 , $item[Divine]); | create(1 , $item[Divine]); | ||
} else { | } else { | ||
print("You'd have to spend some meat to get a | print("You'd have to spend some meat to get a Divine." , "red"); | ||
} | } | ||
</syntaxhighlight>}}| | </syntaxhighlight>}}| |
Revision as of 03:48, 7 July 2010
Function Syntax
int stills_available()
Returns the number of Nash Crosby's Still uses you have left for the day (0 if you don't have access).
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");
}