View Single Post
08-15-15, 03:13 PM   #10
Endzeit
A Deviate Faerie Dragon
Join Date: Aug 2015
Posts: 12
Originally Posted by Mazzop View Post
try

Lua Code:
  1. ChatFrame_AddMessageEventFilter("CHAT_MSG_LOOT",function(self,event,msg,who...)
  2.   if who==UnitName("player")
  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.." (|cff9400d3Transmog Sets: "..string.join(", ",unpack(ItemSetNames[id])).."|r).",...; end
  5.   end
  6. end);
this is not working.. lua errors.
also trying change from 'function(self,event,msg,who...)' to 'function(self,event,msg,who,...)'
and
' if who==UnitName("player")' to ' if who==UnitName("player") then'
no lua errors now, but is not working anymore

print(who); returns nothing like print();

Last edited by Endzeit : 08-15-15 at 03:18 PM.
  Reply With Quote