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,114 |
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 |
aallkkaa |
View Public Profile |
Send a private message to aallkkaa |
Find More Posts by aallkkaa |
Add aallkkaa to Your Buddy List |
![]() |
|
|
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 |
![]() |
||
|
The addon this is primarily meant for, ReadySpells, has two possible sources for spell lists: User-created priority lists and Addon-default priority lists. The later are hard-coded into the addon as English spell names.
It's true said default lists could be used with spell IDs instead. And because, as it seems to me, as far as updating ReadySpells goes, the main work will be on updating those lists anyway, it would be the perfect time to do that change. But, for maintainng these lists in the future, the spell names are easier to edit and reorder. For this purpose, we could use what Seerah suggested in the forum thread I linked in the addon's description:
But the above example by Seerah looks a lot like this, from the (old) LibspellName2SID: Lua Code:
It's just a lazyer way of doing it, I guess. ![]()
Last edited by aallkkaa : 11-20-17 at 11:00 AM.
|
|
![]() |
![]() |
aallkkaa |
View Public Profile |
Send a private message to aallkkaa |
Find More Posts by aallkkaa |
Add aallkkaa to Your Buddy List |
![]() |
|
|
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 |
![]() |