View Single Post
09-13-08, 12:49 PM   #4
ywwow
A Murloc Raider
 
ywwow's Avatar
Join Date: May 2008
Posts: 9
Originally Posted by Duugu View Post
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!
__________________
Young Learner.I am sorry about my poor English.
  Reply With Quote