Created
June 19, 2011 18:46
-
-
Save jesseadams/1034584 to your computer and use it in GitHub Desktop.
Slash command for finding spell ids for current character's spells
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function SearchForSpellID(msg, editbox) | |
if not msg or msg:len() == 0 then | |
print("Usage: /wtfux Spell Name") | |
return | |
end | |
if GetSpellLink(msg) then | |
print("Spell ID: " .. GetSpellLink(msg):match("spell:(%d+)")) | |
else | |
print("Your character can not cast " .. msg) | |
end | |
end | |
SLASH_WTFUX1= '/wtfux'; | |
SlashCmdList["WTFUX"] = SearchForSpellID; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment