WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to detect 'Guardian of Ancient Kings'? (https://www.wowinterface.com/forums/showthread.php?t=38072)

Duugu 01-02-11 07:16 AM

How to detect 'Guardian of Ancient Kings'?
 
I'm trying to detect the use of Paladins Guardian of Ancient Kings ability.

I know the spell id is 86150 (http://www.wowhead.com/spell=86150).
The spell triggers one of the following buffs:
http://www.wowhead.com/spell=86659 (Prot)
http://www.wowhead.com/spell=86698 (Ret)
http://www.wowhead.com/spell=86669 (Holy)

It's possible to query the buff via UnitAura().

The problem is, the only COMBAT_LOG_EVENT_UNFILTERED event 'Guardian of Ancient Kings' triggers is SPELL_CAST_SUCCESS.
There's no SPELL_AURA_APPLIED if the buff applies and no SPELL_AURA_REMOVED if the buff ends.

I can't see why. Must be a bug?

Any ideas how to detect the use of 'Guardian of Ancient Kings'?

nin 01-02-11 08:01 AM

In what way do you want too detect it, if anyone uses it?

i use an addon (rsa) that announces use on guardian and when it fades in chat...though thats only for your guardian.

It uses these spell id's though.

http://www.wowhead.com/spell=86657/ancient-guardian

http://www.wowhead.com/spell=86674/ancient-healer

http://www.wowhead.com/spell=86701/ancient-crusader

-_-v

Duugu 01-02-11 09:09 AM

Well, that helped a bit. Now I have at least the right spell ids. Thank you. :)

But the main problem is still that the use of the ability (by a party member) don't triggers anything except COMBAT_LOG_EVENT_UNFILTERED/SPELL_CAST_SUCCESS. And if the buff ends there's not even an event.

Why? I thought COMBAT_LOG_EVENT_UNFILTERED/SPELL_AURA_APPLIED and COMBAT_LOG_EVENT_UNFILTERED/SPELL_AURA_REMOVED should be triggered as well if a party member gains or loses the guardian buff.


Quote:

Originally Posted by nin (Post 225192)
In what way do you want too detect it, if anyone uses it?

i use an addon (rsa) that announces use on guardian and when it fades in chat...though thats only for your guardian.

It uses these spell id's though.

http://www.wowhead.com/spell=86657/ancient-guardian

http://www.wowhead.com/spell=86674/ancient-healer

http://www.wowhead.com/spell=86701/ancient-crusader

-_-v


nin 01-02-11 09:31 AM

hehe, Im really not the right person for these questions i just felt i wanted too enlighten you about the spell id's.

Im not sure exactly how too track it, it sounds odd indeed that the spell(s) doesn't trigger any event.

Here's another great addon, still a chat cooldown announcer.. but it might shed you some light on how he tracks the auras.

https://github.com/Guardix/gxCDBroad...dbroadcast.lua

Good luck, sorry i can't help much.. coding aint my strong side :)

Seerah 01-02-11 12:58 PM

Have you tried using http://wowprogramming.com/docs/events/UNIT_AURA ?


All times are GMT -6. The time now is 12:19 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI