Difference between revisions of "Put closet"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{#vardefine:name|put_closet}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:name}…')
 
imported>StDoodle
m
Line 29: Line 29:
 
needscode=yes|
 
needscode=yes|
  
see_also={{SeeAlso|put_closet|take_display|take_stash|take_storage}}|
+
see_also={{SeeAlso|put_display|put_stash|take_closet}}|
 
cli_equiv=The CLI command "closet" with the parameter "put" works similarly.
 
cli_equiv=The CLI command "closet" with the parameter "put" works similarly.
 
}}
 
}}

Revision as of 00:10, 5 March 2010



needs(code_samples);

Function Syntax

boolean put_closet(int qty )

boolean put_closet(int qty ,item it )

  • qty is the quantity to move
  • it is the item to move

Attempts to move qty of it from your Colossal Closet to your main inventory. Returns true if the move succeeds and false if it does not. If used without it specified, this function will move meat instead of an item.

CLI Equivalent

The CLI command "closet" with the parameter "put" works similarly.

See Also

put_display() | put_stash() | take_closet()