private void SaveCfg(String CfgName) { WowControl.Config.Clear(); WowControl.Config.Add("[Variables]"); WowControl.SaveVariable(WowControl.FarmHonor, "FarmHonor"); WowControl.SaveVariable(WowControl.FarmMining, "FarmMining"); WowControl.SaveVariable(WowControl.FarmSkinning, "FarmSkinning"); WowControl.SaveVariable(WowControl.SkiningKillAll, "SkiningKillAll"); WowControl.SaveVariable(WowControl.SkinAll, "SkinAll"); WowControl.SaveVariable(WowControl.LootMobs, "LootMobs"); WowControl.SaveVariable(WowControl.StayWithGroup, "StayWithGroup"); WowControl.SaveVariable(WowControl.ClassType, "ClassType"); WowControl.SaveVariable(WowControl.FriendCheckRange, "CheckRange"); WowControl.SaveVariable(WowControl.EnemyCheckRange, "EnemyCheckRange"); WowControl.SaveVariable(WowControl.HealDDPriority, "HealDDPriority"); WowControl.SaveVariable(WowControl.GroupRange, "GroupRange"); WowControl.SaveVariable(WowControl.MinPlayersInGroup, "MinPlayersInGroup"); WowControl.SaveVariable(WowControl.RangeFromPlayerToGroup, "RangeFromPlayerToGroup"); WowControl.SaveVariable(WowControl.SkiningRange, "SkiningRange"); WowControl.SaveVariable(WowControl.FarmMount, "FarmMount"); WowControl.SaveVariable(Autoreconnect, "Autoreconnect"); WowControl.SaveVariable(WowControl.Account, "Account"); WowControl.SaveVariable(CharNo, "CharNo"); WowControl.SaveVariable(RealmNo, "RealmNo"); Abilities.MakeBinds(); WowControl.Config.Add("[End]"); if (CfgName != "") { File.WriteAllLines(Application.StartupPath + "\\Configs\\" + CfgName + ".cfg", WowControl.Config.ToArray()); WowControl.Log.Add(WowControl.GetTimeStr() + " Config " + CfgName + " saved!"); } else { MessageBox.Show("Type config name", "Farm helper error.", MessageBoxButtons.OK, MessageBoxIcon.Error); } }