コード例 #1
0
ファイル: Create.cs プロジェクト: stimpy76/OpenMuS9
 public Create(string Account)
 {
     InitializeComponent();
     AccountName = Account;
     ComboboxItem ComboItem1 = new ComboboxItem();
     ComboItem1.Text = "Dark Wizard";
     ComboItem1.Value = 0;
     comboBox1.Items.Add(ComboItem1);
     ComboboxItem ComboItem2 = new ComboboxItem();
     ComboItem2.Text = "Dark Knight";
     ComboItem2.Value = 16;
     comboBox1.Items.Add(ComboItem2);
     ComboboxItem ComboItem3 = new ComboboxItem();
     ComboItem3.Text = "Fairy Elf";
     ComboItem3.Value = 32;
     comboBox1.Items.Add(ComboItem3);
     ComboboxItem ComboItem4 = new ComboboxItem();
     ComboItem4.Text = "Magic Gladiator";
     ComboItem4.Value = 48;
     comboBox1.Items.Add(ComboItem4);
     ComboboxItem ComboItem5 = new ComboboxItem();
     ComboItem5.Text = "Dark Lord";
     ComboItem5.Value = 64;
     comboBox1.Items.Add(ComboItem5);
     ComboboxItem ComboItem6 = new ComboboxItem();
     ComboItem6.Text = "Summoner";
     ComboItem6.Value = 80;
     comboBox1.Items.Add(ComboItem6);
     ComboboxItem ComboItem7 = new ComboboxItem();
     ComboItem7.Text = "Rage Fighter";
     ComboItem7.Value = 96;
     comboBox1.Items.Add(ComboItem7);
     comboBox1.SelectedIndex = 0;
 }
コード例 #2
0
        private void cboEquipType_SelectedIndexChanged(object sender, EventArgs e)
        {
            cboEquipName.Items.Clear();
            //foreach (string name in itemType.ItemNames)
            //{
            for (Int32 i = 0; i < EquipItemInfo.g_ItemInfo.m_ItemInfo.Count; i++)
            {
                if (EquipItemInfo.g_ItemInfo.m_ItemInfo[i].Category == (cboEquipType.Items[cboEquipType.SelectedIndex] as EquipItemType).TypeId)
                {
                    Character.ComboboxItem ComboItem = new Character.ComboboxItem();
                    ComboItem.Text  = EquipItemInfo.g_ItemInfo.m_ItemInfo[i].Name;
                    ComboItem.Value = EquipItemInfo.g_ItemInfo.m_ItemInfo[i].Number;
                    cboEquipName.Items.Add(ComboItem);
                }
            }
            //}

            comboHarmony.Items.Clear();
            comboHarmony.Items.Add("None");
            comboHarmony.SelectedIndex = 0;

            if (cboEquipType.SelectedIndex >= 0 && cboEquipType.SelectedIndex <= 4)
            {
                comboHarmony.Items.Add("Min Attack Power");
                comboHarmony.Items.Add("Max Attack Power");
                comboHarmony.Items.Add("Strength Requirement");
                comboHarmony.Items.Add("Agility Requirement");
                comboHarmony.Items.Add("Attack (Max,Min)");
                comboHarmony.Items.Add("Critical Damage");
                comboHarmony.Items.Add("Skill Power");
                comboHarmony.Items.Add("Attack % Rate");
                comboHarmony.Items.Add("SD - Rate");
                comboHarmony.Items.Add("SD Ignore Rate");
            }
            else if (cboEquipType.SelectedIndex >= 6 && cboEquipType.SelectedIndex <= 11)
            {
                comboHarmony.Items.Add("Defense Power");
                comboHarmony.Items.Add("Max AG");
                comboHarmony.Items.Add("Max HP");
                comboHarmony.Items.Add("HP Auto Rate");
                comboHarmony.Items.Add("MP Auto Rate");
                comboHarmony.Items.Add("Defense Success Rate");
                comboHarmony.Items.Add("Damage Reduction Rate");
                comboHarmony.Items.Add("SD Rate");
            }
            else if (cboEquipType.SelectedIndex == 5)
            {
                comboHarmony.Items.Add("Magic Power");
                comboHarmony.Items.Add("Strength Requirement");
                comboHarmony.Items.Add("Agility Requirement");
                comboHarmony.Items.Add("Skill Power");
                comboHarmony.Items.Add("Critical Damage");
                comboHarmony.Items.Add("SD - Rate");
                comboHarmony.Items.Add("Attack % Rate");
                comboHarmony.Items.Add("SD Ignore Rate");
            }
        }
コード例 #3
0
        public Editor(string Account, string User)
        {
            InitializeComponent();

            Account_Reload();
            Character_Reload();

            comboBox1.Text = Account;
            comboBox2.Text = User;

            if (Account != "")
            {
                button6.Enabled = false;
                button7.Enabled = false;
                m_HaveParent = true;
            }

            ComboboxItem ComboItem;

            ComboItem = new ComboboxItem();
            ComboItem.Text = "Dark Wizard";
            ComboItem.Value = 0;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Soul Master";
            ComboItem.Value = 1;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Grand Master";
            ComboItem.Value = 3;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Dark Knight";
            ComboItem.Value = 16;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Blade Knight";
            ComboItem.Value = 17;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Blade Master";
            ComboItem.Value = 19;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Fairy Elf";
            ComboItem.Value = 32;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Muse Elf";
            ComboItem.Value = 33;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Hight Elf";
            ComboItem.Value = 35;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Magic Gladiator";
            ComboItem.Value = 48;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Duel Master";
            ComboItem.Value = 50;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Dark Lord";
            ComboItem.Value = 64;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Lord Emperor";
            ComboItem.Value = 66;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Summoner";
            ComboItem.Value = 80;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Bloody Summoner";
            ComboItem.Value = 81;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Dimension Master";
            ComboItem.Value = 83;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Rage Fighter";
            ComboItem.Value = 96;
            comboBox3.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "First Master";
            ComboItem.Value = 98;
            comboBox3.Items.Add(ComboItem);

            ComboItem = new ComboboxItem();
            ComboItem.Text = "None";
            ComboItem.Value = 255;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Find the 'Scrool of Emperor'";
            ComboItem.Value = 254;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Three Treasures of Mu";
            ComboItem.Value = 250;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Gain 'Hero Status'";
            ComboItem.Value = 234;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Secret of 'Dark Stone' (BK)";
            ComboItem.Value = 170;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Certificate of Strength! (I)";
            ComboItem.Value = 176;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Certificate of Strength! (II)";
            ComboItem.Value = 177;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Certificate of Strength! (III)";
            ComboItem.Value = 178;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Infiltration of Barracks of Ballgass! (I)";
            ComboItem.Value = 179;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Infiltration of Barracks of Ballgass! (II)";
            ComboItem.Value = 180;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Infiltration of Refuge! (I)";
            ComboItem.Value = 181;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Infiltration of Refuge! (II)";
            ComboItem.Value = 182;
            comboBox4.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Completed 3rd class";
            ComboItem.Value = 186;
            comboBox4.Items.Add(ComboItem);

            ComboItem = new ComboboxItem();
            ComboItem.Text = "Normal";
            ComboItem.Value = 0;
            comboBox5.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Blocked";
            ComboItem.Value = 1;
            comboBox5.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Items Blocked";
            ComboItem.Value = 1;
            comboBox5.Items.Add(ComboItem);
            ComboItem = new ComboboxItem();
            ComboItem.Text = "Game Master";
            ComboItem.Value = 32;
            comboBox5.Items.Add(ComboItem);

            comboBox3.SelectedIndex = 0;
            comboBox4.SelectedIndex = 0;
            comboBox5.SelectedIndex = 0;
        }
コード例 #4
0
        private void cboEquipType_SelectedIndexChanged(object sender, EventArgs e)
        {

            cboEquipName.Items.Clear();
            //foreach (string name in itemType.ItemNames)
            //{
            for (Int32 i = 0; i < EquipItemInfo.g_ItemInfo.m_ItemInfo.Count; i++)
            {
                if (EquipItemInfo.g_ItemInfo.m_ItemInfo[i].Category == (cboEquipType.Items[cboEquipType.SelectedIndex] as EquipItemType).TypeId)
                {
                    Character.ComboboxItem ComboItem = new Character.ComboboxItem();
                    ComboItem.Text = EquipItemInfo.g_ItemInfo.m_ItemInfo[i].Name;
                    ComboItem.Value = EquipItemInfo.g_ItemInfo.m_ItemInfo[i].Number;
                    cboEquipName.Items.Add(ComboItem);
                }
            }
            //}

            comboHarmony.Items.Clear();
            comboHarmony.Items.Add("None");
            comboHarmony.SelectedIndex = 0;

            if(cboEquipType.SelectedIndex >= 0 && cboEquipType.SelectedIndex <= 4)
            {
                comboHarmony.Items.Add("Min Attack Power");
                comboHarmony.Items.Add("Max Attack Power");
                comboHarmony.Items.Add("Strength Requirement");
                comboHarmony.Items.Add("Agility Requirement");
                comboHarmony.Items.Add("Attack (Max,Min)");
                comboHarmony.Items.Add("Critical Damage");
                comboHarmony.Items.Add("Skill Power");
                comboHarmony.Items.Add("Attack % Rate");
                comboHarmony.Items.Add("SD - Rate");
                comboHarmony.Items.Add("SD Ignore Rate");
            }
            else if (cboEquipType.SelectedIndex >= 6 && cboEquipType.SelectedIndex <= 11)
            {
                comboHarmony.Items.Add("Defense Power");
                comboHarmony.Items.Add("Max AG");
                comboHarmony.Items.Add("Max HP");
                comboHarmony.Items.Add("HP Auto Rate");
                comboHarmony.Items.Add("MP Auto Rate");
                comboHarmony.Items.Add("Defense Success Rate");
                comboHarmony.Items.Add("Damage Reduction Rate");
                comboHarmony.Items.Add("SD Rate");
            }
            else if (cboEquipType.SelectedIndex == 5)
            {
                comboHarmony.Items.Add("Magic Power");
                comboHarmony.Items.Add("Strength Requirement");
                comboHarmony.Items.Add("Agility Requirement");
                comboHarmony.Items.Add("Skill Power");
                comboHarmony.Items.Add("Critical Damage");
                comboHarmony.Items.Add("SD - Rate");
                comboHarmony.Items.Add("Attack % Rate");
                comboHarmony.Items.Add("SD Ignore Rate");
            }
        }
コード例 #5
0
        public void DataLoad()
        {
            string[] Lines = System.IO.File.ReadAllLines("Data\\Skill.txt");
            string[] NumberBuffer;

            for (int i = 0; i < Lines.Length; i++)
            {
                try
                {
                    ComboboxItem ComboItem = new ComboboxItem();
                    SkillData NewSkill = new SkillData();

                    NumberBuffer = Lines[i].Split(null);

                    var Regular = new System.Text.RegularExpressions.Regex("\".*?\"");
                    var Matches = Regular.Matches(Lines[i]);
                    NewSkill.Name = Matches[0].ToString().Replace("\"", "");

                    NewSkill.Number = short.Parse(NumberBuffer[0]);

                    NewSkill.CanBeUsedByWizard = byte.Parse(NumberBuffer[NumberBuffer.Length - 19]);
                    NewSkill.CanBeUsedByKnight = byte.Parse(NumberBuffer[NumberBuffer.Length - 18]);
                    NewSkill.CanBeUsedByElf = byte.Parse(NumberBuffer[NumberBuffer.Length - 17]);
                    NewSkill.CanBeUsedByGladiator = byte.Parse(NumberBuffer[NumberBuffer.Length - 16]);
                    NewSkill.CanBeUsedByLord = byte.Parse(NumberBuffer[NumberBuffer.Length - 15]);
                    NewSkill.CanBeUsedBySummoner = byte.Parse(NumberBuffer[NumberBuffer.Length - 14]);
                    NewSkill.CanBeUsedByFighter = byte.Parse(NumberBuffer[NumberBuffer.Length - 13]);

                    /*LogWindow.SqlLog.LogAdd(string.Format("Skill -> [" + NewSkill.Number + "] " + NewSkill.Name + "[{0},{1},{2},{3},{4},{5},{6}]",
                        NewSkill.CanBeUsedByWizard, NewSkill.CanBeUsedByKnight, NewSkill.CanBeUsedByElf,
                        NewSkill.CanBeUsedByGladiator, NewSkill.CanBeUsedByLord, NewSkill.CanBeUsedBySummoner,
                        NewSkill.CanBeUsedByFighter));*/

                    m_SkillData.Add(NewSkill);

                    ComboItem.Text = NewSkill.Name;
                    ComboItem.Value = NewSkill.Number;
                    comboBox3.Items.Add(ComboItem);
                }
                catch// (Exception ParseEx)
                {

                    //bool get_end_ok = (lines[i] == "end") ? true : false;

                    //if (get_end_ok) cur_cat++;
                }
            }
        }