View Single Post
11/01/15, 03:12 PM   #5
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
This will notify you when the slot changes with the correct slotId for the slot the item is equipped to or unequipped from.

Lua Code:
  1. local function OnSharedSingleSlotUpdate(bagId, slotId, newItem, itemSoundCategory, updateReason)
  2.     if bagId ~= BAG_WORN then return end
  3.    
  4. end
  5.  
  6. SHARED_INVENTORY:RegisterCallback("SingleSlotInventoryUpdate", OnSharedSingleSlotUpdate)

Last edited by circonian : 11/01/15 at 03:14 PM.
  Reply With Quote