Ejemplo n.º 1
0
 public void SetLocalization()
 {
     Text                 = Extensions.GetLocalization(6003);
     button_Back.Text     = Extensions.GetLocalization(6004);
     button_Forward.Text  = Extensions.GetLocalization(6005);
     button_OpenPWDB.Text = Extensions.GetLocalization(6006);
 }
Ejemplo n.º 2
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[27].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[27].elementFields[k] == "level")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7000), TaskEditor.eLC.GetValue(27, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[27].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[27].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(27, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 3
0
 private void SelectWorldIdWindow_Load(object sender, EventArgs e)
 {
     int[] KeyList   = TaskEditor.InstanceList.Keys.ToArray();
     Map[] ValueList = TaskEditor.InstanceList.Values.ToArray();
     this.dataGridView_Instances.Rows.Clear();
     for (int num25 = 0; num25 < TaskEditor.InstanceList.Count; num25++)
     {
         try
         {
             string[] strArray14 = new string[]
             {
                 KeyList[num25].ToString(),
                 ValueList[num25].name.ToString().Replace("\\n", Environment.NewLine)
             };
             this.dataGridView_Instances.Rows.Add(strArray14);
             goto IL_701;
         }
         catch
         {
             MessageBox.Show(Extensions.GetLocalization(465));
             goto IL_701;
         }
         IL_701 :;
     }
     this.dataGridView_Instances.CurrentCell = this.dataGridView_Instances.Rows[SelectedItemIndex].Cells[0];
 }
Ejemplo n.º 4
0
 private void SelectSkillIdWindow_Load(object sender, EventArgs e)
 {
     this.dataGridView_Skills.Rows.Clear();
     string[] values = new string[]
     {
         "0",
         Extensions.GetLocalization(402)
     };
     this.dataGridView_Skills.Rows.Add(values);
     for (int num25 = 0; num25 < ElementsEditor.database.skillstr.Length - 1; num25 += 4)
     {
         try
         {
             string[] strArray14 = new string[]
             {
                 Convert.ToInt32(ElementsEditor.database.skillstr[num25]).ToString().Substring(0, Convert.ToString(Convert.ToInt32(ElementsEditor.database.skillstr[num25])).Length - 1),
                 ElementsEditor.database.skillstr[num25 + 1].ToString()
             };
             this.dataGridView_Skills.Rows.Add(strArray14);
             goto IL_701;
         }
         catch
         {
             MessageBox.Show(Extensions.GetLocalization(465));
             goto IL_701;
         }
         IL_701 :;
     }
     loaded = true;
     this.dataGridView_Skills.CurrentCell = this.dataGridView_Skills.Rows[MainWindow.SelectSkillIdWindow_SelectedItemIndex].Cells[0];
     this.dataGridView_Skills_SelectionChanged(null, null);
 }
Ejemplo n.º 5
0
 private void SelectBuffIdWindow_Load(object sender, EventArgs e)
 {
     this.dataGridView_Buffs.Rows.Clear();
     string[] values = new string[]
     {
         "0",
         Extensions.GetLocalization(402)
     };
     this.dataGridView_Buffs.Rows.Add(values);
     for (int num25 = 0; num25 < ElementsEditor.database.buff_str.Length - 1; num25 += 2)
     {
         try
         {
             string[] strArray14 = new string[]
             {
                 Convert.ToInt32(ElementsEditor.database.buff_str[num25 + 0]).ToString(),
                 ElementsEditor.database.buff_str[num25 + 1].ToString()
             };
             this.dataGridView_Buffs.Rows.Add(strArray14);
             goto IL_701;
         }
         catch
         {
             MessageBox.Show(Extensions.GetLocalization(465));
             goto IL_701;
         }
         IL_701 :;
     }
     this.dataGridView_Buffs.CurrentCell = this.dataGridView_Buffs.Rows[MainWindow.SelectBuffIdWindow_SelectedItemIndex].Cells[0];
 }
Ejemplo n.º 6
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6030);
     Column_RelayStationId.HeaderText   = Extensions.GetLocalization(6031);
     Column_RelayStationName.HeaderText = Extensions.GetLocalization(6032);
     button_Ok.Text     = Extensions.GetLocalization(6033);
     button_Cancel.Text = Extensions.GetLocalization(6034);
 }
Ejemplo n.º 7
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6013);
     Column_WorldId.HeaderText      = Extensions.GetLocalization(6014);
     Column_InstanceName.HeaderText = Extensions.GetLocalization(6015);
     button_Ok.Text     = Extensions.GetLocalization(6016);
     button_Cancel.Text = Extensions.GetLocalization(6017);
 }
Ejemplo n.º 8
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6018);
     Column_BuffId.HeaderText   = Extensions.GetLocalization(6019);
     Column_BuffDesc.HeaderText = Extensions.GetLocalization(6020);
     button_Ok.Text             = Extensions.GetLocalization(6021);
     button_Cancel.Text         = Extensions.GetLocalization(6022);
 }
Ejemplo n.º 9
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[135].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[135].elementFields[k] == "level")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7000), TaskEditor.eLC.GetValue(135, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[135].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[135].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(135, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
                line += "\n";
                for (int k = 1; k < 4; k++)
                {
                    for (int t = 0; t < TaskEditor.eLC.Lists[135].elementFields.Length; t++)
                    {
                        if (TaskEditor.eLC.Lists[135].elementFields[t] == "addon_" + k)
                        {
                            string addon = TaskEditor.eLC.GetValue(135, pos_item, t);
                            if (addon != "0")
                            {
                                line += "\n" + "^4286f4" + EQUIPMENT_ADDON.GetAddon(addon) + "^FFFFFF";
                            }
                            break;
                        }
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[135].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[135].elementFields[k] == "addon_time")
                    {
                        string price = TaskEditor.eLC.GetValue(135, pos_item, k);
                        line += "\n" + Extensions.GetLocalization(7090) + Extensions.ItemPropsSecondsToString(Convert.ToUInt32(TaskEditor.eLC.GetValue(135, pos_item, k)));
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 10
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6007);
     checkBox_Force_1.Text = Extensions.GetLocalization(6008);
     checkBox_Force_2.Text = Extensions.GetLocalization(6009);
     checkBox_Force_3.Text = Extensions.GetLocalization(6010);
     button_Ok.Text        = Extensions.GetLocalization(6011);
     button_Cancel.Text    = Extensions.GetLocalization(6012);
 }
Ejemplo n.º 11
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[23].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[23].elementFields[k] == "speed_increase")
                    {
                        string speed_increase = TaskEditor.eLC.GetValue(23, pos_item, k);
                        line += "\n" + String.Format(Extensions.GetLocalization(7038), Convert.ToSingle(speed_increase).ToString("F2", CultureInfo.CreateSpecificCulture("en-US")));
                        break;
                    }
                }
                line += "\n" + Extensions.GetLocalization(7017) + " " + Extensions.GetLocalization(1126) + " " + Extensions.GetLocalization(1127);
                for (int k = 0; k < TaskEditor.eLC.Lists[23].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[23].elementFields[k] == "require_player_level_min")
                    {
                        string require_player_level_min = TaskEditor.eLC.GetValue(23, pos_item, k);
                        if (require_player_level_min != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7018), require_player_level_min);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[23].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[23].elementFields[k] == "mp_per_second")
                    {
                        string mp_per_second = TaskEditor.eLC.GetValue(23, pos_item, k);
                        line += "\n" + String.Format(Extensions.GetLocalization(7041), mp_per_second);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[23].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[23].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(23, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 12
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6023);
     Column_SkillId.HeaderText   = Extensions.GetLocalization(6024);
     Column_SkillName.HeaderText = Extensions.GetLocalization(6025);
     label1.Text        = Extensions.GetLocalization(6026);
     label2.Text        = Extensions.GetLocalization(6027);
     button_Ok.Text     = Extensions.GetLocalization(6028);
     button_Cancel.Text = Extensions.GetLocalization(6029);
 }
Ejemplo n.º 13
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                string year  = "0";
                string month = "0";
                string day   = "0";
                for (int k = 0; k < TaskEditor.eLC.Lists[133].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[133].elementFields[k] == "year")
                    {
                        year = TaskEditor.eLC.GetValue(133, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[133].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[133].elementFields[k] == "month")
                    {
                        month = TaskEditor.eLC.GetValue(133, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[133].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[133].elementFields[k] == "day")
                    {
                        day = TaskEditor.eLC.GetValue(133, pos_item, k);
                        break;
                    }
                }
                line += "\n" + String.Format(Extensions.GetLocalization(7089), year, month, day);
                for (int k = 0; k < TaskEditor.eLC.Lists[133].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[133].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(133, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 14
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6043);
     Column_TitleId.HeaderText   = Extensions.GetLocalization(6044);
     Column_TitleName.HeaderText = Extensions.GetLocalization(6025);
     Column_Parameter.HeaderText = Extensions.GetLocalization(6049);
     Column_Value.HeaderText     = Extensions.GetLocalization(6050);
     label1.Text        = Extensions.GetLocalization(6026);
     label2.Text        = Extensions.GetLocalization(6027);
     button_Ok.Text     = Extensions.GetLocalization(6001);
     button_Cancel.Text = Extensions.GetLocalization(6002);
 }
Ejemplo n.º 15
0
        private void comboBox_MonstersNPCsMinesLists_SelectedIndexChanged(object sender, EventArgs e)
        {
            Loced = true;
            this.dataGridView_Props.Rows.Clear();
            int l = 38;

            switch (this.comboBox_MonstersNPCsMinesLists.SelectedIndex)
            {
            case 0:
                l = 38;
                break;

            case 1:
                l = 57;
                break;

            case 2:
                l = 79;
                break;
            }
            if (l != TaskEditor.eLC.ConversationListIndex)
            {
                this.dataGridView_MonstersNPCsMines.Rows.Clear();
                string[] values = new string[]
                {
                    "0",
                    Extensions.GetLocalization(402)
                };
                this.dataGridView_MonstersNPCsMines.Rows.Add(values);
                int pos = -1;
                for (int i = 0; i < TaskEditor.eLC.Lists[l].elementFields.Length; i++)
                {
                    if (TaskEditor.eLC.Lists[l].elementFields[i] == "Name")
                    {
                        pos = i;
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[l].elementValues.Count; k++)
                {
                    if (TaskEditor.eLC.Lists[l].elementFields[0] == "ID")
                    {
                        string[] strArray14 = new string[]
                        {
                            TaskEditor.eLC.GetValue(l, k, 0),
                            TaskEditor.eLC.GetValue(l, k, pos)
                        };
                        this.dataGridView_MonstersNPCsMines.Rows.Add(strArray14);
                    }
                }
            }
            Loced = false;
        }
Ejemplo n.º 16
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6039);
     Column_ElementId.HeaderText   = Extensions.GetLocalization(6040);
     Column_ElementName.HeaderText = Extensions.GetLocalization(6025);
     Column_Parameter.HeaderText   = Extensions.GetLocalization(6049);
     Column_Value.HeaderText       = Extensions.GetLocalization(6050);
     label1.Text = Extensions.GetLocalization(6026);
     label2.Text = Extensions.GetLocalization(6027);
     checkBox_SearchAllLists.Text = Extensions.GetLocalization(6048);
     button_Ok.Text     = Extensions.GetLocalization(6001);
     button_Cancel.Text = Extensions.GetLocalization(6002);
 }
Ejemplo n.º 17
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[107].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[107].elementFields[k] == "binding_only")
                    {
                        string binding_only = TaskEditor.eLC.GetValue(107, pos_item, k);
                        if (binding_only != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7051);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[107].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[107].elementFields[k] == "require_level_max")
                    {
                        string require_level_max = TaskEditor.eLC.GetValue(107, pos_item, k);
                        if (require_level_max != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7052), require_level_max);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[107].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[107].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(107, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 18
0
        private void comboBox_ItemsLists_SelectedIndexChanged(object sender, EventArgs e)
        {
            Loced = true;
            this.dataGridView_Props.Rows.Clear();
            int l             = 3;
            int selectedindex = this.comboBox_ItemsLists.SelectedIndex;

            l = Convert.ToInt32(ElementsEditor.database.task_items_list[selectedindex * 2]);
            if (l == 28)
            {
                CommonItem = false;
            }
            else
            {
                CommonItem = true;
            }
            if (l != TaskEditor.eLC.ConversationListIndex)
            {
                this.dataGridView_Items.Rows.Clear();
                string[] values = new string[]
                {
                    "0",
                    Extensions.GetLocalization(402)
                };
                this.dataGridView_Items.Rows.Add(values);
                int pos = -1;
                for (int i = 0; i < TaskEditor.eLC.Lists[l].elementFields.Length; i++)
                {
                    if (TaskEditor.eLC.Lists[l].elementFields[i] == "Name")
                    {
                        pos = i;
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[l].elementValues.Count; k++)
                {
                    if (TaskEditor.eLC.Lists[l].elementFields[0] == "ID")
                    {
                        string[] strArray14 = new string[]
                        {
                            TaskEditor.eLC.GetValue(l, k, 0),
                            TaskEditor.eLC.GetValue(l, k, pos)
                        };
                        this.dataGridView_Items.Rows.Add(strArray14);
                    }
                }
            }
            Loced = false;
        }
Ejemplo n.º 19
0
 public void SetLocalization()
 {
     Text = Extensions.GetLocalization(6000);
     checkBox_Occupation_1.Text  = Extensions.GetLocalization(1120);
     checkBox_Occupation_2.Text  = Extensions.GetLocalization(1121);
     checkBox_Occupation_3.Text  = Extensions.GetLocalization(1122);
     checkBox_Occupation_4.Text  = Extensions.GetLocalization(1123);
     checkBox_Occupation_5.Text  = Extensions.GetLocalization(1124);
     checkBox_Occupation_6.Text  = Extensions.GetLocalization(1125);
     checkBox_Occupation_7.Text  = Extensions.GetLocalization(1126);
     checkBox_Occupation_8.Text  = Extensions.GetLocalization(1127);
     checkBox_Occupation_9.Text  = Extensions.GetLocalization(1128);
     checkBox_Occupation_10.Text = Extensions.GetLocalization(1129);
     checkBox_Occupation_11.Text = Extensions.GetLocalization(1130);
     checkBox_Occupation_12.Text = Extensions.GetLocalization(1131);
     button_Ok.Text     = Extensions.GetLocalization(6001);
     button_Cancel.Text = Extensions.GetLocalization(6002);
 }
Ejemplo n.º 20
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[141].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[141].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(141, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
                for (int a = 1; a < 9; a++)
                {
                    for (int k = 0; k < TaskEditor.eLC.Lists[141].elementFields.Length; k++)
                    {
                        if (TaskEditor.eLC.Lists[141].elementFields[k] == "area_" + a + "_id")
                        {
                            string area_id = TaskEditor.eLC.GetValue(141, pos_item, k);
                            if (area_id != "0")
                            {
                                if (a == 1)
                                {
                                    line += "\n" + Extensions.GetLocalization(7083);
                                }
                                line += " " + Extensions.InstanceName(Convert.ToInt32(area_id)).name.Replace("\r\n", " ");
                            }
                            break;
                        }
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 21
0
        public void Force_ClickChanged()
        {
            uint force;
            bool result = uint.TryParse(textBox_Force.Text, out force);

            if (!result)
            {
                throw new Exception(Extensions.GetLocalization(403));
            }

            for (int i = 0; i < Controls.Count; i++)
            {
                if (Controls[i].GetType().Name == "CheckBox")
                {
                    ((CheckBox)Controls[i]).Checked = false;
                }
            }

            List <uint> powers = new List <uint>(GetPowers(force));

            for (int p = 0; p < powers.Count; p++)
            {
                if (powers[p] == 0)
                {
                    continue;
                }

                switch (p)
                {
                case 0:
                    checkBox_Force_1.Checked = true;
                    break;

                case 1:
                    checkBox_Force_2.Checked = true;
                    break;

                case 2:
                    checkBox_Force_3.Checked = true;
                    break;
                }
            }
        }
Ejemplo n.º 22
0
        private void SelectNPCIdWindow_Load(object sender, EventArgs e)
        {
            this.dataGridView_NPCs.Rows.Clear();
            string[] values = new string[]
            {
                "0",
                Extensions.GetLocalization(402)
            };
            this.dataGridView_NPCs.Rows.Add(values);
            int l = 57;

            if (TaskEditor.eLC == null)
            {
                return;
            }
            if (l != TaskEditor.eLC.ConversationListIndex)
            {
                int pos = -1;
                for (int i = 0; i < TaskEditor.eLC.Lists[l].elementFields.Length; i++)
                {
                    if (TaskEditor.eLC.Lists[l].elementFields[i] == "Name")
                    {
                        pos = i;
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[l].elementValues.Count; k++)
                {
                    if (TaskEditor.eLC.Lists[l].elementFields[0] == "ID")
                    {
                        string[] strArray14 = new string[]
                        {
                            TaskEditor.eLC.GetValue(l, k, 0),
                            TaskEditor.eLC.GetValue(l, k, pos)
                        };
                        this.dataGridView_NPCs.Rows.Add(strArray14);
                    }
                }
            }
            this.dataGridView_NPCs.CurrentCell = this.dataGridView_NPCs.Rows[MainWindow.SelectNPCIdWindow_SelectedItemIndex].Cells[0];
            this.dataGridView_NPCs_SelectionChanged(null, null);
        }
Ejemplo n.º 23
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[89].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[89].elementFields[k] == "duration")
                    {
                        string duration = TaskEditor.eLC.GetValue(89, pos_item, k);
                        line += "\n" + String.Format(Extensions.GetLocalization(7047), duration);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[89].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[89].elementFields[k] == "character_combo_id")
                    {
                        line += Extensions.DecodingCharacterComboId(TaskEditor.eLC.GetValue(89, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[89].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[89].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(89, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 24
0
        public static string GetProps(int pos)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[57].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[57].elementFields[k] == "id_task_out_service")
                    {
                        string id_task_out_service = TaskEditor.eLC.GetValue(57, pos, k);
                        if (id_task_out_service != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7350) + " " + id_task_out_service;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[57].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[57].elementFields[k] == "id_task_in_service")
                    {
                        string id_task_in_service = TaskEditor.eLC.GetValue(57, pos, k);
                        if (id_task_in_service != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7351) + " " + id_task_in_service;
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 25
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                string speed_increase_min      = "0";
                string speed_rush_increase_min = "0";
                string time_max_min            = "0";
                string time_max_max            = "0";
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "level")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7000), TaskEditor.eLC.GetValue(22, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "max_refine_lvl")
                    {
                        string max_refine_lvl = TaskEditor.eLC.GetValue(22, pos_item, k);
                        if (max_refine_lvl != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7036), 0, max_refine_lvl);
                        }
                        else
                        {
                            line += "\n" + Extensions.GetLocalization(7037);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "speed_increase_min")
                    {
                        speed_increase_min = TaskEditor.eLC.GetValue(22, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "speed_rush_increase_min")
                    {
                        speed_rush_increase_min = TaskEditor.eLC.GetValue(22, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "time_max_min")
                    {
                        time_max_min = TaskEditor.eLC.GetValue(22, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "time_max_max")
                    {
                        time_max_max = TaskEditor.eLC.GetValue(22, pos_item, k);
                        break;
                    }
                }
                if (speed_increase_min != "0")
                {
                    line += "\n" + String.Format(Extensions.GetLocalization(7038), "+" + Convert.ToSingle(speed_increase_min).ToString("F2", CultureInfo.CreateSpecificCulture("en-US")));
                }
                if (speed_rush_increase_min != "0")
                {
                    line += "\n" + String.Format(Extensions.GetLocalization(7039), "+" + Convert.ToSingle(speed_rush_increase_min).ToString("F2", CultureInfo.CreateSpecificCulture("en-US")));
                }
                if (time_max_max != "0")
                {
                    line += "\n" + String.Format(Extensions.GetLocalization(7040), Convert.ToInt32(time_max_min) / 2, time_max_max);
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "character_combo_id")
                    {
                        line += Extensions.DecodingCharacterComboId(TaskEditor.eLC.GetValue(22, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "require_player_level_min")
                    {
                        string require_player_level_min = TaskEditor.eLC.GetValue(22, pos_item, k);
                        if (require_player_level_min != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7018), require_player_level_min);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[22].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[22].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(22, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 26
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[95].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[95].elementFields[k] == "id_pet")
                    {
                        string id_pet = TaskEditor.eLC.GetValue(95, pos_item, k);
                        if (id_pet != "0")
                        {
                            for (int t = 0; t < TaskEditor.eLC.Lists[94].elementValues.Count; t++)
                            {
                                if (TaskEditor.eLC.GetValue(94, t, 0) == id_pet)
                                {
                                    string id_type = "0";
                                    for (int a = 0; a < TaskEditor.eLC.Lists[94].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[94].elementFields[a] == "id_type")
                                        {
                                            id_type = TaskEditor.eLC.GetValue(94, t, a);
                                            break;
                                        }
                                    }
                                    for (int a = 0; a < TaskEditor.eLC.Lists[94].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[94].elementFields[a] == "food_mask")
                                        {
                                            line += Extensions.DecodingFoodMask(TaskEditor.eLC.GetValue(94, t, a));
                                            break;
                                        }
                                    }
                                    for (int a = 0; a < TaskEditor.eLC.Lists[95].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[95].elementFields[a] == "level")
                                        {
                                            line += "\n" + String.Format(Extensions.GetLocalization(7048), TaskEditor.eLC.GetValue(95, pos_item, a));
                                            break;
                                        }
                                    }
                                    if (id_type == "8781" || id_type == "8783")
                                    {
                                        for (int a = 0; a < TaskEditor.eLC.Lists[94].elementFields.Length; a++)
                                        {
                                            if (TaskEditor.eLC.Lists[94].elementFields[a] == "speed_a")
                                            {
                                                line += "\n" + String.Format(Extensions.GetLocalization(7049), Convert.ToSingle(TaskEditor.eLC.GetValue(94, t, a)).ToString("F2", CultureInfo.CreateSpecificCulture("en-US")));
                                                break;
                                            }
                                        }
                                    }
                                    for (int a = 0; a < TaskEditor.eLC.Lists[94].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[94].elementFields[a] == "level_require")
                                        {
                                            string level_require = TaskEditor.eLC.GetValue(94, t, a);
                                            if (level_require != "0")
                                            {
                                                line += "\n" + String.Format(Extensions.GetLocalization(7018), level_require);
                                            }
                                            break;
                                        }
                                    }
                                    break;
                                }
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[95].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[95].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(95, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 27
0
        public static string GetProps(int pos)
        {
            string line = "";

            try
            {
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "Name")
                    {
                        line += TaskEditor.eLC.GetValue(169, pos, t);
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "desc")
                    {
                        string desc = TaskEditor.eLC.GetValue(169, pos, t);
                        if (desc != "")
                        {
                            line += "\n" + desc;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "condition")
                    {
                        string condition = TaskEditor.eLC.GetValue(169, pos, t);
                        if (condition != "")
                        {
                            line += "\n" + condition;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "phy_damage")
                    {
                        string phy_damage = TaskEditor.eLC.GetValue(169, pos, t);
                        if (phy_damage != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7390) + " +" + phy_damage;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "magic_damage")
                    {
                        string magic_damage = TaskEditor.eLC.GetValue(169, pos, t);
                        if (magic_damage != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7391) + " +" + magic_damage;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "phy_defence")
                    {
                        string phy_defence = TaskEditor.eLC.GetValue(169, pos, t);
                        if (phy_defence != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7392) + " +" + phy_defence;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "magic_defence")
                    {
                        string magic_defence = TaskEditor.eLC.GetValue(169, pos, t);
                        if (magic_defence != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7393) + " +" + magic_defence;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "armor")
                    {
                        string armor = TaskEditor.eLC.GetValue(169, pos, t);
                        if (armor != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7394) + " +" + armor;
                        }
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[169].elementFields.Length; t++)
                {
                    if (TaskEditor.eLC.Lists[169].elementFields[t] == "attack")
                    {
                        string attack = TaskEditor.eLC.GetValue(169, pos, t);
                        if (attack != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7395) + " +" + attack;
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 28
0
        public void Occupations_ClickChanged()
        {
            uint occupations;
            bool result = uint.TryParse(textBox_Occupations.Text, out occupations);

            if (!result)
            {
                throw new Exception(Extensions.GetLocalization(403));
            }

            for (int i = 0; i < Controls.Count; i++)
            {
                if (Controls[i].GetType().Name == "CheckBox")
                {
                    ((CheckBox)Controls[i]).Checked = false;
                }
            }

            List <uint> powers = new List <uint>(GetPowers(occupations));

            for (int p = 0; p < powers.Count; p++)
            {
                if (powers[p] == 0)
                {
                    continue;
                }

                switch (p)
                {
                case 0:
                    checkBox_Occupation_1.Checked = true;
                    break;

                case 1:
                    checkBox_Occupation_2.Checked = true;
                    break;

                case 2:
                    checkBox_Occupation_3.Checked = true;
                    break;

                case 3:
                    checkBox_Occupation_4.Checked = true;
                    break;

                case 4:
                    checkBox_Occupation_5.Checked = true;
                    break;

                case 5:
                    checkBox_Occupation_6.Checked = true;
                    break;

                case 6:
                    checkBox_Occupation_7.Checked = true;
                    break;

                case 7:
                    checkBox_Occupation_8.Checked = true;
                    break;

                case 8:
                    checkBox_Occupation_9.Checked = true;
                    break;

                case 9:
                    checkBox_Occupation_10.Checked = true;
                    break;

                case 10:
                    checkBox_Occupation_11.Checked = true;
                    break;

                case 11:
                    checkBox_Occupation_12.Checked = true;
                    break;
                }
            }
        }
Ejemplo n.º 29
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "equip_type")
                    {
                        string equip_type = TaskEditor.eLC.GetValue(121, pos_item, k);
                        line += "\n" + Extensions.GetLocalization(7068);
                        if (equip_type == "0")
                        {
                            line += Extensions.GetLocalization(7075);
                        }
                        if (equip_type == "1")
                        {
                            line += Extensions.GetLocalization(7076);
                        }
                        if (equip_type == "2")
                        {
                            line += Extensions.GetLocalization(7077);
                        }
                        if (equip_type == "3")
                        {
                            line += Extensions.GetLocalization(7078);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "req_goblin_level")
                    {
                        string req_goblin_level = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (req_goblin_level != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7069), req_goblin_level);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "strength")
                    {
                        string strength = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (strength != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7058), "+" + strength);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "agility")
                    {
                        string agility = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (agility != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7059), "+" + agility);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "energy")
                    {
                        string energy = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (energy != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7061), "+" + energy);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "tili")
                    {
                        string tili = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (tili != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7060), "+" + tili);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[121].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[121].elementFields[k] == "magic_1")
                    {
                        string magic_1 = TaskEditor.eLC.GetValue(121, pos_item, k);
                        if (magic_1 != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7070), magic_1);
                        }
                        string magic_2 = TaskEditor.eLC.GetValue(121, pos_item, k + 1);
                        if (magic_2 != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7071), magic_2);
                        }
                        string magic_3 = TaskEditor.eLC.GetValue(121, pos_item, k + 2);
                        if (magic_3 != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7072), magic_3);
                        }
                        string magic_4 = TaskEditor.eLC.GetValue(121, pos_item, k + 3);
                        if (magic_4 != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7073), magic_4);
                        }
                        string magic_5 = TaskEditor.eLC.GetValue(121, pos_item, k + 4);
                        if (magic_5 != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7074), magic_5);
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Ejemplo n.º 30
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                string type = "";
                string require_weapon_level_min = "0";
                string require_weapon_level_max = "0";
                string damage_enhance           = "0";
                for (int k = 0; k < TaskEditor.eLC.Lists[31].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[31].elementFields[k] == "type")
                    {
                        string value = TaskEditor.eLC.GetValue(31, pos_item, k);
                        if (value != "0")
                        {
                            for (int t = 0; t < TaskEditor.eLC.Lists[30].elementValues.Count; t++)
                            {
                                if (TaskEditor.eLC.GetValue(30, t, 0) == value)
                                {
                                    for (int a = 0; a < TaskEditor.eLC.Lists[30].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[30].elementFields[a] == "Name")
                                        {
                                            type = TaskEditor.eLC.GetValue(30, t, a);
                                            break;
                                        }
                                    }
                                    break;
                                }
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[31].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[31].elementFields[k] == "require_weapon_level_min")
                    {
                        require_weapon_level_min = TaskEditor.eLC.GetValue(31, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[31].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[31].elementFields[k] == "require_weapon_level_max")
                    {
                        require_weapon_level_max = TaskEditor.eLC.GetValue(31, pos_item, k);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[31].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[31].elementFields[k] == "damage_enhance")
                    {
                        damage_enhance = TaskEditor.eLC.GetValue(31, pos_item, k);
                        break;
                    }
                }
                line += "\n" + String.Format(Extensions.GetLocalization(7042), require_weapon_level_min, require_weapon_level_max, type);
                if (damage_enhance != "0")
                {
                    line += "\n" + Extensions.GetLocalization(7004) + " +" + damage_enhance;
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[31].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[31].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(31, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }