public static void Open(AccountModel R) { try { try { #region main R.AutoInput = Mill.Change(KeyString.Main[0], KeyString.Main[1], R.AutoInput); R.IsHp = Mill.Change(KeyString.Main[0], KeyString.Main[2], R.IsHp); R.HpInput = Mill.Change(KeyString.Main[0], KeyString.Main[3], R.HpInput); R.IsMp = Mill.Change(KeyString.Main[0], KeyString.Main[4], R.IsMp); R.MpInput = Mill.Change(KeyString.Main[0], KeyString.Main[5], R.MpInput); R.IsExP = Mill.Change(KeyString.Main[0], KeyString.Main[6], R.IsExP); R.ExpInput = Mill.Change(KeyString.Main[0], KeyString.Main[7], R.ExpInput); R.IsCut = Mill.Change(KeyString.Main[0], KeyString.Main[8], R.IsCut); R.CutInput = Mill.Change(KeyString.Main[0], KeyString.Main[9], R.CutInput); R.IsClickSpeed = Mill.Change(KeyString.Main[0], KeyString.Main[10], R.IsClickSpeed); R.IsAutoClick = Mill.Change(KeyString.Main[0], KeyString.Main[11], R.IsAutoClick); R.IsMouseClick = Mill.Change(KeyString.Main[0], KeyString.Main[12], R.IsMouseClick); #endregion main #region train R.IsKillToDie = Mill.Change(KeyString.Train[0], KeyString.Train[1], R.IsKillToDie); R.IsAutoBuff = Mill.Change(KeyString.Train[0], KeyString.Train[2], R.IsAutoBuff); R.IsShutdown = Mill.Change(KeyString.Train[0], KeyString.Train[3], R.IsShutdown); R.HpShutDown = Mill.Change(KeyString.Train[0], KeyString.Train[4], R.HpShutDown); R.ReadRangeInput = Mill.Change(KeyString.Train[0], KeyString.Train[5], R.ReadRangeInput); R.RadiusInput = Mill.Change(KeyString.Train[0], KeyString.Train[6], R.RadiusInput); R.LagInput = Mill.Change(KeyString.Train[0], KeyString.Train[7], R.LagInput); #endregion train #region Skill R.IComboxName = Mill.Change(KeyString.Skill[0], KeyString.Skill[1], R.IComboxName); R.IsAttack = Mill.Change(KeyString.Skill[0], KeyString.Skill[2], R.IsAttack); R.ISkillAttack = Mill.Change(KeyString.Skill[0], KeyString.Skill[3], R.ISkillAttack); R.IsBuff[0] = Mill.Change(KeyString.Skill[0], KeyString.Skill[4], R.IsBuff[0]); R.ISkillBuff_1 = Mill.Change(KeyString.Skill[0], KeyString.Skill[5], R.ISkillBuff_1); R.STimeSkill[0] = Mill.Change(KeyString.Skill[0], KeyString.Skill[6], R.STimeSkill[0]); R.LoadSkill[0] = Mill.Change(KeyString.Skill[0], KeyString.Skill[7], R.LoadSkill[0]); R.IsBuff[1] = Mill.Change(KeyString.Skill[0], KeyString.Skill[8], R.IsBuff[1]); R.ISkillBuff_2 = Mill.Change(KeyString.Skill[0], KeyString.Skill[9], R.ISkillBuff_2); R.STimeSkill[1] = Mill.Change(KeyString.Skill[0], KeyString.Skill[10], R.STimeSkill[1]); R.LoadSkill[1] = Mill.Change(KeyString.Skill[0], KeyString.Skill[11], R.LoadSkill[1]); R.IsBuff[2] = Mill.Change(KeyString.Skill[0], KeyString.Skill[12], R.IsBuff[2]); R.ISkillBuff_3 = Mill.Change(KeyString.Skill[0], KeyString.Skill[13], R.ISkillBuff_3); R.STimeSkill[2] = Mill.Change(KeyString.Skill[0], KeyString.Skill[14], R.STimeSkill[2]); R.LoadSkill[2] = Mill.Change(KeyString.Skill[0], KeyString.Skill[15], R.LoadSkill[2]); R.IsBuff[3] = Mill.Change(KeyString.Skill[0], KeyString.Skill[16], R.IsBuff[3]); R.ISkillBuff_4 = Mill.Change(KeyString.Skill[0], KeyString.Skill[17], R.ISkillBuff_4); R.STimeSkill[3] = Mill.Change(KeyString.Skill[0], KeyString.Skill[18], R.STimeSkill[3]); R.LoadSkill[3] = Mill.Change(KeyString.Skill[0], KeyString.Skill[19], R.LoadSkill[3]); #endregion Skill } catch { } string[] SetGet = null; R.ListCord.Clear(); for (int i = 1; i <= 999999999; i++) { try { ListCord Cort = new ListCord(); SetGet = Mill.IniRead(KeyString.NameAdd[1], i); Cort.Id = i; Cort.X = Mill.Change(Cort.X, SetGet[0]); Cort.Y = Mill.Change(Cort.Y, SetGet[1]); R.ListCord.Add(Cort); Thread.Sleep(10); } catch { break; } } MessageBox.Show(Language.Success, Language.Notification); } catch { MessageBox.Show(Language.ErrorOpen, Language.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
// Save and open public static void Saveing(AccountModel R) { try { #region main Mill.IniWrite(KeyString.Main[0], KeyString.Main[1], R.AutoInput); Mill.IniWrite(KeyString.Main[0], KeyString.Main[2], R.IsHp); Mill.IniWrite(KeyString.Main[0], KeyString.Main[3], R.HpInput); Mill.IniWrite(KeyString.Main[0], KeyString.Main[4], R.IsMp); Mill.IniWrite(KeyString.Main[0], KeyString.Main[5], R.MpInput); Mill.IniWrite(KeyString.Main[0], KeyString.Main[6], R.IsExP); Mill.IniWrite(KeyString.Main[0], KeyString.Main[7], R.ExpInput); Mill.IniWrite(KeyString.Main[0], KeyString.Main[8], R.IsCut); Mill.IniWrite(KeyString.Main[0], KeyString.Main[9], R.CutInput); Mill.IniWrite(KeyString.Main[0], KeyString.Main[10], R.IsClickSpeed); Mill.IniWrite(KeyString.Main[0], KeyString.Main[11], R.IsAutoClick); Mill.IniWrite(KeyString.Main[0], KeyString.Main[12], R.IsMouseClick); #endregion main #region train Mill.IniWrite(KeyString.Train[0], KeyString.Train[1], R.IsKillToDie); Mill.IniWrite(KeyString.Train[0], KeyString.Train[2], R.IsAutoBuff); Mill.IniWrite(KeyString.Train[0], KeyString.Train[3], R.IsShutdown); Mill.IniWrite(KeyString.Train[0], KeyString.Train[4], R.HpShutDown); Mill.IniWrite(KeyString.Train[0], KeyString.Train[5], R.ReadRangeInput); Mill.IniWrite(KeyString.Train[0], KeyString.Train[6], R.RadiusInput); Mill.IniWrite(KeyString.Train[0], KeyString.Train[7], R.LagInput); #endregion train #region Skill Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[1], R.IComboxName); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[2], R.IsAttack); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[3], R.ISkillAttack); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[4], R.IsBuff[0]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[5], R.ISkillBuff_1); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[6], R.STimeSkill[0]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[7], R.LoadSkill[0]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[8], R.IsBuff[1]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[9], R.ISkillBuff_2); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[10], R.STimeSkill[1]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[11], R.LoadSkill[1]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[12], R.IsBuff[2]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[13], R.ISkillBuff_3); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[14], R.STimeSkill[2]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[15], R.LoadSkill[2]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[16], R.IsBuff[3]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[17], R.ISkillBuff_4); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[18], R.STimeSkill[3]); Mill.IniWrite(KeyString.Skill[0], KeyString.Skill[19], R.LoadSkill[3]); #endregion Skill if (R.ListCord.Count > 0) { foreach (var item in R.ListCord) { Mill.IniWrite(KeyString.NameAdd[1], Mill.Change(item.Id), item.X, item.Y); Thread.Sleep(1); } } MessageBox.Show(Language.Set(Language.Saveing, Mill.IniFile.Path()), Language.Notification); } catch { MessageBox.Show(Language.ErrorSaveing, Language.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } }