Isn't that an issue that only occurs when you test your addon ? I'm pretty sure that the client get the dropped item data when a mob dies, and you don't need to check if it's in the cache.
Looking at GroupLoot Frames code, it looks like it's implied that the client has the item data available.
The masterlooter has the data available, but not all members in the raid have looted the corpse to receive the data. This will be especially true for 3.1, where Emblems of Heroism/Emblem of Valor tokens are looted automatically- so raiders won't have to loot the corpse at all.
The reason I sent the itemIDs is because I'm afraid to run into the messagelimit of 254 characters.
The masterlooter sends a message to the raid with all loot in one go- on Sartharion this might be as much as 7 items.
I've noticed with new items added that indeed the code is too quick for the server to respond. It is usually used for items where I know it has dropped; the scenario is usually this:
1. Boss is killed
2. Masterlooter announces loot
3. Addon shows dialogs
4. Raiders click need/greed on the dialog boxes shown by my addon.
Now, if the raider hasn't seen the loot yet, the dialog can show up empty.
I now announce the loot in a raidwarning. But it still happens occasionally for loot we haven't seen yet. We've cleared all current content but with Ulduar around the corner it is sure to happen that loot is new.
Haven't found a good way around this. I was wondering how addons like 'atlasloot' solve this?
for i=1,#exceptionitems do
local sName, sLink, iRarity, iLevel, iMinLevel, sType, sSubType, iStackCount = GetItemInfo(exceptionitems[i]);
I have a list of itemids in a small table. When I loop the table like this:
for i=1,#itemlist do
local sName, sLink, iRarity, iLevel, iMinLevel, sType, sSubType, iStackCount = GetItemInfo(itemlist [i]);
The itemlist contains these numbers 32458,43953, 43952, 43954, 44083, 43959 (these are the mounts where our guild uses a /roll instead of DKP)
The output is: nil,nil,nil,[Reins of the Twilight Drake],nil,nil
However, if I use the "link" function from WoWhead ingame like this:
/script DEFAULT_CHAT_FRAME:AddMessage("Shift-click this to place a link into a chat message: \124cffa335ee\124Hitem:32458:0:0:0:0:0:0:0:0\124h[Ashes of Al'ar]\124h\124r");
The item Ashes from Al'ar appears. Now I run my code again:
The output is: [Ashes from Al'ar],nil,nil,[Reins of the Twilight Drake],nil,nil
How do I force the getiteminfo function to read from the servercache and not from the local cache? I understand the nil if the server has never seen that item before, but why do I see nil on items I'm sure are on the server?