Does anyone know how to make the Inventory save all the items? Because when ever I disconnect or restart the server, the items in my inventory disappears.
This is what I have so far:
This is what I have so far:
Code:
public static void SaveInventory(Character Charr)
{
Ini Cli = new Ini(System.Windows.Forms.Application.StartupPath + @"\characters\\" + Charr.Name + ".chr");
Cli.WriteString("Character", "Inventory", Convert.ToString(Charr.PackedInventory));
}