View Single Post
08-15-15, 03:23 PM   #11
Mazzop
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 74
obviously i cannot drycode
its 5th argument, from fast /etrace

Lua Code:
  1. ChatFrame_AddMessageEventFilter("CHAT_MSG_LOOT",function(self,event,msg,who,language,channelString,target,  ...)
  2.       if target==UnitName("player") then
  3.         local id=tonumber(msg:match("|Hitem:(%d+)")) or 0;--    Force nil to zero if we have an invalid link (no items exist at index zero)
  4.         if ItemSetNames[id] then return false,msg,who,language,channelString,target,." (|cff9400d3Transmog Sets: "..string.join(", ",unpack(ItemSetNames[id])).."|r).",...; end
  5.       end
  6.     end);

Last edited by Mazzop : 08-15-15 at 03:30 PM.
  Reply With Quote