rvngs update swap searching item name to itemids
This commit is contained in:
@@ -703,9 +703,9 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
|
||||
end
|
||||
|
||||
if(toShow) then
|
||||
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5), ItemindexID) or dataSource[dataID][i][2];
|
||||
IDfound = AL_FindId(dataSource[dataID][i][2], ItemindexID) or dataSource[dataID][i][2];
|
||||
if ((dataID == "SearchResult") or (dataID == "WishList")) then
|
||||
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5), dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
|
||||
IDfound = AL_FindId(dataSource[dataID][i][2], dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
|
||||
end
|
||||
|
||||
if string.sub(IDfound, 1, 1) == "s" then
|
||||
@@ -717,8 +717,6 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
|
||||
if isItem then
|
||||
if ItemindexID == "Bloodforged" then
|
||||
IDfound = "60"..dataSource[dataID][i][2];
|
||||
elseif ItemindexID == 2 then
|
||||
IDfound = dataSource[dataID][i][2];
|
||||
else
|
||||
--Sets ItemindexID to normal(2) if it is nil for min/max difficulties.
|
||||
if not tonumber(ItemindexID) then ItemindexID = AtlasLoot_Difficulty.Normal end;
|
||||
@@ -730,15 +728,15 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
|
||||
|
||||
if dataSource[dataID][i][AtlasLoot_Difficulty.DUPLICATE] then
|
||||
--Used if an item has more then 1 version with the same name eg Atiesh
|
||||
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5) .. " " .. dataSource[dataID][i][AtlasLoot_Difficulty.DUPLICATE], ItemindexID) or dataSource[dataID][i][2];
|
||||
IDfound = AL_FindId(dataSource[dataID][i][2], ItemindexID) or dataSource[dataID][i][2];
|
||||
if ((dataID == "SearchResult") or (dataID == "WishList")) then
|
||||
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5), dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
|
||||
IDfound = AL_FindId(dataSource[dataID][i][2], dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
|
||||
end
|
||||
else
|
||||
--If something was found in itemID database show that if not show default table item
|
||||
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5), ItemindexID) or dataSource[dataID][i][2];
|
||||
IDfound = AL_FindId(dataSource[dataID][i][2], ItemindexID) or dataSource[dataID][i][2];
|
||||
if ((dataID == "SearchResult") or (dataID == "WishList")) then
|
||||
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5), dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
|
||||
IDfound = AL_FindId(dataSource[dataID][i][2], dataSource[dataID][i][AtlasLoot_Difficulty.DIF_SEARCH]) or dataSource[dataID][i][2];
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1449,13 +1447,13 @@ function AtlasLoot_AddTooltip(frameb, tooltiptext)
|
||||
end
|
||||
|
||||
--[[
|
||||
AL_FindId(name, difficulty)
|
||||
Finds the Ids of other difficulties based on the name of the item and the difficulty parameter given.
|
||||
On the form of {Name, {normal, heroic, mythic, mythic1, mythic2, ... ,mythicN}}
|
||||
AL_FindId(id, difficulty)
|
||||
Finds the Ids of other difficulties based on the normal id of the item and the difficulty parameter given.
|
||||
On the form of {ID, {normal, heroic, mythic, mythic1, mythic2, ... ,mythicN}}
|
||||
]]
|
||||
function AL_FindId(name, difficulty)
|
||||
if ItemIDsDatabase[name] ~= nil then
|
||||
return ItemIDsDatabase[name][difficulty], true
|
||||
function AL_FindId(id, difficulty)
|
||||
if ItemIDsDatabase[id] ~= nil then
|
||||
return ItemIDsDatabase[id][difficulty], true
|
||||
end
|
||||
return nil, false;
|
||||
end
|
||||
+5711
-5711
File diff suppressed because it is too large
Load Diff
+5799
-5799
File diff suppressed because it is too large
Load Diff
+580
-580
File diff suppressed because it is too large
Load Diff
@@ -1,71 +1,71 @@
|
||||
--Items not added from generated file
|
||||
ItemIDsDatabase["Bindings of the Windseeker (Left)"] = {18563, 18563, 318563, 218563};
|
||||
ItemIDsDatabase["Bindings of the Windseeker (Right)"] = {18564, 18564, 318564, 218564};
|
||||
ItemIDsDatabase["Eye of Sulfuras"] = {17204, 17204, 317204, 217204};
|
||||
ItemIDsDatabase["Essence of the Firelord"] = {19017, 19017, 319017, 219017};
|
||||
ItemIDsDatabase["Medallion of Binding Shard"] = {11879, 11879, 311879, 211879};
|
||||
ItemIDsDatabase["Atiesh, Greatstaff of the Guardian (Mage)"] = {6022589, 22589, 100174, 222589};
|
||||
ItemIDsDatabase["Atiesh, Greatstaff of the Guardian (Druid)"] = {6022632, 22632, 22632, 222632};
|
||||
ItemIDsDatabase["Atiesh, Greatstaff of the Guardian (Priest)"] = {6022631, 22631, 22631, 222631};
|
||||
ItemIDsDatabase["Atiesh, Greatstaff of the Guardian (Warlock)"] = {6022630, 22630, 22630, 222630};
|
||||
ItemIDsDatabase[18563] = {18563, 18563, 318563, 218563};
|
||||
ItemIDsDatabase[18564] = {18564, 18564, 318564, 218564};
|
||||
ItemIDsDatabase[17204] = {17204, 17204, 317204, 217204};
|
||||
ItemIDsDatabase[19017] = {19017, 19017, 319017, 219017};
|
||||
ItemIDsDatabase[11879] = {11879, 11879, 311879, 211879};
|
||||
ItemIDsDatabase[22589] = {6022589, 22589, 100174, 222589};
|
||||
ItemIDsDatabase[22632] = {6022632, 22632, 22632, 222632};
|
||||
ItemIDsDatabase[22631] = {6022631, 22631, 22631, 222631};
|
||||
ItemIDsDatabase[22630] = {6022630, 22630, 22630, 222630};
|
||||
|
||||
ItemIDsDatabase["Bottled Nethergron Extract"] = {6053891, 2032902, 2232902, 2332902};
|
||||
ItemIDsDatabase["Mmrgrg glm Nuubs"] = {6044831, 44831, 344831, 244831};
|
||||
ItemIDsDatabase["Alembic of Infernal Power"] = {6027896, 27896, 27896, 427896};
|
||||
ItemIDsDatabase[2032902] = {6053891, 2032902, 2232902, 2332902};
|
||||
ItemIDsDatabase[44831] = {6044831, 44831, 344831, 244831};
|
||||
ItemIDsDatabase[27896] = {6027896, 27896, 27896, 427896};
|
||||
|
||||
ItemIDsDatabase["The Darkener's Grasp"] = {6030007, 30007, 330007, 230007};
|
||||
ItemIDsDatabase["The Sun King's Talisman"] = {6030015, 30015, 330015, 230015};
|
||||
ItemIDsDatabase["Telonicus's Pendant of Mayhem"] = {6030017, 30017, 330017, 230017};
|
||||
ItemIDsDatabase["Lord Sanguinar's Claim"] = {6030018, 30018, 330018, 230018};
|
||||
ItemIDsDatabase["Warglaive of Azzinoth (Mainhand)"] = {6032837, 32837, 332837, 232837};
|
||||
ItemIDsDatabase["Warglaive of Azzinoth (Offhand)"] = {6032838, 32838, 332838, 232838};
|
||||
ItemIDsDatabase["Cobra-Lash Boots"] = {6033482, 30104, 330104, 230104};
|
||||
ItemIDsDatabase[30007] = {6030007, 30007, 330007, 230007};
|
||||
ItemIDsDatabase[30015] = {6030015, 30015, 330015, 230015};
|
||||
ItemIDsDatabase[30017] = {6030017, 30017, 330017, 230017};
|
||||
ItemIDsDatabase[30018] = {6030018, 30018, 330018, 230018};
|
||||
ItemIDsDatabase[32837] = {6032837, 32837, 332837, 232837};
|
||||
ItemIDsDatabase[32838] = {6032838, 32838, 332838, 232838};
|
||||
ItemIDsDatabase[30104] = {6033482, 30104, 330104, 230104};
|
||||
|
||||
--Tier 1 Tokens
|
||||
|
||||
ItemIDsDatabase["Molten Headpiece"] = {2522360, 2522360, 2622360, 2722360};
|
||||
ItemIDsDatabase["Molten Spaulders"] = {2522361, 2522361, 2622361, 2722361};
|
||||
ItemIDsDatabase["Molten Tunic"] = {2522350, 2522350, 2622350, 2722350};
|
||||
ItemIDsDatabase["Molten Wristgaurds"] = {2522362, 2522362, 2622362, 2722362};
|
||||
ItemIDsDatabase["Molten Handgaurds"] = {2522363, 2522363, 2622363, 2722363};
|
||||
ItemIDsDatabase["Molten Girdle"] = {2522364, 2522364, 2622364, 2722364};
|
||||
ItemIDsDatabase["Molten Leggaurds"] = {2522359, 2522359, 2622359, 2722359};
|
||||
ItemIDsDatabase["Molten Boots"] = {2522365, 2522365, 2622365, 2722365};
|
||||
ItemIDsDatabase[2522360] = {2522360, 2522360, 2622360, 2722360};
|
||||
ItemIDsDatabase[2522361] = {2522361, 2522361, 2622361, 2722361};
|
||||
ItemIDsDatabase[2522350] = {2522350, 2522350, 2622350, 2722350};
|
||||
ItemIDsDatabase[2522362] = {2522362, 2522362, 2622362, 2722362};
|
||||
ItemIDsDatabase[2522363] = {2522363, 2522363, 2622363, 2722363};
|
||||
ItemIDsDatabase[2522364] = {2522364, 2522364, 2622364, 2722364};
|
||||
ItemIDsDatabase[2522359] = {2522359, 2522359, 2622359, 2722359};
|
||||
ItemIDsDatabase[2522365] = {2522365, 2522365, 2622365, 2722365};
|
||||
|
||||
--Tier 2 Tokens
|
||||
|
||||
ItemIDsDatabase["Chromatic Headpiece"] = {2522460, 2522460, 2622460, 2722460};
|
||||
ItemIDsDatabase["Chromatic Spaulders"] = {2522461, 2522461, 2622461, 2722461};
|
||||
ItemIDsDatabase["Chromatic Tunic"] = {2522450, 2522450, 2622450, 2722450};
|
||||
ItemIDsDatabase["Chromatic Wristgaurds"] = {2522462, 2522462, 2622462, 2722462};
|
||||
ItemIDsDatabase["Chromatic Handgaurds"] = {2522464, 2522464, 2622464, 2722464};
|
||||
ItemIDsDatabase["Chromatic Girdle"] = {2522463, 2522463, 2622463, 2722463};
|
||||
ItemIDsDatabase["Chromatic Leggaurds"] = {2522459, 2522459, 2622459, 2722459};
|
||||
ItemIDsDatabase["Chromatic Boots"] = {2522465, 2522465, 2622465, 2722465};
|
||||
ItemIDsDatabase[2522460] = {2522460, 2522460, 2622460, 2722460};
|
||||
ItemIDsDatabase[2522461] = {2522461, 2522461, 2622461, 2722461};
|
||||
ItemIDsDatabase[2522450] = {2522450, 2522450, 2622450, 2722450};
|
||||
ItemIDsDatabase[2522462] = {2522462, 2522462, 2622462, 2722462};
|
||||
ItemIDsDatabase[2522464] = {2522464, 2522464, 2622464, 2722464};
|
||||
ItemIDsDatabase[2522463] = {2522463, 2522463, 2622463, 2722463};
|
||||
ItemIDsDatabase[2522459] = {2522459, 2522459, 2622459, 2722459};
|
||||
ItemIDsDatabase[2522465] = {2522465, 2522465, 2622465, 2722465};
|
||||
|
||||
--Tier 3 Tokens
|
||||
|
||||
ItemIDsDatabase["Desecrated Helmet"] = {22353, 22353, 102278, 222353};
|
||||
ItemIDsDatabase["Desecrated Pauldrons"] = {22354, 22354, 102286, 222354};
|
||||
ItemIDsDatabase["Desecrated Breastplate"] = {22349, 22349, 102264, 222349};
|
||||
ItemIDsDatabase["Desecrated Bracers"] = {22355, 22355, 102262, 222355};
|
||||
ItemIDsDatabase["Desecrated Gauntlets"] = {22357, 22357, 102268, 222357};
|
||||
ItemIDsDatabase["Desecrated Waistguard"] = {22356, 22356, 102300, 222356};
|
||||
ItemIDsDatabase["Desecrated Legplates"] = {22352, 22352, 102284, 222352};
|
||||
ItemIDsDatabase["Desecrated Sabatons"] = {22358, 22358, 102290, 222358};
|
||||
ItemIDsDatabase[22353] = {22353, 22353, 102278, 222353};
|
||||
ItemIDsDatabase[22354] = {22354, 22354, 102286, 222354};
|
||||
ItemIDsDatabase[22349] = {22349, 22349, 102264, 222349};
|
||||
ItemIDsDatabase[22355] = {22355, 22355, 102262, 222355};
|
||||
ItemIDsDatabase[22357] = {22357, 22357, 102268, 222357};
|
||||
ItemIDsDatabase[22356] = {22356, 22356, 102300, 222356};
|
||||
ItemIDsDatabase[22352] = {22352, 22352, 102284, 222352};
|
||||
ItemIDsDatabase[22358] = {22358, 22358, 102290, 222358};
|
||||
|
||||
--Tier 4 Tokens
|
||||
|
||||
ItemIDsDatabase["Helm of the Fallen Defender"] = {29761, 29761, 329761, 229761};
|
||||
ItemIDsDatabase["Pauldrons of the Fallen Defender"] = {29764, 29764, 329764, 229764};
|
||||
ItemIDsDatabase["Chestguard of the Fallen Defender"] = {29753, 29753, 329753, 229753};
|
||||
ItemIDsDatabase["Gloves of the Fallen Defender"] = {29758, 29758, 329758, 229758};
|
||||
ItemIDsDatabase["Leggings of the Fallen Defender"] = {29767, 29767, 329767, 229767};
|
||||
ItemIDsDatabase[29761] = {29761, 29761, 329761, 229761};
|
||||
ItemIDsDatabase[29764] = {29764, 29764, 329764, 229764};
|
||||
ItemIDsDatabase[29753] = {29753, 29753, 329753, 229753};
|
||||
ItemIDsDatabase[29758] = {29758, 29758, 329758, 229758};
|
||||
ItemIDsDatabase[29767] = {29767, 29767, 329767, 229767};
|
||||
|
||||
--Tier 5 Tokens
|
||||
|
||||
ItemIDsDatabase["Helm of the Vanquished Defender"] = {30243, 30243, 330243, 230243};
|
||||
ItemIDsDatabase["Pauldrons of the Vanquished Defender"] = {30249, 30249, 330249, 230249};
|
||||
ItemIDsDatabase["Chestguard of the Vanquished Defender"] = {30237, 30237, 330237, 230237};
|
||||
ItemIDsDatabase["Gloves of the Vanquished Defender"] = {30240, 30240, 330240, 230240};
|
||||
ItemIDsDatabase["Leggings of the Vanquished Defender"] = {30246, 30246, 30246, 230246};
|
||||
ItemIDsDatabase[30243] = {30243, 30243, 330243, 230243};
|
||||
ItemIDsDatabase[30249] = {30249, 30249, 330249, 230249};
|
||||
ItemIDsDatabase[30237] = {30237, 30237, 330237, 230237};
|
||||
ItemIDsDatabase[30240] = {30240, 30240, 330240, 230240};
|
||||
ItemIDsDatabase[30246] = {30246, 30246, 30246, 230246};
|
||||
|
||||
Reference in New Issue
Block a user