View Single Post
05/05/21, 12:31 AM   #32
Phinix
 
Phinix's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 186
Originally Posted by ZOS_ChipHilseberg View Post
I don't think it'll be a problem to add most of these. I'll throw it on the backlog.
Hi @ZOS_ChipHilseberg,

I wanted to request adding a MsgEffectResult (changeType) event filter for EVENT_EFFECT_CHANGED. Use case would be, registering the unfiltered event only for EFFECT_RESULT_GAINED.

This way a database of gained abilityIds can be kept by an addon like Srendarr, and each could be registered for EVENT_EFFECT_CHANGED in its own namespace by abilityId and unregistered when the effect ends.

This should significantly improve performance, as you are only then open-listening for EFFECT_RESULT_GAINED events in EVENT_EFFECT_CHANGED (which is a heavy event), along with a pre-filtered list of specific abilityIds.

Last edited by Phinix : 05/05/21 at 12:33 AM.
  Reply With Quote