WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Magic School detection? (https://www.wowinterface.com/forums/showthread.php?t=18929)

acapela 10-26-08 03:10 PM

Magic School detection?
 
it doesn't look like there is any "easy" way to identify spell school information at runtime based on a SpellID or any similar "combat log" data. nor does UnitCastingInfo() or GetSpellInfo() seem to supply anything that could serve as a handle on this.

does anyone know of any (hopefully current/maintained) 3rd-party addon that tries to provide an API for this sort of thing?

i would like to be able to select colors (and/or allow the user to specify colors) for various elements of my addon's UI in a fashion categorized by "spell school" (i.e. shadow, physical, arcane, fire, "rune" if applicable, etc).

thanks in advance.

Seerah 10-26-08 03:56 PM

One of the args in the combat log is spell school. http://www.wowwiki.com/API_COMBAT_LO...T#Spell_School

acapela 10-29-08 08:09 PM

Quote:

Originally Posted by Seerah (Post 106972)
One of the args in the combat log is spell school. http://www.wowwiki.com/API_COMBAT_LO...T#Spell_School

yeah, i failed to be sufficiently specific in my question, due to my own ignorance.

i am looking at dumps of COMBAT_LOG_UNFILTERED events right now, from my mage. looks like the spell school is only listed in SPELL_DAMAGE combat events. not in SPELL_CAST_START combat events, nor in UNIT_SPELLCAST_SENT log events.

so, coloring a cast bar, or coloring some sort of cast warning text of some sort, for events with a "cast time", based on spell school looks like it could be tricky.

i suppose i could track SPELL_DAMAGE (and other such combat log DAMAGE events) and map SpellID to school over time, by sniffing the combat log. save the mapping in Saved Variables, and even let the user edit the mapping, specify custom colors for specific events, all that jazz.

anyway, thanks for the pointer. i will cogitate on this some more. at least it appears to be doable in some form, even if somewhat indirectly.


All times are GMT -6. The time now is 04:34 PM.

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