Thread Tools Display Modes
09-19-08, 03:31 PM   #1
slizen
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 15
Is there something equal to GetItemIcon for spells?

Since you can get the icon of any item by using GetItemIcon() even if you haven't got it cached it would be kinda logical that there would be something similar for spells. I've been searching forever but I can't find any.
Now why would blizzard make us able to get all item icons but not all spell icons?

Edit: While I'm at it, is there any way to get the text a tooltip contains?

Last edited by slizen : 09-19-08 at 03:36 PM.
  Reply With Quote
09-19-08, 03:35 PM   #2
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
GetSpellInfo(spellId) returns the icon path

name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange
= GetSpellInfo(spellId or spellName or spellLink)

http://www.wowwiki.com/API_GetSpellInfo
  Reply With Quote
09-19-08, 04:10 PM   #3
slizen
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 15
Ah yeah, but it only works with spellLink/spellName if you know the spell, and there is no way to find out spellID's for unknown spells ingame.
It's the same for items, except there is GetItemIcon() to get around this, I'm just wondering if there is a similar workaround for spells. Anything that isn't a database with for example spell names paired with their spellid's.
  Reply With Quote
09-19-08, 04:48 PM   #4
Mera
Retired of WoW, In ESO :)
 
Mera's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 331
LibBabble-Spell-3.0, it has a few api documented here but better to read the code to have all of them, there is way more functions inside.
__________________
If you need to reach me I'm in ESO, @class101 or "Fathis Ules i"
addons: SpamBayes, BrokerCPU
projects: ThunderBayes
Mera[xeh]? - La CroisadeEcarlate (wow)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Is there something equal to GetItemIcon for spells?


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