PDA

View Full Version : Saving Outfits



bluestars
08-31-2006, 07:55 PM
Is there any way to save to an outfit (other than KoLmafia Checkpoint) from either the CLI or ASH?

Tirian
08-31-2006, 10:27 PM
This is how I do it. All bets are off if you have spaces in the outfit name.


void save_custom_outfit(string outfitlabel)
{
string command = "inv_equip.php?which=2&action=customoutfit&outfitname=" + outfitlabel;
cli_execute(command);
}

Veracity
08-31-2006, 11:26 PM
This is how I do it.* All bets are off if you have spaces in the outfit name.
If you use

... + url_encode( outfitlabel );

it should work, whether or not you have spaces in the name.