View Single Post
10-23-14, 11:37 AM   #36
sconley
An Aku'mai Servant
Join Date: Dec 2006
Posts: 31
Originally Posted by Duugu View Post
If you're using type/action (like with the standard bars) this problem should not apply to you.
With type/action you can get/set the attribute action/summonmount and use GetActionInfo to query the number.
Here is what I'm doing (short description):
For each class I play, I have a list of the names of spells, mounts, items, etc that go into each action slot.
Example: actions = {'Kill Command', 'Arcane Shot', 'Swift Zhevra'}
In my addon, I look at what is already in blizzard action bar slot to determine if I need to replace it. If I have to pickup the object from the action slot it makes a lot of noise and is slow.
When I use GetActionInfo(3) .... This is the blizzard slot 3 not the one from my actions table,
I need to get from the number it returns 224 to the name of the mount.
Hope that makes sense.
This was working until the last patch. It still works for spells, items, macros.

I wanted an addon that just had names not spell id's, etc.