Esempio n. 1
0
 private static void LoadWowHead()
 {
     foreach (PItem item in Inventory.GetItemsInBags)
     {
         if (ItemDatabase.GetItem(item.EntryId.ToString()) == null)
         {
             Dictionary <string, string> wowHeadItem = WowHeadData.GetWowHeadItem((double)item.EntryId);
             if (wowHeadItem != null)
             {
                 string str  = wowHeadItem["name"];
                 string str2 = wowHeadItem["quality"];
                 if (!string.IsNullOrEmpty(str) && !string.IsNullOrEmpty(str2))
                 {
                     ItemDatabase.PutItem(item.EntryId.ToString(), str, str2);
                 }
             }
         }
     }
 }
Esempio n. 2
0
 private static void LoadWowHead()
 {
     foreach (PItem item in Inventory.GetItemsInBags)
     {
         if (ItemDatabase.GetItem(item.EntryId.ToString()) == null)
         {
             Dictionary <string, string> dictionary = WowHeadData.GetWowHeadItem(item.EntryId);
             if (dictionary != null)
             {
                 string name    = dictionary["name"];
                 string quality = dictionary["quality"];
                 if (!string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(quality))
                 {
                     ItemDatabase.PutItem(item.EntryId.ToString(), name, quality);
                 }
             }
         }
     }
 }