Empty closet

From Kolmafia
Jump to navigation Jump to search

Function Syntax

boolean empty_closet()

Remove every item from the closet in a single server hit. Returns true if the move succeeds and false if it does not.

Useful example for use in a kingLiberatedScript

Empty closet and Hangks together at the end of a run

if(get_property("lastEmptiedStorage").to_int() != my_ascensions()) {
   empty_closet();
   visit_url("storage.php?action=pullall&pwd");
}

CLI Equivalent

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

See Also

take_closet() | put_closet() | take_stash() | take_storage()