Code:
local i = 1
while true do
local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL)
if not spellName then
do break end
end
DEFAULT_CHAT_FRAME:AddMessage( spellName .. '(' .. spellRank .. ')'..'SpellID:'..i )
i = i + 1
end
Can I in this way get the SpellID which can be used as the item id in macros in the form of "item:id"?