I found one other way but I don't really like it:
use the event EVENT_INVENTORY_SINGLE_SLOT_UPDATE and check for bagId == BAG_WORN and updateReason == INVENTORY_UPDATE_REASON_DEFAULT
Then use the slotIndex to get the control name from the equipment controls and update the markers.
Edit:
Haha, thanks Wandamey! Just posted in the same time^^
Tested the unequipping of items: The EVENT_INVENTORY_SINGLE_SLOT_UPDATE will not be called for BAG_WORN then.
So you need to PreHook UnequipItem tpoo for those as it seems
Last edited by Baertram : 11/01/15 at 02:58 PM.
|