View Single Post
04/24/23, 01:47 PM   #13
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
As long as you do the JumpTo in the end somehow, with your addon active, it's a choice of the player.
If he activates your memento feature, and obviously your addon :-), it should be okay.
Just tell them in teh description you do that and it might cause problems.
And effectively do the JumpTo then as normal addons would do (just delayed as you said).

If you eperience problems with other addons you could try apply your hook after other addons hooked the same function by using the
## OptionalDependsOn: <otherAddonName>
tag in your txt file.
That will make the oher addons EVENT_ADD_ON_LOADED event fire before yours, and if they did their hooks in there apply them before yours.

It's a bit problematic as you need to know the other addon names, and you need to see where they apply their hooks. They could do it at EVENT_PLAYER_ACTIVATED too, or somewhere else.
But at least it would make their hooks register and fire before your code then, in theory. So if JumpToPlayer is called their code is called first, afterwards yours (as I said: In theory!).

Last edited by Baertram : 04/24/23 at 03:20 PM.
  Reply With Quote