WoWInterface - View Single Post - GetItemInfo() returning lots of nil values
View Single Post
11-09-18, 12:27 PM   #5
A Chromatic Dragonspawn
Banknorris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 153
You query for the item and check if the returns are nil if they are then you register for GET_ITEM_INFO_RECEIVED check if arg1 is the item id and call GetItemInfo() again for that item id. This time the returns will be valid. But if the values from the first call were not nil then you should just use the returns because you won't get a GET_ITEM_INFO_RECEIVED with that item id in this case. The server only query once for an item and cache it. I am just not sure if some itens never get queried in the first place.
"In this world nothing can be said to be certain, except that fractional reserve banking is a Ponzi scheme and that you won't believe it." - Mandrill
  Reply With Quote