The hook secure part works fine, maybe you could post more code, so we can find the real problem.
I don't think use BAG_OPEN/BAG_CLOSED is a good choice since open/close bag is an ui action, it won't trigger the system event, you may try the BAG_UPDATE event for an example, so you can just move one item to another bag slot to trigger it.
|