I as well was wondering sorta the same thing.
Code:
public static void LoadItems()
{
MySqlDataAdapter DataAdapter = null;
DataSet DSet = new DataSet();
try
{
DataAdapter = new MySqlDataAdapter("SELECT * FROM `Items`", Connection);
DataAdapter.Fill(DSet, "Itemz");
if (DSet.Tables["Itemz"].Rows.Count > 0)
{
int ItemsC = DSet.Tables["Itemz"].Rows.Count;
Items = new uint[ItemsC][];
for (int i = 0; i < ItemsC; i++)
{
DataRow DR = DSet.Tables["Itemz"].Rows[i];
Items[i] = new uint[16] { (uint)DR["ItemID"], (uint)DR["ClassReq"], (uint)DR["ProfReq"], (uint)DR["LvlReq"], (uint)DR["SexReq"], (uint)DR["StrReq"], (uint)DR["AgiReq"], (uint)DR["Worth"], (uint)DR["MinAtk"], (uint)DR["MaxAtk"], (uint)DR["Defense"], (uint)DR["MDef"], (uint)DR["MAttack"], (uint)DR["Dodge"], (uint)DR["AgiGive"], (uint)DR["CPsWorth"] };
}
General.WriteLine("Loaded " + ItemsC + " items.");
}
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
If I added:
, (uint)DR["HPoints"]
I don't see how it would actually read ''HPoints''.