Why don't you just generate the product data from the furnidata??
It's much simpler and faster <_< here is a example how I did it (edited from butterfly):
Code:
XDocument xDoc = XDocument.Load(@"C:\furnidata_nl.xml");
var downloadRoomList = xDoc.Descendants("roomitemtypes").Descendants("furnitype");
var downloadWallList = xDoc.Descendants("wallitemtypes").Descendants("furnitype");
string swfname;
string FurniName;
string description;
StringBuilder builder = new StringBuilder();
builder.Append("[");
foreach (var downloadRoomItem in downloadRoomList)
{
try
{
swfname = downloadRoomItem.Attribute("classname").Value;
FurniName = downloadRoomItem.Element("name").Value;
description = downloadRoomItem.Element("description").Value;
builder.Append("[\"" + swfname + "\",\"" + FurniName + "\",\"" + description + "\"],");
Console.WriteLine("Updated flatid for Furni:" + FurniName);
}
catch
{ continue; }
}
foreach (var downloadRoomItem in downloadWallList)
{
try
{
swfname = downloadRoomItem.Attribute("classname").Value;
FurniName = downloadRoomItem.Element("name").Value;
description = downloadRoomItem.Element("description").Value;
builder.Append("[\"" + swfname + "\",\"" + FurniName + "\",\"" + description + "\"],");
Console.WriteLine("Updated flatid for Furni:" + FurniName);
}
catch
{ continue; }
}
builder.Length--;
builder.Append("]");
File.WriteAllText(@"C:\productdata.txt", builder.ToString());
builder = null;
Ps I also dont get why Habbo is still using the product data because the names/desc are the same in the furnidata but ok...