public static void LoadBlues(character c)
{
try
{
MsSQL ms = new MsSQL("SELECT * FROM char_items WHERE owner='"+ c.Information.CharacterID +"'");
using (SqlDataReader reader = ms.Read())
{
while (reader.Read())
{
int a = 10;
int b = 11;
int id = reader.GetInt32(0);
Global.itemblue it = new Global.itemblue();
it.blue = new ArrayList();
it.blueamount = new ArrayList();
it.totalblue = reader.GetInt32(9);
for (int i = 0; i <= it.totalblue; i++)
{
it.blue.Add(reader.GetString(a));
it.blueamount.Add(reader.GetInt32(b));
a += 2;
b += 2;
}
Data.ItemBlue[id] = it;
}
}
}
catch (Exception ex)
{
Console.WriteLine("Blue error: {0}",ex);
}
}