public void SetData(Hashtable ht)
{
if(ht.ContainsKey("ismoney")) this.isMoney = true;
else
{
this.type = (ItemDropType)System.Enum.Parse(typeof(ItemDropType), (string)ht["type"]);
this.id = int.Parse((string)ht["itemid"]);
}
this.quantity = int.Parse((string)ht["quantity"]);
}