Пример #1
0
 public static void SaveConfig()
 {
     Variables.Settings.SaveConfig = string.Format("[Name]Basic ESP[Value]{0}@[Name]Combo Status[Value]{1}@[Name]Maximum Damage Output[Value]{2}@[Name]Mana Required[Value]{3}@[Name]Auto Hook[Value]{4}@[Name]Auto Combo[Value]{5}@[Name]Prediction Box[Value]{6}@[Name]Enemy Skills[Value]{7}@[Name]Enemy Tracker[Value]{8}@[Name]Inventory Tracker[Value]{9}@[Name]Rune Tracker[Value]{10}@[Name]Eul's Timer[Value]{11}@[Name]Teleport Timer[Value]{12}@[Name]Last Hit Notifier[Value]{13}@[Name]Visible By Enemy[Value]{14}@[Name]Spirit Breaker Charge[Value]{15}@[Name]Skill Shot Notifier[Value]{16}@[Name]Hook Lines[Value]{17}",
                                                   Variables.Settings.Basic_ESP_Value.val, Variables.Settings.Combo_Status_Value.val, Variables.Settings.Maximum_Damage_Output_Value.val, Variables.Settings.Mana_Required_Value.val, Variables.Settings.Auto_Hook_Value.val, Variables.Settings.Auto_Combo_Value.val, Variables.Settings.Prediction_Box_Value.val, Variables.Settings.Enemy_Skills_Value.val, Variables.Settings.Enemy_Tracker_Value.val, Variables.Settings.Inventory_Tracker_Value.val, Variables.Settings.Rune_Tracker_Value.val, Variables.Settings.Euls_Timer_Value.val, Variables.Settings.Teleport_Timer_Value.val, Variables.Settings.Last_Hit_Notifier_Value.val, Variables.Settings.Visisble_By_Enemy_Value.val, Variables.Settings.Spirit_Breaker_Charge_Value.val, Variables.Settings.Skill_Shot_Notifier_Value.val, Variables.Settings.Hook_Lines_value.val);
     File.WriteAllLines(Variables.Settings.FilePath, Variables.Settings.SaveConfig.Split('@'));
     Print.Success("Config saved");
 }
Пример #2
0
        public static void MakeConfig()
        {
            if (File.Exists(Variables.Settings.FilePath))
            {
                Print.Success("Config Found");
            }
            else
            {
                Print.Error("Creating Config");
                if (!Directory.Exists(Variables.Settings.Directory))
                {
                    Directory.CreateDirectory(Variables.Settings.Directory);
                }
                File.WriteAllLines(Variables.Settings.FilePath, Variables.Settings.DefaultConfig);
                Print.Success("done");
            }
            foreach (var line in File.ReadAllLines(Variables.Settings.FilePath))
            {
                string name  = GetAttribute("Name", line);
                int    value = int.Parse(GetAttribute("Value", line));
                switch (name)
                {
                case "Basic ESP": Variables.Settings.Basic_ESP_Value.val = value; break;

                case "Combo Status": Variables.Settings.Combo_Status_Value.val = value; break;

                case "Maximum Damage Output": Variables.Settings.Maximum_Damage_Output_Value.val = value; break;

                case "Mana Required": Variables.Settings.Mana_Required_Value.val = value; break;

                case "Auto Hook": Variables.Settings.Auto_Hook_Value.val = value; break;

                case "Auto Combo": Variables.Settings.Auto_Combo_Value.val = value; break;

                case "Prediction Box": Variables.Settings.Prediction_Box_Value.val = value; break;

                case "Enemy Skills": Variables.Settings.Enemy_Skills_Value.val = value; break;

                case "Enemy Tracker": Variables.Settings.Enemy_Tracker_Value.val = value; break;

                case "Inventory Tracker": Variables.Settings.Inventory_Tracker_Value.val = value; break;

                case "Rune Tracker": Variables.Settings.Rune_Tracker_Value.val = value; break;

                case "Eul's Timer": Variables.Settings.Euls_Timer_Value.val = value; break;

                case "Last Hit Notifier": Variables.Settings.Last_Hit_Notifier_Value.val = value; break;

                case "Visible By Enemy": Variables.Settings.Visisble_By_Enemy_Value.val = value; break;

                case "Spirit Breaker Charge": Variables.Settings.Spirit_Breaker_Charge_Value.val = value; break;

                case "Skill Shot Notifier": Variables.Settings.Skill_Shot_Notifier_Value.val = value; break;

                case "Hook Lines": Variables.Settings.Hook_Lines_value.val = value; break;

                case "Teleport Timer": Variables.Settings.Teleport_Timer_Value.val = value; break;
                }
            }
            Print.Success("Config Loaded");
        }