View Single Post
11/05/15, 06:57 AM   #14
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
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.
  Reply With Quote