Put closet: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 25: Line 25:
}}|
}}|


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


needscode=yes|
needscode=yes|

Revision as of 00:17, 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 to your Colossal Closet from 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()