Ther easiest way is to use
PiercingShark
Need to write the script as following to the goods packet:
for (i = 0; i < count; i++)
{
Struct.StartNode("Item");
id = Struct.AddInt("Id");
expirationType = Struct.AddByte("ExpirationType");
aLevel = Struct.AddByte("AchievementLevel");
aReq = Struct.AddByte("AchievementRequired");
aId = Struct.AddShort("AchievementId");
Struct.Write('ItemList.xml', '<Item Id="'+id+'" ExpirationType="'+expirationType+'" ALevel="'+aLevel+'" AReq="'+aReq+'" AId="'+aId+'" />');
Struct.EndNode(false);
}
Code: C#
Press Update and you will get the file ItemList.xml with the following content:
<Item Id="103041" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103045" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103048" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103050" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103051" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103052" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103053" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103057" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103058" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
<Item Id="103059" ExpirationType="1" ALevel="0" AReq="0" AId="0" />
<Item Id="103060" ExpirationType="1" ALevel="0" AReq="0" AId="0" />
<Item Id="103061" ExpirationType="2" ALevel="0" AReq="0" AId="0" />
Code: XML
The same way is used for GoodsList.