Skip to content

Instantly share code, notes, and snippets.

@jesseadams
Created June 19, 2011 18:46
Show Gist options
  • Save jesseadams/1034584 to your computer and use it in GitHub Desktop.
Save jesseadams/1034584 to your computer and use it in GitHub Desktop.
Slash command for finding spell ids for current character's spells
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