06-27-2013, 07:29 PM
That will be difficult, if not impossible, if you wanted to do it properly and completely. There's no way to save the entire inventory in one API call, and if I remember correctly, there's still no way of specifying enchantments in item strings understood by StringToItem() / ItemToString(), so you'll need to handle enchantments by hand.