Haven't looked too much into it. EVENT_INVENTORY_SINGLE_SLOT_UPDATE seems the most appropriate, since you can filter for BAG_WORN and INVENTORY_UPDATE_REASON_DEFAULT. "SingleSlotInventoryUpdate" doesn't receive updateReason.
As for non-worn inventories, your markers are display stuff, right? If so, you don't need to run code when a slot changes, but only when it's shown. I'd try hooking ZO_PlayerInventorySlot_SetupSlot -- or ZO_Inventory_SetupSlot, or ZO_ItemSlot_SetupSlot, if you want it in other "inventories" like mail, decon etc. but there you'll probably have to check slotType.
|