/
--------------------- |
-- LibspellName2SID (deprecated) / LibSpellName2SID |
-- V.10000: 2009, originally by Twobits[1], as part of ReadySpells[2] |
-- 2010, edited by benots4[3] |
-- 2017, published as an addon of its own by aallkkaa[4] |
-- V.10001 - 10012: 2017-2018 WoW-7.3.x up to date version by aallkkaa [4] |
-- V.10000: 2009 originally by Twobits[1], as part of ReadySpells[2] |
-- 2010 edited by benots4[3] |
-- 2017 published as an addon of its own by aallkkaa[4] |
-- V.10001 - 10014: 2017-2018 WoW 7.3.x to 8.0.1 versions by aallkkaa [4] |
-- |
-- [1] https://www.wowinterface.com/forums/member.php?userid=139157 |
-- https://www.curseforge.com/members/twobits |
-- API: |
-- LibSpellName2SID.ID["EnglishSpellName"] -- Spell ID of English Spell Name |
-- LibSpellName2SID.LSN["EnglishSpellName"] -- Localized Spell Name |
-- LibSpellName2SID:GetNumSpells() -- Get the number of spells in the database - TEMPORARILY OUT |
-- LibSpellName2SID:GetNumSpells() -- Get the number of spells in the database - TEMPORARILY OUT |
-- LibSpellName2SID:Cleanup() -- Clean up the database (remove from RAM) - DEPRECATED |
--------------------- |
-- print(LibSpellName2SID_MAJOR.. "-".. LibSpellName2SID_MINOR.. ": AddonName = ".. AddonName); |
-- DataSource -- |
-- gameBuild = 27178 |
-- gameBuild = 28153 (standard races +2 allied) and 27178 (4/6 allied races) |
-- clientLocale = enUS |
-- Register with LibStub -- |
}, |
["Racials"] = { |
["Draenei"] = { |
["Gift of the Naaru"] = 59547, |
["Gift of the Naaru"] = 59548, |
}, |
["NightElf"] = { |
["Shadowmeld"] = 58984, |
}, |
["Scourge"] = { |
["Cannibalize"] = 20577, |
["Will of the Forsaken"] = 7744, |
["Troll"] = { |
["Berserking"] = 26297, |
}, |
["Orc"] = { |
["Blood Fury"] = 20572, |
["Gnome"] = { |
["Escape Artist"] = 20589, |
}, |
["Troll"] = { |
["Berserking"] = 26297, |
["Pandaren"] = { |
["Quaking Palm"] = 107079, |
}, |
["Dwarf"] = { |
["Stoneform"] = 20594, |
}, |
["Tauren"] = { |
["War Stomp"] = 20549, |
}, |
["BloodElf"] = { |
["Arcane Torrent"] = 129597, |
}, |
["VoidElf"] = { |
["Spatial Rift"] = 256948, |
}, |
["Worgen"] = { |
["Running Wild"] = 87840, |
["Darkflight"] = 68992, |
["Two Forms"] = 68996, |
}, |
["Tauren"] = { |
["War Stomp"] = 20549, |
}, |
["Dwarf"] = { |
["Stoneform"] = 20594, |
}, |
["Human"] = { |
["Every Man for Himself"] = 59752, |
}, |
["Pandaren"] = { |
["Quaking Palm"] = 107079, |
["LightforgedDraenei"] = { |
["Forge of Light"] = 259930, |
["Light's Judgment"] = 255647, |
}, |
["Goblin"] = { |
["Rocket Barrage"] = 69041, |
["Rocket Jump"] = 69070, |
["Pack Hobgoblin"] = 69046, |
}, |
["VoidElf"] = { |
["Spatial Rift"] = 256948, |
}, |
["Nightborne"] = { |
["Arcane Pulse"] = 260364, |
["Cantrips"] = 255661, |
["HighmountainTauren"] = { |
["Bull Rush"] = 255654, |
}, |
["LightforgedDraenei"] = { |
["Forge of Light"] = 259930, |
}, |
["DarkIronDwarf"] = { |
["Fireblood"] = 265221, |
["Mole Machine"] = 265225, |
["MagharOrc"] = { |
["Ancestral Call"] = 274738, |
}, |
["Scourge"] = { |
["Will of the Forsaken"] = 7744, |
["Cannibalize"] = 20577, |
}, |
}, |
["ZoneAbilities"] = { |
["Telaari Talbuk"] = 165803, |
["Summon Mechashredder 5000"] = 164050, |
["Telaari Talbuk"] = 165803, |
["Summon Lightforged Warframe"] = 250436, |
["Fel Heart Bond"] = 248011, |
["Frostwolf War Wolf"] = 164222, |
["Home Away from Home"] = 168487, |
["Call to Arms"] = 161676, |
["Shroud of Arcane Echoes"] = 248779, |
["Light's Judgment"] = 247427, |
["Garrison Ability"] = 161691, |
["Guardian Orb"] = 161767, |
["Vindicaar Matrix Crystal"] = 251463, |
["Smuggling Run!"] = 170108, |
["Summon Lightforged Warframe"] = 250436, |
["Champion's Honor"] = 164221, |
["Fel Heart Bond"] = 248011, |
["Light's Judgment"] = 247427, |
["Logging"] = 167895, |
["Artillery Strike"] = 162075, |
["Smuggling Run!"] = 170108, |
["Shroud of Arcane Echoes"] = 248779, |
["Frostwolf War Wolf"] = 164222, |
["Telaari Siege Engine"] = 160240, |
["Champion's Honor"] = 164221, |
}, |
["GuildPerks"] = { |
["Mobile Banking"] = 83958, |
}, |
}, |
["DEATHKNIGHT"] = { |
["Frost_Talents"] = { |
["Wraith Walk"] = 212552, |
["Logging"] = 167895, -- Mark lumber for gathering in Draenor (requires logging camp) |
-- Argus |
["Vindicaar Matrix Crystal"] = 251463, -- Cast the one active of the other four |
["Light's Judgment"] = 247427, |
["Light's Judgment"] = 247427, -- Same name, different ID, than that of the Lightforged |
-- Draenei Racial spell. |
["Summon Lightforged Warframe"] = 250436, |
["Fel Heart Bond"] = 248011, -- Passive workings? - tooltip says "Instant" |
["Shroud of Arcane Echoes"] = 248779, |
armorSkills = spellID; |
elseif spellName == "Weapon Skills" then |
weaponSkills = spellID; |
elseif postUpdate_Spells2Add_PASSIVES.General.ZoneAbilities[spellName] then |
if not SN2SID_table[generalTabName].ZoneAbilities then |
SN2SID_PASSIVES_table[generalTabName].ZoneAbilities = { [spellName] = spellID }; |
else |
SN2SID_PASSIVES_table[generalTabName].ZoneAbilities[spellName] = spellID; |
end |
-- NB: See "NB" for non-passive spells bellow |
elseif spellSubName and strfind(spellSubName, "Racial") then |
if not SN2SID_PASSIVES_table[generalTabName].Racials[universalRaceName] then |
SN2SID_PASSIVES_table[generalTabName].Racials[universalRaceName] = { [spellName] = spellID }; |
else |
SN2SID_PASSIVES_table[generalTabName].GuildPerks[spellName] = spellID; |
end |
-- Will now test for the hardcoded ZoneAbilities, to place them in the correct subcategory |
elseif postUpdate_Spells2Add_PASSIVES.General.ZoneAbilities[spellName] then |
if not SN2SID_table[generalTabName].ZoneAbilities then |
SN2SID_PASSIVES_table[generalTabName].ZoneAbilities = { [spellName] = spellID }; |
else |
SN2SID_PASSIVES_table[generalTabName].ZoneAbilities[spellName] = spellID; |
end |
-- All other spells go into the "Others" subcategory |
elseif not SN2SID_PASSIVES_table[generalTabName].Others then |
SN2SID_PASSIVES_table[generalTabName].Others = { [spellName] = spellID }; |
else |
SN2SID_PASSIVES_table[generalTabName].Others[spellName] = spellID; |
end |
else |
if postUpdate_Spells2Add.General.ZoneAbilities[spellName] then |
if not SN2SID_table[generalTabName].ZoneAbilities then |
SN2SID_table[generalTabName].ZoneAbilities = { [spellName] = spellID }; |
else |
SN2SID_table[generalTabName].ZoneAbilities[spellName] = spellID; |
end |
elseif spellSubName and strfind(spellSubName, "Racial") then |
-- NB: Switched the order of checks: Before, we were checking for the presence of the spell |
-- in our list of hardcoded Zone spells first. Now, we do that test last, as there is at |
-- least one instance of a spell with the same name, but different IDs, that is a Racial |
-- (that we fetch from the server) and also a hardcoded Zone ability: "Light's Judgment". |
if spellSubName and strfind(spellSubName, "Racial") then |
if not SN2SID_table[generalTabName].Racials[universalRaceName] then |
SN2SID_table[generalTabName].Racials[universalRaceName] = { [spellName] = spellID }; |
else |
else |
SN2SID_table[generalTabName].GuildPerks[spellName] = spellID; |
end |
-- Will now test for the hardcoded ZoneAbilities, to place them in the correct subcategory |
elseif postUpdate_Spells2Add.General.ZoneAbilities[spellName] then |
if not SN2SID_table[generalTabName].ZoneAbilities then |
SN2SID_table[generalTabName].ZoneAbilities = { [spellName] = spellID }; |
else |
SN2SID_table[generalTabName].ZoneAbilities[spellName] = spellID; |
end |
-- All other spells go into the "Others" subcategory |
elseif not SN2SID_table[generalTabName].Others then |
SN2SID_table[generalTabName].Others = { [spellName] = spellID }; |
else |