Go to Page... |
Compatibility: | Visions of N'Zoth (8.3.0) Rise of Azshara (8.2.0) |
Updated: | 01-28-20 12:50 PM |
Created: | 11-19-17 09:00 PM |
Downloads: | 3,214 |
Favorites: | 3 |
MD5: | |
Categories: | Libraries, Buff, Debuff, Spell |
A Bit of Background
LibSpellName2SID was created by twobits and benots4 for ReadySpells (a rotation helper addon, originally by Aldmehr - his last release, future ReadySpells updates will be on this page).
Back then, LibSpellName2SID was a dropin replacement to the defunct LibBabbleSpell. I believe there is a place for such an addon still nowadays. As I plan on reviving ReadySpells, I am starting by bringing this library up to date.
The first version of LibSpellName2SID uploaded to WoWInterface was simply twobits / benots4's original version, packaged into itself.
What It Does and What It Does Not
- LibSpellName2SID does NOT intend to replace GetSpellInfo()
- LibSpellName2SID does NOT intend to replace GetSpellBookItemInfo()
- LibSpellName2SID does NOT intend to replace other Blizzard API functions that retrieve information about spells
- LibSpellName2SID does intend to replace this:
local spells = { 345679 = true, --spell name 906723 = true, --other spell name }
LibspellName2SID.ID = { ["spell name"] = 345679 , ["other spell name"] = 906723 , }
Comment Options |
11-20-17, 09:13 AM | |
|
Why not use the 7th return from GetSpellInfo?
|
|
p3lim |
View Public Profile |
Send a private message to p3lim |
Find More Posts by p3lim |
Add p3lim to Your Buddy List |
aallkkaa |
View Public Profile |
Send a private message to aallkkaa |
Find More Posts by aallkkaa |
Add aallkkaa to Your Buddy List |
11-20-17, 12:10 PM | |
|
I meant like using the 7th return from GetSpellInfo to get the spellID, like so:
Lua Code:
As a replacement for the lib. |
|
p3lim |
View Public Profile |
Send a private message to p3lim |
Find More Posts by p3lim |
Add p3lim to Your Buddy List |
11-20-17, 02:58 PM | ||
|
Code:
/run print(GetSpellInfo("Lightning Bolt")) So yeah, that's the problem. For what I can tell, using the English spell name in a non-English client will return no info on the hard-coded English spellname. What you posted is however how I intend to get the IDs to populate this library.
Last edited by aallkkaa : 11-20-17 at 03:00 PM.
|
|
|
aallkkaa |
View Public Profile |
Send a private message to aallkkaa |
Find More Posts by aallkkaa |
Add aallkkaa to Your Buddy List |