View Single Post
07/01/14, 08:17 AM   #50
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 26
Hmm...so, if I'm understanding you correctly, farangkao, there's absolutely no way to reconstruct an item's name from that link for Guild Store sales history events? (Since once an item shows up in that history it's not in a bank, or bag other than the purchaser's inventory or mail possibly)

That's...truly unfortunate and completely breaks a major part of functionality in an addon I'm writing. Awesome. Especially since it's clearly possible with private functions since this displays a properly colorized item name just fine:

Code:
if RequestGuildHistoryCategoryNewest(1, GUILD_HISTORY_SALES) then
  local numEvents = GetNumGuildEvents(1, GUILD_HISTORY_SALES)
  if numEvents > 0 then
    local theEvent = {}
    -- Other fields in order are event type, seconds since event, seller, buyer, quantity, and sale price
    _, _, _, _, _, theEvent.itemName, _, = GetGuildEventInfo(1, GUILD_HISTORY_SALES, 1)

    -- Assume for brevity we have a label defined elsewhere called testLabel
    -- Post-1.2.3, itemName contains just type/data, no text, but still shows colorized item name fine
    testLabel:SetText(itemName)
  end
end

Last edited by Khaibit : 07/01/14 at 08:30 AM.
  Reply With Quote