Thread Tools Display Modes
04-04-10, 03:23 PM   #1
PerfectH
A Flamescale Wyrmkin
 
PerfectH's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jan 2008
Posts: 137
Spell ID Finder?

I am trying to find out how to find spell ID's for specific spells. I'm thinking I could run a macro script to mouse over a particular spell then have it print the spell ID or whatever info I need in console chat.

Does anyone know of a better way to find a spell ID?
__________________
I might fail at AddOn creativity...but damn do I love Coca-Cola!
  Reply With Quote
04-04-10, 03:32 PM   #2
Neros
Banned
Join Date: Nov 2009
Posts: 6
wowhead.com
  Reply With Quote
04-04-10, 09:11 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
To clarify... Look up the spell on Wowhead and the ID will be the numbers at the end of the web address for the spell's page (other db sites have this layout as well)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-05-10, 07:58 AM   #4
Foxlit
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 91
If you can link the spell, just do a /dump "[Spell Link]". That'll output text to your default chat frame; you can find the spell ID by looking for a spell:12345: segment in that string, 12345 being the spell ID of the linked spell.
__________________
... and you do get used to it, after a while.
  Reply With Quote
04-09-10, 09:53 AM   #5
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
If you are using OpenRDX, there is the following function :
local spellid = RDXSS.GetSpellIdByLocalName(name);

name is the local client localization of the spell, "Regen" in french (renew us).

That also mean we are storing all spell in a local database.

  Reply With Quote
04-09-10, 01:12 PM   #6
lilsparky
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 117
if you only want spells you know, then you can GetSpellLink("spellname") to get the spell link, then the spellID can get pulled from that.

Code:
local spellLink = GetSpellLink(spellName)
if spellLink then
    local spellID = spellLink.match("spell:(%d+)")
    print(spellID)
end
should work
  Reply With Quote
06-25-10, 08:44 AM   #7
Smacker
A Deviate Faerie Dragon
 
Smacker's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 16
I use this to show ids on myself or target:

Code:
 :
	elseif (msg=="showbuffs") then
		PowaAuras:ShowAurasOnUnit("Buffs", "HELPFUL");
	elseif (msg=="showdebuffs") then
		PowaAuras:ShowAurasOnUnit("Debuffs", "HARMFUL");
 :

function PowaAuras:ShowAurasOnUnit(display, auraType)
	local index = 1;
	local unit = "player";
	if (UnitExists("target")) then
		unit = "target";
	end
	PowaAuras:Message(display.." on "..unit);
	local Name, _, _, Applications, Type, Duration, Expires, Source, Stealable, shouldConsolidate, spellId = UnitAura(unit, index, auraType);
	while (Name~=nil) do
		PowaAuras:Message(index..": "..Name.." (SpellID="..spellId..")");
		index = index + 1;
		Name, _, _, Applications, Type, Duration, Expires, Source, Stealable, shouldConsolidate, spellId = UnitAura(unit, index, auraType);
	end
end
  Reply With Quote
06-25-10, 09:11 AM   #8
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
macro:
Code:
/dump GetSpellLink'Shadow Bolt'
EDIT: Seems I was wrong, iirc it did also print the id as second argument, but it does not :S
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Spell ID Finder?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off