Drink: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{#vardefine:name|drink}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:name}}| ag…'
 
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|drink}}
{{
{{#vardefine:return_type|boolean}}
#vardefine:name|drink}}{{
#vardefine:return_type|boolean}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Item Management|
function_category=Item Management|

Revision as of 21:14, 8 March 2010

needs(code_samples);

Function Syntax

boolean drink(int qty ,item consume )

  • qty is the quantity to drink
  • consume is the item to drink

Will attempt to drink qty amount of item consume. Returns true for drinkable items and false for items that are not. (The return value does not reflect whether or not the items were actually consumed.) If this command will cause you to overdrink, a warning dialog will be given. Using this command without Ode to Booze active, when you have the skill & required MP to cast it, will give a warning about drinking without Ode.

CLI Equivalent

The CLI command "drink" works similarly.

See Also

can_drink() | drink_silent() | inebriety_limit() | my_inebriety()