mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
The engine already watches the equipment GUID fields: AddActiveWatchers (0x5DD8A0) registers OnInventorySlotChanged (0x5DDCF0) on inventory slots 0..22. That handler is the ancestor of 4.3.4's InventoryUpdate, which fires PLAYER_EQUIPMENT_CHANGED right after unlocking the arriving item. Co-hook it post-original instead of registering 19 of our own observers from the FUN_004F8CC0 setup. The engine now owns the node's registration and lifetime, so the unregister-then-register guard against /reload stacking goes away, and ITEM_LOCK_CHANGED fires before our event, as in 4.3.4. Like 4.3.4, no event fires when the player GUID does not resolve.