1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| string str = "";
//str = str + this.quests.Length.ToString() + "#";
int num1 = 1;
for (int k = 0; k < this.quests.Length; k++)
{
str = (((str + num1.ToString() + "|" + this.quests[k].Name + "|") + this.quests[k].Level + "|") + this.quests[k].IconIndex + "|") + this.quests[k].Description + "|";
for (int m = 0; m < this.quests[k].Objectives.Count; m++)
{
for (int m = 0; m < this.quests[k].Objectives.Count; m++)
str += this.quests[k].Objectives[m].ToString() + (m == this.quests[k].Objectives.Count - 1 ? "|" : "#");
}
str = (((((str + "|" + this.quests[k].Catégorie + "|") + this.quests[k].Banniere + "|") + this.quests[k].Teinte + "|") + this.quests[k].Giver + "|") + this.quests[k].Location + "|") + this.quests[k].EvCommun + "|Objets:";
for (int m = 0; m < this.quests[k].items.Count; m++)
{
str = ((str + "Type:" + this.quests[k].items[m].type.ToString() + "#") + "Id:" + this.quests[k].items[m].itemid.ToString() + "#") + "Nombre:" + this.quests[k].items[m].itemnumber.ToString();
}
str = str + "\n";
++num1;
}
writer2.WriteLine(str);
writer2.Close(); |