Example #1
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);
        }
Example #2
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);
        }
Example #3
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                string equip_location = "0";
                string level          = "0";
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "id_sub_type")
                    {
                        string id_sub_type = TaskEditor.eLC.GetValue(83, pos_item, k);
                        for (int t = 0; t < TaskEditor.eLC.Lists[82].elementValues.Count; t++)
                        {
                            if (TaskEditor.eLC.GetValue(82, t, 0) == id_sub_type)
                            {
                                for (int a = 0; a < TaskEditor.eLC.Lists[82].elementFields.Length; a++)
                                {
                                    if (TaskEditor.eLC.Lists[82].elementFields[a] == "Name")
                                    {
                                        line += "\n" + TaskEditor.eLC.GetValue(82, t, a);
                                        break;
                                    }
                                }
                                break;
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "equip_location")
                    {
                        equip_location = TaskEditor.eLC.GetValue(83, pos_item, k);
                        break;
                    }
                }
                if (Convert.ToInt32(equip_location) < 9)
                {
                    line += "\n" + Extensions.GetLocalization(7043) + " ???";
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "require_level")
                    {
                        string require_level = TaskEditor.eLC.GetValue(83, pos_item, k);
                        if (require_level != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7018), require_level);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "level")
                    {
                        level = TaskEditor.eLC.GetValue(83, pos_item, k);
                        if (equip_location == "10")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7000), level);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "character_combo_id")
                    {
                        line += Extensions.DecodingCharacterComboId(TaskEditor.eLC.GetValue(83, pos_item, k));
                        break;
                    }
                }
                if (equip_location == "10")
                {
                    for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                    {
                        if (TaskEditor.eLC.Lists[83].elementFields[k] == "action_type")
                        {
                            string action_type = TaskEditor.eLC.GetValue(83, pos_item, k);
                            line += "\n" + Extensions.GetLocalization(7044) + " ";
                            if (action_type == "0")
                            {
                                line += Extensions.GetLocalization(3020);
                            }
                            if (action_type == "1")
                            {
                                line += Extensions.GetLocalization(3021);
                            }
                            if (action_type == "2")
                            {
                                line += Extensions.GetLocalization(3022);
                            }
                            if (action_type == "3")
                            {
                                line += Extensions.GetLocalization(3023);
                            }
                            if (action_type == "4")
                            {
                                line += Extensions.GetLocalization(3024);
                            }
                            if (action_type == "5")
                            {
                                line += Extensions.GetLocalization(3025);
                            }
                            if (action_type == "6")
                            {
                                line += Extensions.GetLocalization(3026);
                            }
                            if (action_type == "7")
                            {
                                line += Extensions.GetLocalization(3027);
                            }
                            if (action_type == "8")
                            {
                                line += Extensions.GetLocalization(3028);
                            }
                            if (action_type == "9")
                            {
                                line += Extensions.GetLocalization(3029);
                            }
                            if (action_type == "10")
                            {
                                line += Extensions.GetLocalization(3030);
                            }
                            if (action_type == "11")
                            {
                                line += Extensions.GetLocalization(3031);
                            }
                            if (action_type == "12")
                            {
                                line += Extensions.GetLocalization(3032);
                            }
                            if (action_type == "13")
                            {
                                line += Extensions.GetLocalization(3033);
                            }
                            if (action_type == "14")
                            {
                                line += Extensions.GetLocalization(3034);
                            }
                            break;
                        }
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "gender")
                    {
                        string gender = TaskEditor.eLC.GetValue(83, pos_item, k);
                        line += "\n" + Extensions.GetLocalization(7045) + " ";
                        if (gender == "0")
                        {
                            line += Extensions.GetLocalization(3040);
                        }
                        if (gender == "1")
                        {
                            line += Extensions.GetLocalization(3041);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[83].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[83].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(83, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
                if (Convert.ToInt32(level) > 0)
                {
                    line += "\n";
                    for (int a = 0; a < Convert.ToInt32(level); a++)
                    {
                        line += Extensions.GetLocalization(7046);
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Example #4
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "id_sub_type")
                    {
                        string id_sub_type = TaskEditor.eLC.GetValue(9, pos_item, k);
                        for (int t = 0; t < TaskEditor.eLC.Lists[8].elementValues.Count; t++)
                        {
                            if (TaskEditor.eLC.GetValue(8, t, 0) == id_sub_type)
                            {
                                for (int a = 0; a < TaskEditor.eLC.Lists[8].elementFields.Length; a++)
                                {
                                    if (TaskEditor.eLC.Lists[8].elementFields[a] == "Name")
                                    {
                                        line += "\n" + TaskEditor.eLC.GetValue(8, t, a);
                                        break;
                                    }
                                }
                                break;
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "level")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7000), TaskEditor.eLC.GetValue(9, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "armor_enhance_low")
                    {
                        string armor_enhance_low = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (armor_enhance_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7008) + " +" + armor_enhance_low;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "damage_low")
                    {
                        string damage_low = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (damage_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7004) + " +" + damage_low;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "magic_damage_low")
                    {
                        string magic_damage_low = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (magic_damage_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7005) + " +" + magic_damage_low;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "defence_low")
                    {
                        string defence_low = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (defence_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7009) + " +" + defence_low;
                        }
                        string magic_defences_1_low = TaskEditor.eLC.GetValue(9, pos_item, k + 2);
                        if (magic_defences_1_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7010) + " +" + magic_defences_1_low;
                        }
                        string magic_defences_2_low = TaskEditor.eLC.GetValue(9, pos_item, k + 4);
                        if (magic_defences_2_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7011) + " +" + magic_defences_2_low;
                        }
                        string magic_defences_3_low = TaskEditor.eLC.GetValue(9, pos_item, k + 6);
                        if (magic_defences_3_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7012) + " +" + magic_defences_3_low;
                        }
                        string magic_defences_4_low = TaskEditor.eLC.GetValue(9, pos_item, k + 8);
                        if (magic_defences_4_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7013) + " +" + magic_defences_4_low;
                        }
                        string magic_defences_5_low = TaskEditor.eLC.GetValue(9, pos_item, k + 10);
                        if (magic_defences_5_low != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7014) + " +" + magic_defences_5_low;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "durability_min")
                    {
                        line += "\n" + Extensions.GetLocalization(7015) + " " + TaskEditor.eLC.GetValue(9, pos_item, k) + "/" + TaskEditor.eLC.GetValue(9, pos_item, k + 1);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "character_combo_id")
                    {
                        line += Extensions.DecodingCharacterComboId(TaskEditor.eLC.GetValue(9, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "require_level")
                    {
                        string require_level = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (require_level != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7018), require_level);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "require_strength")
                    {
                        string require_strength = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (require_strength != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7019), require_strength);
                        }
                        string require_agility = TaskEditor.eLC.GetValue(9, pos_item, k + 1);
                        if (require_agility != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7020), require_agility);
                        }
                        string require_energy = TaskEditor.eLC.GetValue(9, pos_item, k + 2);
                        if (require_energy != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7021), require_energy);
                        }
                        string require_tili = TaskEditor.eLC.GetValue(9, pos_item, k + 3);
                        if (require_tili != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7022), require_tili);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "require_reputation")
                    {
                        string require_reputation = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (require_reputation != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7023), require_reputation);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "fixed_props")
                    {
                        if ("0" != TaskEditor.eLC.GetValue(9, pos_item, k))
                        {
                            string probability_addon_num0 = "0";
                            for (int t = 0; t < TaskEditor.eLC.Lists[9].elementFields.Length; t++)
                            {
                                if (TaskEditor.eLC.Lists[9].elementFields[t] == "probability_addon_num0")
                                {
                                    probability_addon_num0 = TaskEditor.eLC.GetValue(9, pos_item, t);
                                    break;
                                }
                            }
                            if (probability_addon_num0 != "1")
                            {
                                for (int t = 1; t < 33; t++)
                                {
                                    for (int a = 0; a < TaskEditor.eLC.Lists[9].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[9].elementFields[a] == "addons_" + t + "_id_addon")
                                        {
                                            string id_addon = TaskEditor.eLC.GetValue(9, pos_item, a);
                                            if (id_addon != "0")
                                            {
                                                line += "\n" + "^4286f4" + EQUIPMENT_ADDON.GetAddon(id_addon) + "^FFFFFF";
                                            }
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[9].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[9].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(9, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
                bool Suc = false;
                for (int k = 0; k < TaskEditor.eLC.Lists[90].elementValues.Count; k++)
                {
                    for (int a = 1; a < 13; a++)
                    {
                        for (int t = 0; t < TaskEditor.eLC.Lists[90].elementFields.Length; t++)
                        {
                            if (TaskEditor.eLC.Lists[90].elementFields[t] == "equipments_" + a + "_id")
                            {
                                if (Convert.ToInt32(TaskEditor.eLC.GetValue(90, k, t)) == Convert.ToInt32(TaskEditor.eLC.GetValue(9, pos_item, 0)))
                                {
                                    Suc = true;
                                    string name       = "";
                                    string max_equips = "0";
                                    for (int n = 0; n < TaskEditor.eLC.Lists[90].elementFields.Length; n++)
                                    {
                                        if (TaskEditor.eLC.Lists[90].elementFields[n] == "Name")
                                        {
                                            name = TaskEditor.eLC.GetValue(90, k, n);
                                            break;
                                        }
                                    }
                                    for (int n = 0; n < TaskEditor.eLC.Lists[90].elementFields.Length; n++)
                                    {
                                        if (TaskEditor.eLC.Lists[90].elementFields[n] == "max_equips")
                                        {
                                            max_equips = TaskEditor.eLC.GetValue(90, k, n);
                                            break;
                                        }
                                    }
                                    line += "\n\n" + name + " (" + max_equips + ")";
                                    break;
                                }
                                break;
                            }
                        }
                    }
                    if (Suc == true)
                    {
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }
Example #5
0
        public static string GetProps(int pos_item)
        {
            string line = "";

            try
            {
                line += "\n" + String.Format(Extensions.GetLocalization(7000), 1);
                for (int k = 0; k < TaskEditor.eLC.Lists[202].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[202].elementFields[k] == "exp_1")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7099), 0, TaskEditor.eLC.GetValue(202, 0, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[197].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[197].elementFields[k] == "total_point_value_min")
                    {
                        line += "\n" + Extensions.GetLocalization(7105) + " " + (Convert.ToSingle(TaskEditor.eLC.GetValue(197, pos_item, k)) / 100).ToString("F2", CultureInfo.CreateSpecificCulture("en-US"));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[197].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[197].elementFields[k] == "swallow_exp")
                    {
                        string swallow_exp = TaskEditor.eLC.GetValue(197, pos_item, k);
                        if (swallow_exp != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7103) + " " + swallow_exp;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[197].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[197].elementFields[k] == "character_combo_id")
                    {
                        line += Extensions.DecodingCharacterComboId(TaskEditor.eLC.GetValue(197, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[197].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[197].elementFields[k] == "require_level")
                    {
                        string require_level = TaskEditor.eLC.GetValue(197, pos_item, k);
                        if (require_level != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7018), require_level);
                        }
                        break;
                    }
                }
                line += "\n" + Extensions.GetLocalization(7106) + "(" + String.Format(Extensions.GetLocalization(7107), 10) + ")";
                for (int k = 0; k < TaskEditor.eLC.Lists[197].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[197].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(197, 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);
        }
Example #6
0
        public static string GetProps(int pos_item)
        {
            string line        = "";
            string id_sub_type = "0";

            try
            {
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "id_sub_type")
                    {
                        id_sub_type = TaskEditor.eLC.GetValue(3, pos_item, k);
                        for (int t = 0; t < TaskEditor.eLC.Lists[2].elementValues.Count; t++)
                        {
                            if (TaskEditor.eLC.GetValue(2, t, 0) == id_sub_type)
                            {
                                for (int a = 0; a < TaskEditor.eLC.Lists[2].elementFields.Length; a++)
                                {
                                    if (TaskEditor.eLC.Lists[2].elementFields[a] == "Name")
                                    {
                                        line += "\n" + TaskEditor.eLC.GetValue(2, t, a);
                                        break;
                                    }
                                }
                                break;
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "level")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7000), TaskEditor.eLC.GetValue(3, pos_item, k));
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[2].elementValues.Count; t++)
                {
                    if (TaskEditor.eLC.GetValue(2, t, 0) == id_sub_type)
                    {
                        for (int a = 0; a < TaskEditor.eLC.Lists[2].elementFields.Length; a++)
                        {
                            if (TaskEditor.eLC.Lists[2].elementFields[a] == "attack_speed")
                            {
                                line += "\n" + Extensions.GetLocalization(7001) + " " + (1 / Convert.ToSingle(TaskEditor.eLC.GetValue(2, t, a))).ToString("F2", CultureInfo.CreateSpecificCulture("en-US"));
                                break;
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "attack_range")
                    {
                        line += "\n" + String.Format(Extensions.GetLocalization(7002), Convert.ToSingle(TaskEditor.eLC.GetValue(3, pos_item, k)).ToString("F2", CultureInfo.CreateSpecificCulture("en-US")));
                        break;
                    }
                }
                for (int t = 0; t < TaskEditor.eLC.Lists[2].elementValues.Count; t++)
                {
                    if (TaskEditor.eLC.GetValue(2, t, 0) == id_sub_type)
                    {
                        for (int a = 0; a < TaskEditor.eLC.Lists[2].elementFields.Length; a++)
                        {
                            if (TaskEditor.eLC.Lists[2].elementFields[a] == "attack_short_range")
                            {
                                string attack_short_range = TaskEditor.eLC.GetValue(2, t, a);
                                if (attack_short_range != "0")
                                {
                                    line += "\n" + String.Format(Extensions.GetLocalization(7003), Convert.ToSingle(attack_short_range).ToString("F2", CultureInfo.CreateSpecificCulture("en-US")));
                                }
                                break;
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "damage_low")
                    {
                        string damage_low      = TaskEditor.eLC.GetValue(3, pos_item, k);
                        string damage_high_max = TaskEditor.eLC.GetValue(3, pos_item, k + 2);
                        if (damage_low != "0" || damage_high_max != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7004) + " " + damage_low + "-" + damage_high_max;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "magic_damage_low")
                    {
                        string magic_damage_low      = TaskEditor.eLC.GetValue(3, pos_item, k);
                        string magic_damage_high_max = TaskEditor.eLC.GetValue(3, pos_item, k + 2);
                        if (magic_damage_low != "0" || magic_damage_high_max != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7005) + " " + magic_damage_low + "-" + magic_damage_high_max;
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "durability_min")
                    {
                        line += "\n" + Extensions.GetLocalization(7015) + " " + TaskEditor.eLC.GetValue(3, pos_item, k) + "/" + TaskEditor.eLC.GetValue(3, pos_item, k + 1);
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "require_projectile")
                    {
                        string require_projectile = TaskEditor.eLC.GetValue(3, pos_item, k);
                        if (require_projectile != "0")
                        {
                            for (int t = 0; t < TaskEditor.eLC.Lists[30].elementValues.Count; t++)
                            {
                                if (TaskEditor.eLC.GetValue(30, t, 0) == require_projectile)
                                {
                                    for (int a = 0; a < TaskEditor.eLC.Lists[30].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[30].elementFields[a] == "Name")
                                        {
                                            line += "\n" + String.Format(Extensions.GetLocalization(7016), TaskEditor.eLC.GetValue(30, t, a));
                                            break;
                                        }
                                    }
                                    break;
                                }
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "character_combo_id")
                    {
                        line += Extensions.DecodingCharacterComboId(TaskEditor.eLC.GetValue(3, pos_item, k));
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "require_level")
                    {
                        string require_level = TaskEditor.eLC.GetValue(3, pos_item, k);
                        if (require_level != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7018), require_level);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "require_strength")
                    {
                        string require_strength = TaskEditor.eLC.GetValue(3, pos_item, k);
                        if (require_strength != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7019), require_strength);
                        }
                        string require_agility = TaskEditor.eLC.GetValue(3, pos_item, k + 1);
                        if (require_agility != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7020), require_agility);
                        }
                        string require_energy = TaskEditor.eLC.GetValue(3, pos_item, k + 2);
                        if (require_energy != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7021), require_energy);
                        }
                        string require_tili = TaskEditor.eLC.GetValue(3, pos_item, k + 3);
                        if (require_tili != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7022), require_tili);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "require_reputation")
                    {
                        string require_reputation = TaskEditor.eLC.GetValue(3, pos_item, k);
                        if (require_reputation != "0")
                        {
                            line += "\n" + String.Format(Extensions.GetLocalization(7023), require_reputation);
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "fixed_props")
                    {
                        if ("0" != TaskEditor.eLC.GetValue(3, pos_item, k))
                        {
                            string probability_addon_num0 = "0";
                            for (int t = 0; t < TaskEditor.eLC.Lists[3].elementFields.Length; t++)
                            {
                                if (TaskEditor.eLC.Lists[3].elementFields[t] == "probability_addon_num0")
                                {
                                    probability_addon_num0 = TaskEditor.eLC.GetValue(3, pos_item, t);
                                    break;
                                }
                            }
                            if (probability_addon_num0 != "1")
                            {
                                for (int t = 0; t < TaskEditor.eLC.Lists[3].elementFields.Length; t++)
                                {
                                    if (TaskEditor.eLC.Lists[3].elementFields[t] == "probability_unique")
                                    {
                                        if ("0" != TaskEditor.eLC.GetValue(3, pos_item, t))
                                        {
                                            line += "\n" + Extensions.GetLocalization(7111);
                                        }
                                        break;
                                    }
                                }
                                for (int t = 0; t < TaskEditor.eLC.Lists[3].elementFields.Length; t++)
                                {
                                    if (TaskEditor.eLC.Lists[3].elementFields[t] == "probability_hidden")
                                    {
                                        if ("0" != TaskEditor.eLC.GetValue(3, pos_item, t))
                                        {
                                            line += "\n" + Extensions.GetLocalization(7112);
                                        }
                                        break;
                                    }
                                }
                                for (int t = 1; t < 33; t++)
                                {
                                    for (int a = 0; a < TaskEditor.eLC.Lists[3].elementFields.Length; a++)
                                    {
                                        if (TaskEditor.eLC.Lists[3].elementFields[a] == "addons_" + t + "_id_addon")
                                        {
                                            string id_addon = TaskEditor.eLC.GetValue(3, pos_item, a);
                                            if (id_addon != "0")
                                            {
                                                line += "\n" + "^4286f4" + EQUIPMENT_ADDON.GetAddon(id_addon) + "^FFFFFF";
                                            }
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                        break;
                    }
                }
                for (int k = 0; k < TaskEditor.eLC.Lists[3].elementFields.Length; k++)
                {
                    if (TaskEditor.eLC.Lists[3].elementFields[k] == "price")
                    {
                        string price = TaskEditor.eLC.GetValue(3, pos_item, k);
                        if (price != "0")
                        {
                            line += "\n" + Extensions.GetLocalization(7024) + " " + Convert.ToInt32(price).ToString("N0", CultureInfo.CreateSpecificCulture("zh-CN"));
                        }
                        break;
                    }
                }
                bool Suc = false;
                for (int k = 0; k < TaskEditor.eLC.Lists[90].elementValues.Count; k++)
                {
                    for (int a = 1; a < 13; a++)
                    {
                        for (int t = 0; t < TaskEditor.eLC.Lists[90].elementFields.Length; t++)
                        {
                            if (TaskEditor.eLC.Lists[90].elementFields[t] == "equipments_" + a + "_id")
                            {
                                if (Convert.ToInt32(TaskEditor.eLC.GetValue(90, k, t)) == Convert.ToInt32(TaskEditor.eLC.GetValue(3, pos_item, 0)))
                                {
                                    Suc = true;
                                    string name       = "";
                                    string max_equips = "0";
                                    for (int n = 0; n < TaskEditor.eLC.Lists[90].elementFields.Length; n++)
                                    {
                                        if (TaskEditor.eLC.Lists[90].elementFields[n] == "Name")
                                        {
                                            name = TaskEditor.eLC.GetValue(90, k, n);
                                            break;
                                        }
                                    }
                                    for (int n = 0; n < TaskEditor.eLC.Lists[90].elementFields.Length; n++)
                                    {
                                        if (TaskEditor.eLC.Lists[90].elementFields[n] == "max_equips")
                                        {
                                            max_equips = TaskEditor.eLC.GetValue(90, k, n);
                                            break;
                                        }
                                    }
                                    line += "\n\n" + name + " (" + max_equips + ")";
                                    break;
                                }
                                break;
                            }
                        }
                    }
                    if (Suc == true)
                    {
                        break;
                    }
                }
            }
            catch
            {
                line = "";
            }
            return(line);
        }