Thread Tools Display Modes
12-07-12, 06:45 PM   #1
Starix
A Murloc Raider
Join Date: Dec 2012
Posts: 9
Spell Type

Hi. Help I want to create addons which will distinguish types of spells (spell/aura)
How to receive type of a spell of spell or aura?

Thanks.
  Reply With Quote
12-07-12, 10:16 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Could you be a little bit more specific in what you need or wish to do?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
12-07-12, 10:24 PM   #3
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 308
You will want to direct your attention at the following event: COMBAT_LOG_EVENT_UNFILTERED
The rest of the information you need to be looking at can be found here -> http://www.wowpedia.org/API_COMBAT_LOG_EVENT.
__________________
AddOns: Tim @ WoWInterface
Characters: Mage, Priest, Devoker, Pally
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote
12-07-12, 10:35 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you want to do something with auras (buffs and debuffs) you will probably want to use the UNIT_AURA event.

But, yeah, you need to be a lot more specific about what you want to do if you want a specific answer...
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-08-12, 12:44 AM   #5
Starix
A Murloc Raider
Join Date: Dec 2012
Posts: 9
Originally Posted by Seerah View Post
Could you be a little bit more specific in what you need or wish to do?
Would I like to make that at guidance of the cursor on spells showed spell type to be exact there is at this spell an effect of aura.

For example: If spells are hung up by any effect on Toltip of a spell writes "Aura - Yes"
If the spell is used simply that "Aura - No"

Still example:
http://www.wowhead.com/spell=55233 as it is Aura there has to be an inscription "Aura - Yes"
http://www.wowhead.com/spell=55050 this spell doesn't give aura "Aura - No"

If to be more exact I need to obtain data: whether gives a spell of aura or not.

sorry my English.
  Reply With Quote
12-08-12, 01:49 AM   #6
d87
A Chromatic Dragonspawn
 
d87's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 163
That's impossible, i.e. can't be acquired from game client

Last edited by d87 : 12-08-12 at 01:52 AM.
  Reply With Quote
12-08-12, 02:02 AM   #7
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Not technically impossible, you could record aura events in the combat log and unitaura using the base spell to build a database to reference after you've encountered it once.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Spell Type

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off