Strange GetItemInfo behaviour
Someone has filed a ticket for one of my AddOns that appears to demonstrate some odd behaviour of GetItemInfo.
When called with an item ID, GetItemInfo is returning the correct results; but calling it again with the item link returned by the first call is returning nil. Has anyone experienced this behaviour? Is there any way to avoid it? |
I guess that if you get nil you may want to wait for a GET_ITEM_INFO_RECEIVED event whose arg1 will be the item id. When this event triggers the link should be available. This event will trigger a little bit after you call GetItemInfo() for an item not in the cache.
|
Thanks, I'll try using that.
|
You can take a look at the API GetItemInfoInstant and see what kind of data it returns, and if it's usable in your case. Perk is that it's instant and doesn't require server data of any kind. :)
|
Quote:
|
All times are GMT -6. The time now is 07:50 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI