Originally Posted by Duugu
Could you please specify the term "skill id"?
If "skill id" is a spell id then you could get it out of the spell link:
Code:
local name, rank = GetSpellInfo(spellName, spellRank);
DEFAULT_CHAT_FRAME:AddMessage("Spell: |Hspell:" .. SpellID .."|h|r|cff71d5ff[" .. name .. " " .. rank .. "]|r|h");
|
I am sorry but the code is not correct.Yes,the "skill id" is "SpellId".After seen the code,I checked at wowwiki to find the API.And there is code as above but using "GetSpellInfo(SpellID)".It seems you mixed "GetSpellLink(SpellName,SpellRank)"and"GetSpellInfo(SpellID/SpellName/SpellLink)" together.Then the experiment in game also failed.
After all,thank you all the same!