How to get the skill ID?
I am a junior on mod writing.I noticed that there were item id and skill id.Now many mods can show item id,and we can use it in macros and so on. But how about the skill id?I know it can be found at some wow database websites,but how do they get this information?And is there other way to find a skill's id?
I hope my poor English have stated my meaning clearly.Eagerly waiting for your help! |
Could you please specify the term "skill id"?
If "skill id" is a spell id then you could get it out of the spell link: Code:
local name, rank = GetSpellInfo(spellName, spellRank); |
|
Quote:
After all,thank you all the same! |
Oh. Yes I did. I'm sorry.
I just meant the spellid is part of the link. :) |
Just now I saw this setence:
"spellID is the index of a spell in a spellbook. The indices increase from top to bottom, then left to right, then between categories (e.g.: General -> Discipline). spellIDs will change as players learn new spells and professions. " So it means everyone's spellID can be different from each other? |
No, what you are quoting is in reference to something else.
|
Code:
local i = 1 |
The spell id has nothing to do with you spell book. It's just a unique number for every spell in wow. The spell id of a given spell is the same for every player on every realm.
This is my code to get the spell link and the spell id out of the spell link: Code:
local spellLink = GetSpellLink(name, rank) btw: don't know what you're about to do, but there are approximately 25.000 spells/spell id's. :) |
All times are GMT -6. The time now is 09:41 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI