WoWInterface - View Single Post - GetItemInfo() returning lots of nil values
View Single Post
11-09-18, 09:12 AM   #3
A Cobalt Mageweaver
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 227
Thanks a lot for this hint!

Let me elaborate if I understand your suggestion of registering GET_ITEM_INFO_RECEIVED correctly:

Function1 calls GetItemInfo() and quits.

Then another Function2 is called whenever the GET_ITEM_INFO_RECEIVED event is triggered, getting as an argument only the itemId of the item for which the info was received.

But how does Function2 then get all the variables of Function1 that need to be altered depending on the received item info? I could only think of Function1 storing these values in a common table with itemId as the key?
  Reply With Quote