public static string GetProps(int pos_item) { string line = ""; try { for (int k = 0; k < TaskEditor.eLC.Lists[96].elementFields.Length; k++) { if (TaskEditor.eLC.Lists[96].elementFields[k] == "food_type") { line += Extensions.DecodingFoodMask(TaskEditor.eLC.GetValue(96, pos_item, k)); break; } } for (int k = 0; k < TaskEditor.eLC.Lists[96].elementFields.Length; k++) { if (TaskEditor.eLC.Lists[96].elementFields[k] == "price") { string price = TaskEditor.eLC.GetValue(96, 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); }
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); }