Difference between pages "Template:NavLink" and "Empty closet"
(Difference between pages)
Jump to navigation
Jump to search
imported>Ulti (added optional css parameter) |
imported>Bale (r10227) |
||
Line 1: | Line 1: | ||
− | {{# | + | {{ |
− | + | #vardefine:name|empty_closet}}{{ | |
+ | #vardefine:return_type|boolean}}{{ | ||
+ | |||
+ | FunctionPage| | ||
+ | name={{#var:name}}| | ||
+ | |||
+ | function1={{Function| | ||
+ | name={{#var:name}}| | ||
+ | aggregate={{#var:aggregate}}| | ||
+ | return_type={{#var:return_type}}| | ||
+ | return_also={{#var:return_also}}| | ||
+ | }}| | ||
+ | |||
+ | function_description=Remove every item from the closet in a single server hit. Returns true if the move succeeds and false if it does not.| | ||
+ | |||
+ | code1={{CodeSample| | ||
+ | title=Useful example for use in a kingLiberatedScript| | ||
+ | description=Empty closet and Hangks together at the end of a run| | ||
+ | code= | ||
+ | <syntaxhighlight> | ||
+ | if(get_property("lastEmptiedStorage").to_int() != my_ascensions()) { | ||
+ | empty_closet(); | ||
+ | visit_url("storage.php?action=pullall&pwd"); | ||
+ | } | ||
+ | </syntaxhighlight>}}| | ||
+ | |||
+ | see_also={{SeeAlso|take_closet|put_closet|take_stash|take_storage}}| | ||
+ | cli_equiv=The CLI command "closet" with the parameter "empty" works similarly. | ||
+ | }} | ||
+ | |||
+ | [[Category:Item Management]] |
Latest revision as of 00:18, 5 November 2014
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.