Esempio n. 1
0
        public void Save()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(" charName = '" + name + "'");
            sb.Append(", charClass = " + cClass);
            sb.Append(", removeState = " + deleteState);
            sb.Append(", invPages = " + invPages);
            sb.Append(", face = " + face);
            sb.Append(", effect = " + effect);
            sb.Append(", faction = " + faction);
            sb.Append(", level = " + level);
            sb.Append(", curHP = " + curHP);
            sb.Append(", curMP = " + curMP);
            sb.Append(", curSP = " + curSP);
            sb.Append(", coin = " + coin);
            sb.Append(", fame = " + fame);
            sb.Append(", locX = '" + position[0]);
            sb.Append("', locY = '" + position[1]);
            sb.Append("', map = " + map);
            sb.Append(", Inte = " + inte);
            sb.Append(", Agi = " + agi);
            sb.Append(", Vit = " + vit);
            sb.Append(", Str = " + str);
            sb.Append(", Dex = " + dex);
            sb.Append(", statPointz = " + statPoints);
            sb.Append(", skillPointz = " + skillPoints);
            sb.Append(", karmaMessagingTimes = " + karmaMessagingTimes);
            sb.Append(", gmShoutMessagingTimes = " + gmShoutMessagingTimes);
            MySQLTool.Save("chars", sb, "charID", this.cID);

            MySQLTool.SaveEquipments(this);
            MySQLTool.SaveInventories(this);
            //MySQLTool.SaveCargo(this);
            MySQLTool.SaveSkills(this);
            MySQLTool.SaveSkillBar(this);
            MySQLTool.SaveCommunities(this);
        }