View Single Post
04-09-10, 01:12 PM   #6
lilsparky
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 117
if you only want spells you know, then you can GetSpellLink("spellname") to get the spell link, then the spellID can get pulled from that.

Code:
local spellLink = GetSpellLink(spellName)
if spellLink then
    local spellID = spellLink.match("spell:(%d+)")
    print(spellID)
end
should work
  Reply With Quote