WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Spell ID Finder? (https://www.wowinterface.com/forums/showthread.php?t=31694)

PerfectH 04-04-10 03:23 PM

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?

Neros 04-04-10 03:32 PM

wowhead.com

Seerah 04-04-10 09:11 PM

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)

Foxlit 04-05-10 07:58 AM

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.

sigg 04-09-10 09:53 AM

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.

:)

lilsparky 04-09-10 01:12 PM

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

Smacker 06-25-10 08:44 AM

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


ravagernl 06-25-10 09:11 AM

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


All times are GMT -6. The time now is 12:53 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI