Empty closet

From Kolmafia
Revision as of 00:18, 5 November 2014 by imported>Bale (r10227)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()