View Single Post
08/11/14, 06:57 PM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Here's a handler that should work:
Lua Code:
  1. local function onLootReceived(eventCode, lootedBy, itemLink, quantity, itemSound, lootType, lootedBySelf)
  2.     local itemType = GetItemLinkItemType(itemLink)
  3.     if itemType == ITEMTYPE_RECIPE then
  4.         ...
  5.     end
  6. end
  Reply With Quote