new version im working on

This commit is contained in:
Anch
2021-10-26 01:15:40 +13:00
parent 3bd05c11ba
commit 1c9354faf5
14 changed files with 12490 additions and 24794 deletions
+117 -124
View File
@@ -36,8 +36,6 @@ AtlasLoot = LibStub("AceAddon-3.0"):NewAddon("AtlasLoot");
local BabbleBoss = AtlasLoot_GetLocaleLibBabble("LibBabble-Boss-3.0") local BabbleBoss = AtlasLoot_GetLocaleLibBabble("LibBabble-Boss-3.0")
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot"); local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
--Establish version number and compatible version of Atlas --Establish version number and compatible version of Atlas
local VERSION_MAJOR = "5"; local VERSION_MAJOR = "5";
local VERSION_MINOR = "11"; local VERSION_MINOR = "11";
@@ -58,11 +56,6 @@ ATLASLOOT_INDENT = " ";
AtlasLoot_Dewdrop = AceLibrary("Dewdrop-2.0"); AtlasLoot_Dewdrop = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropSubMenu = AceLibrary("Dewdrop-2.0"); AtlasLoot_DewdropSubMenu = AceLibrary("Dewdrop-2.0");
AtlasLoot_DewdropSubMenu2 = AceLibrary("Dewdrop-2.0"); AtlasLoot_DewdropSubMenu2 = AceLibrary("Dewdrop-2.0");
DewDrop2Enable = false;
currentID = "";
dataIDBackup = nil;
dataSourceBackup = nil;
--Variable to cap debug spam --Variable to cap debug spam
ATLASLOOT_DEBUGSHOWN = false; ATLASLOOT_DEBUGSHOWN = false;
@@ -89,6 +82,12 @@ Hooked_Atlas_Refresh = nil;
Hooked_Atlas_OnShow = nil; Hooked_Atlas_OnShow = nil;
Hooked_AtlasScrollBar_Update = nil; Hooked_AtlasScrollBar_Update = nil;
--Pre Sets for defficuilty menu
SelectedTable2TextSet = true
isTablereference = false
notPattern = false
AtlasLootCharDB={}; AtlasLootCharDB={};
local AtlasLootDBDefaults = { local AtlasLootDBDefaults = {
@@ -115,6 +114,7 @@ local AtlasLootDBDefaults = {
AtlasLootVersion = "1", AtlasLootVersion = "1",
AtlasNaggedVersion = "", AtlasNaggedVersion = "",
FuBarPosition = 1, FuBarPosition = 1,
MythicPlussTier = 1,
AutoQuery = false, AutoQuery = false,
LoadAllLoDStartup = false, LoadAllLoDStartup = false,
PartialMatching = true, PartialMatching = true,
@@ -139,6 +139,7 @@ AtlasLoot_MenuList = {
"ARENA4SET", "ARENA4SET",
}; };
-- Popup Box for first time users -- Popup Box for first time users
StaticPopupDialogs["ATLASLOOT_SETUP"] = { StaticPopupDialogs["ATLASLOOT_SETUP"] = {
text = AL["Welcome to Atlasloot Enhanced. Please take a moment to set your preferences."], text = AL["Welcome to Atlasloot Enhanced. Please take a moment to set your preferences."],
@@ -496,29 +497,28 @@ function AtlasLoot_OnLoad()
end end
AtlasLoot_Difficulty = { AtlasLoot_Difficulty = {
-- table of difficuilitys and there itemID references
["ClassicDungeon"] = { {"Normal", "" }, {"Bloodforged", 1 } }; ["ClassicDungeon"] = { {"Normal", "" }, {"Bloodforged", 1 } };
["ClassicDungeonExt"] = { {"Normal", "" }, {"Heroic", 3 }, {"Mythic", 4 }, {"Mythic1", 5 }, {"Mythic2", 6 }, {"Mythic3", 7 }, {"Mythic4", 8 }, {"Mythic5", 9 }, {"Mythic6", 10 }, ["ClassicDungeonExt"] = { {"Normal", "" }, {"Heroic", 3 }, {"Mythic", 4 }, {"Mythic 1", 5 }, {"Mythic 2", 6 }, {"Mythic 3", 7 }, {"Mythic 4", 8 }, {"Mythic 5", 9 }, {"Mythic 6", 10 },
{"Mythic7", 11 }, {"Mythic8", 12 }, {"Mythic9", 13 }, {"Mythic10", 14 }, {"Bloodforged", 1 }, }; {"Mythic 7", 11 }, {"Mythic 8", 12 }, {"Mythic 9", 13 }, {"Mythic 10", 14 }, {"Bloodforged", 1 }, };
["ClassicRaid"] = { {"NormalFLEX", "" }, {"HeroicFLEX", 3 }, {"Ascended", 4 }, {"Bloodforged", 1 }, }; ["ClassicRaid"] = { {"Normal Flex", "" }, {"Heroic Flex", 3 }, {"Ascended", 4 }, {"Bloodforged", 1 }, };
["BCDungeon"] = { {"Normal", "" }, {"Mythic", 4 }, {"Mythic1", 5 }, {"Mythic2", 6 }, {"Mythic3", 7 }, {"Mythic4", 8 }, {"Mythic5", 9 }, {"Mythic6", 10 }, ["BCDungeon"] = { {"Normal/Heroic", "" }, {"Mythic", 4 }, {"Mythic 1", 5 }, {"Mythic 2", 6 }, {"Mythic 3", 7 }, {"Mythic 4", 8 }, {"Mythic 5", 9 }, {"Mythic 6", 10 },
{"Mythic7", 11 }, {"Mythic8", 12 }, {"Mythic9", 13 }, {"Mythic10", 14 }, {"Bloodforged", 1 }, }; {"Mythic 7", 11 }, {"Mythic 8", 12 }, {"Mythic 9", 13 }, {"Mythic 10", 14 }, {"Bloodforged", 1 }, };
["BCRaid"] = { {"NormalFLEX", "" }, {"HeroicFLEX", 3 }, {"Ascended", 4 }, {"Bloodforged", 1 }, }; ["BCRaid"] = { {"Normal Flex", "" }, {"Heroic Flex", 3 }, {"Ascended", 4 }, {"Bloodforged", 1 }, };
["WrathDungeon"] = { {"Normal", "" }, {"Mythic", 4 }, {"Mythic1", 5 }, {"Mythic2", 6 }, {"Mythic3", 7 }, {"Mythic4", 8 }, {"Mythic5", 9 }, {"Mythic6", 10 }, ["WrathDungeon"] = { {"Normal", "" }, {"Mythic", 4 }, {"Mythic1", 5 }, {"Mythic2", 6 }, {"Mythic3", 7 }, {"Mythic4", 8 }, {"Mythic5", 9 }, {"Mythic6", 10 },
{"Mythic7", 11 }, {"Mythic8", 12 }, {"Mythic9", 13 }, {"Mythic10", 14 }, {"Bloodforged", 1 }, }; {"Mythic7", 11 }, {"Mythic8", 12 }, {"Mythic9", 13 }, {"Mythic10", 14 }, {"Bloodforged", 1 }, };
["WrathRaid"] = { {"NormalFLEX", "" }, {"HeroicFLEX", 3 }, {"Ascended", 4 }, {"Bloodforged", 1 }, }; ["WrathRaid"] = { {"Normal Flex", "" }, {"Heroic Flex", 3 }, {"Ascended", 4 }, {"Bloodforged", 1 }, };
["Crafting"] = { {"CraftingPatterns", "" }, {"", "=s=Normal" }, {"Bloodforged", 1 }, }, ["Crafting"] = { {"Crafting Patterns", "" }, {"Item Normal", "=s=Normal" }, {"Bloodforged", 1 }, },
["CraftingExt"] = { {"CraftingPatternUncommon", "" }, {"CraftingPatternsRare", "Rare" }, {"CraftingPatternsEpic", "Epic" }, {"ItemUncommon", "=s=" }, {"ItemRare", "=s=Rare" }, {"ItemEpic", "=s=Epic" } } ["CraftingExt"] = { {"Crafting Pattern Uncommon", "" }, {"Crafting Patterns Rare", "Rare" }, {"Crafting Patterns Epic", "Epic" }, {"Item Uncommon", "=s=" }, {"Item Rare", "=s=Rare" }, {"Item Epic", "=s=Epic" } }
} }
--[[ --[[
@@ -538,10 +538,9 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
local wlPage, wlPageMax = 1, 1; local wlPage, wlPageMax = 1, 1;
local isItem; local isItem;
local spellName, spellIcon; local spellName, spellIcon;
--If the loot table name has not been passed, throw up a debugging statement --If the loot table name has not been passed, throw up a debugging statement
if dataID == nil then if dataID==nil then
DEFAULT_CHAT_FRAME:AddMessage("No dataID!"); DEFAULT_CHAT_FRAME:AddMessage("No dataID!");
return; return;
end end
@@ -559,7 +558,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
dataSource_backup = dataSource; dataSource_backup = dataSource;
if dataID == "SearchResult" or dataID == "WishList" then if dataID == "SearchResult" or dataID == "WishList" then
ItemindexID = "" ItemindexID = "";
AtlasLootDefaultFrame_SubMenu2:Disable(); AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootDefaultFrame_SelectedTable2:SetText(""); AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide(); AtlasLootDefaultFrame_SelectedTable2:Hide();
@@ -578,6 +577,46 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
else else
dataSource = AtlasLoot_Data; dataSource = AtlasLoot_Data;
end end
if dataID == "FilterList" then
Type = lastType;
else
Type = dataSource[dataID].Type;
end
if Type ~= lastType then
AtlasLoot_DifficultyDisable()
if lastReference ~= nil then
dataID = gsub(dataID, lastReference, ""); -- removes old table reference before adding a new 1 if needed
end
ItemindexID = "";
end
if DewDrop2Enable or not dataID == nil or lastReference then
dataID = gsub(dataID, lastReference, ""); -- removes old table reference before adding a new 1 if needed
end
if Type == nil and ATLASLOOT_FILTER_ENABLE == false or dataID:match("MENU") or ATLASLOOT_FILTER_ENABLE and dataSource[AtlasLoot_CurrentBoss].Type == nil then -- disable difficulty menu
AtlasLoot_DifficultyDisable()
AtlasLoot_CurrentBoss = dataID;
elseif ATLASLOOT_FILTER_ENABLE then
AtlasLoot_DifficultyEnable(AtlasLoot_CurrentBoss, dataSource)
elseif Type ~= nil then-- enable difficulty menu
AtlasLoot_DifficultyEnable(dataID, dataSource)
AtlasLoot_CurrentBoss = dataID
end
if isTablereference and not notPattern then -- if the itemID is the item rather from a crafting pattern rather then the pattern itself
dataID = dataID .. tableReference;
DewDrop2Enable = true;
lastReference = tableReference;
elseif isTablereference and notPattern then -- if the itemID is a new table reference rather then and itemID reference
dataID = dataID .. tableReference;
DewDrop2Enable = true;
lastReference = tableReference;
else
DewDrop2Enable = false;
end
--Hide UI objects so that only needed ones are shown --Hide UI objects so that only needed ones are shown
for i = 1, 30, 1 do for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide(); getglobal("AtlasLootItem_"..i.."_Unsafe"):Hide();
@@ -587,85 +626,32 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
getglobal("AtlasLootItem_"..i).spellitemID = 0; getglobal("AtlasLootItem_"..i).spellitemID = 0;
end end
--used when there is an extra loottable instead of using itemIDsDatabase
if dataID:match("MENU") then
isTablereference = false
notPattern = false
isItemID = false
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide();
DewDrop2Enable = false
elseif isTablereference and not notPattern then
if DewDrop2Enable then
dataID = gsub(dataID, lastReference, "")
end
dataID = dataID .. tableReference
DewDrop2Enable = true
lastReference = tableReference
elseif isTablereference and notPattern then
if DewDrop2Enable then
dataID = gsub(dataID, lastReference, "")
end
dataID = dataID .. tableReference
DewDrop2Enable = true
lastReference = tableReference
else
DewDrop2Enable = false
end
--Used to enable difficulty menu if its not a subtable
if AtlasLoot_DewDropDown_SubTables2[dataID] and DropMenu2 == true then
AtlasLootDefaultFrame_SubMenu2:Enable();
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLoot_DewdropSubMenu2Register(AtlasLoot_DewDropDown_SubTables2[dataID]);
--Sets difficulty text if theres none there
if not SelectedTable2TextSet then
AtlasLootDefaultFrame_SelectedTable2:SetText(AtlasLoot_TableNames[AtlasLoot_DewDropDown_SubTables2[dataID][1][3]][1]);
end
AtlasLootDefaultFrame_SelectedTable2:Show();
SelectedTable2TextSet = true
elseif DewDrop2Enable then
AtlasLootDefaultFrame_SubMenu2:Enable();
elseif not AtlasLoot_DewDropDown_SubTables2[dataID] and DropMenu2 == true then
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide();
SelectedTable2TextSet = false
end
if dataSource[dataID].Difficulty then
print(dataSource[dataID].Difficulty)
end
if AtlasLoot_TableNames[dataID] ~= nil and AtlasLoot_TableNames[dataID][2] == "Menu" then if AtlasLoot_TableNames[dataID] ~= nil and AtlasLoot_TableNames[dataID][2] == "Menu" then
AtlasLoot_GenerateAtlasMenu(dataID, pFrame); AtlasLoot_GenerateAtlasMenu(dataID, pFrame);
return; return;
end end
-- Create the loottable -- Create the loottable
if (dataID == "SearchResult") or (dataID == "WishList") or (AtlasLoot_IsLootTableAvailable(dataID)) then if (dataID == "SearchResult") or (dataID == "WishList") or (AtlasLoot_IsLootTableAvailable(dataID)) then
--Iterate through each item object and set its properties --Iterate through each item object and set its properties
for i = 1, 30, 1 do for i = 1, 30, 1 do
--Check for a valid object (that it exists, and that it has a name) --Check for a valid object (that it exists, and that it has a name)
if(dataSource[dataID][i] ~= nil and dataSource[dataID][i][4] ~= "") then if(dataSource[dataID][i] ~= nil and dataSource[dataID][i][4] ~= "") then
--Finds ItemIDS of none normal gear
if AL_FindId(string.sub(dataSource[dataID][i][4], 5), ItemindexID) == nil or AL_FindId(string.sub(dataSource[dataID][i][4], 5), ItemindexID) == '' or not tonumber(ItemindexID) then if dataSource[dataID][i][8] and tonumber(ItemindexID) then
IDfound = dataSource[dataID][i][2] -- Used if an item has more then 1 version with the same name eg Atiesh
else IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5) .. " " .. dataSource[dataID][i][8], ItemindexID) -- Used for 8th table entery in a loottable for when we have items with the same name eg Atiesh
IDfound = AL_FindId(string.sub(dataSource[dataID][i][4], 5), ItemindexID) 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]
end end
if string.sub(IDfound, 1, 1) == "s" then if string.sub(IDfound, 1, 1) == "s" then
isItem = false; isItem = false;
else else
isItem = true; isItem = true;
end end
if isItem then if isItem then
--print(dataSource[dataID][i][2])
--print(dataSource[dataID][i][2])
itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemCount, itemEquipLoc, itemTexture = GetItemInfo(IDfound); itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemCount, itemEquipLoc, itemTexture = GetItemInfo(IDfound);
--If the client has the name of the item in cache, use that instead. --If the client has the name of the item in cache, use that instead.
--This is poor man's localisation, English is replaced be whatever is needed --This is poor man's localisation, English is replaced be whatever is needed
@@ -673,9 +659,19 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
_, _, _, itemColor = GetItemQualityColor(itemQuality); _, _, _, itemColor = GetItemQualityColor(itemQuality);
text = itemColor..itemName; text = itemColor..itemName;
else else
if(GetItemInfo(IDfound)) then if(GetItemInfo(IDfound)) or not dataSource[dataID][i][2] == IDfound then
_, _, _, itemColor = GetItemQualityColor(itemQuality); _, _, _, itemColor = GetItemQualityColor(itemQuality);
text = itemColor..itemName; text = itemColor..itemName;
elseif dataSource[dataID][i][2] ~= IDfound then
--If the item is not in cache, use the saved value and process it
if tonumber(ItemindexID) then
text = (string.sub(dataSource[dataID][i][4], 5));
text = "=q4=" .. text;
text = AtlasLoot_FixText(text);
else
text = dataSource[dataID][i][4];
text = AtlasLoot_FixText(text);
end
else else
--If the item is not in cache, use the saved value and process it --If the item is not in cache, use the saved value and process it
text = dataSource[dataID][i][4]; text = dataSource[dataID][i][4];
@@ -806,6 +802,10 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
end end
end end
if dataID ~= "FilterList" then
lastType = dataSource[dataID].Type
end
AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame}; AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame};
if dataID ~= "FilterList" then if dataID ~= "FilterList" then
AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame} AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame}
@@ -830,9 +830,21 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
--This is a valid QuickLook, so show the UI objects --This is a valid QuickLook, so show the UI objects
AtlasLoot_QuickLooks:Show(); AtlasLoot_QuickLooks:Show();
AtlasLootQuickLooksButton:Show(); AtlasLootQuickLooksButton:Show();
--Check if difficulties exist, if so show difficulty select buttons
if (dataID ~= "SearchResult" and AtlasLoot_Data[dataID].Dif ~= nil) then
--AtlasLootMythicButton.difficulty_type = AtlasLoot_Data[dataID].Type or "Dungeon"
--AtlasLootMythicButton:Show();
--AtlasLoot_DifficultySelect:Show();
end
if (dataID == "SearchResult" and dataSource[dataID].Dif ~= nil) then
--AtlasLootMythicButton.difficulty_type = dataSource[dataID].Type or "Dungeon"
--AtlasLootMythicButton:Show();
--AtlasLoot_DifficultySelect:Show();
end
-- Show the Filter Check-Box -- Show the Filter Check-Box
if dataID ~= "WishList" and dataID ~= "SearchResult" and dataSource_backup ~= "AtlasLootCrafting" and not isTablereference then if dataID ~= "WishList" and dataID ~= "SearchResult" and dataSource_backup ~= "AtlasLootCrafting" then
AtlasLootFilterCheck:Show(); AtlasLootFilterCheck:Show();
end end
--Hide navigation buttons by default, only show what we need --Hide navigation buttons by default, only show what we need
@@ -840,7 +852,12 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
getglobal("AtlasLootItemsFrame_NEXT"):Hide(); getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide(); getglobal("AtlasLootItemsFrame_PREV"):Hide();
if dataID ~= "SearchResult" and dataID ~= "WishList" then if dataID ~= "SearchResult" and dataID ~= "WishList" then
AtlasLoot_BossName:SetText(AtlasLoot_TableNames[dataID][1]); local affix = "";
if AtlasLoot_Data[dataID].Dif ~= nil then
local d = AtlasLoot_Data[dataID].Type or "Dungeon"
affix = " ("..AtlasLoot_Difficulty[d][GetDifficultyTier()]..")"
end
AtlasLoot_BossName:SetText(AtlasLoot_TableNames[dataID][1]..affix);
else else
AtlasLoot_BossName:SetText(boss); AtlasLoot_BossName:SetText(boss);
end end
@@ -868,8 +885,8 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
getglobal("AtlasLootItemsFrame_BACK"):Show(); getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = tablebase.Back; getglobal("AtlasLootItemsFrame_BACK").lootpage = tablebase.Back;
end end
end end
end end
--For Alphamap and Atlas integration, show a 'close' button to hide the loot table and restore the map view --For Alphamap and Atlas integration, show a 'close' button to hide the loot table and restore the map view
@@ -884,7 +901,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
if ATLASLOOT_FILTER_ENABLE == true and dataID ~= "FilterList" then if ATLASLOOT_FILTER_ENABLE == true and dataID ~= "FilterList" then
AtlasLoot_HideNoUsableItems() AtlasLoot_HideNoUsableItems()
end end
AtlasLoot_CurrentBoss = dataID
if AtlasLoot.db.profile.ItemAutoQuery then AtlasLoot_QueryLootPage(); end if AtlasLoot.db.profile.ItemAutoQuery then AtlasLoot_QueryLootPage(); end
end end
@@ -1064,7 +1081,6 @@ end
AtlasLoot_NavButton_OnClick: AtlasLoot_NavButton_OnClick:
Called when <-, -> or 'Back' are pressed and calls up the appropriate loot page Called when <-, -> or 'Back' are pressed and calls up the appropriate loot page
]] ]]
function AtlasLoot_NavButton_OnClick() function AtlasLoot_NavButton_OnClick()
if AtlasLootItemsFrame.refresh and AtlasLootItemsFrame.refresh[4] then if AtlasLootItemsFrame.refresh and AtlasLootItemsFrame.refresh[4] then
if strsub(this.lootpage, 1, 16) == "SearchResultPage" then if strsub(this.lootpage, 1, 16) == "SearchResultPage" then
@@ -1325,42 +1341,19 @@ Finds the Ids of other difficulties based on the name of the item and the diffic
On the form of {Name, {normal, heroic, mythic, mythic1, mythic2, ... ,mythicN}} On the form of {Name, {normal, heroic, mythic, mythic1, mythic2, ... ,mythicN}}
]] ]]
function AL_FindId(name, difficulty) function AL_FindId(name, difficulty)
for index, items in pairs(ItemIDsDatabase) do if ItemIDsDatabase[name] ~= nil then
for key, eachItem in ipairs(items) do return ItemIDsDatabase[name][difficulty]
if eachItem == name then else
return items[2][difficulty] return nil;
end
end
end end
end end
-- https://replit.com/languages/lua
-- ItemIDsDatabase = {
-- --name, {normal, heroic, mythic, mythicN}
-- {"test1", {1000, 2000, 3000, 4000} },
-- {"test2", {1002, 2002, 3002, 4002} },
-- }
-- --[[
-- 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}}
-- ]]
-- name = "test1"
-- difficulty = 2 function GetDifficultyTier()
return AtlasLoot.db.profile.MythicPlussTier
-- for index, items in pairs(ItemIDsDatabase) do end
-- --print(index, '\t', items)
function SetDifficultyTier(difficulty)
-- for key, eachItem in ipairs(items) do AtlasLoot.db.profile.MythicPlussTier = difficulty;
-- -- for key2, eachItem2 in ipairs(eachItem) do end
-- -- print('\t', items[1], eachItem2)
-- -- end
-- print("test")
-- if eachItem == name then
-- print(key, '\t', eachItem)
-- print(items[2][difficulty])
-- end
-- -- print('\t', key, value)
-- end
-- end
+2
View File
@@ -221,11 +221,13 @@ function AtlasLoot_HideNoUsableItems()
AtlasLoot_TableNames["FilterList"] = {AtlasLoot_TableNames[dataID][1],AtlasLoot_TableNames[dataID][2]}; AtlasLoot_TableNames["FilterList"] = {AtlasLoot_TableNames[dataID][1],AtlasLoot_TableNames[dataID][2]};
AtlasLoot_ShowItemsFrame("FilterList", "AtlasLootFilter", "", AtlasLootItemsFrame.refresh[4]) AtlasLoot_ShowItemsFrame("FilterList", "AtlasLootFilter", "", AtlasLootItemsFrame.refresh[4])
Type = lastType
end end
function AtlasLoot_FilterEnableButton() function AtlasLoot_FilterEnableButton()
if ATLASLOOT_FILTER_ENABLE == true then if ATLASLOOT_FILTER_ENABLE == true then
ATLASLOOT_FILTER_ENABLE = false ATLASLOOT_FILTER_ENABLE = false
ReEnableFilter = false
AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]) AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4])
else else
ATLASLOOT_FILTER_ENABLE = true ATLASLOOT_FILTER_ENABLE = true
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+92 -112
View File
@@ -36,38 +36,25 @@ tabletype - Whether the tablename indexes an actual table or needs to generate a
tabletype2 - Whether the tablename indexes an actual second submenu tabletype2 - Whether the tablename indexes an actual second submenu
Called when a button in AtlasLoot_Dewdrop is clicked Called when a button in AtlasLoot_Dewdrop is clicked
]] ]]
function AtlasLoot_DewDropClick(tablename, text, tabletype, tabletype2) function AtlasLoot_DewDropClick(tablename, text, tabletype)
--Definition of where I want the loot table to be shown --Definition of where I want the loot table to be shown
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" }; pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
--If the button clicked was linked to a loot table --If the button clicked was linked to a loot table
ItemindexID = ""
SelectedTable2TextSet = false
isTablereference = false
notPattern = false
isItemID = false
if tabletype == "Table" then if tabletype == "Table" then
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
--Show the loot table --Show the loot table
AtlasLoot_ShowItemsFrame(tablename, "", text, pFrame); AtlasLoot_ShowItemsFrame(tablename, "", text, pFrame);
AtlasLoot_RootBoss = tablename;
--Save needed info for fuure re-display of the table --Save needed info for fuure re-display of the table
AtlasLoot.db.profile.LastBoss = tablename; AtlasLoot.db.profile.LastBoss = tablename;
--Purge the text label for the submenu and disable the submenu --Purge the text label for the submenu and disable the submenu
AtlasLootDefaultFrame_SubMenu:Disable(); AtlasLootDefaultFrame_SubMenu:Disable();
AtlasLootDefaultFrame_SelectedTable:SetText(""); AtlasLootDefaultFrame_SelectedTable:SetText("");
AtlasLootDefaultFrame_SelectedTable:Show(); AtlasLootDefaultFrame_SelectedTable:Show();
--If the button links to a sub menu definition else
AtlasLootDefaultFrame_SubMenu2:Disable();
AtlasLootDefaultFrame_SelectedTable2:SetText("");
AtlasLootDefaultFrame_SelectedTable2:Hide();
else
--Enable the submenu button --Enable the submenu button
AtlasLootDefaultFrame_SubMenu:Enable(); AtlasLootDefaultFrame_SubMenu:Enable();
--Show the first loot table associated with the submenu --Show the first loot table associated with the submenu
AtlasLoot_ShowBossLoot(AtlasLoot_DewDropDown_SubTables[tablename][1][2], AtlasLoot_DewDropDown_SubTables[tablename][1][1], pFrame); AtlasLoot_ShowBossLoot(AtlasLoot_DewDropDown_SubTables[tablename][1][2], AtlasLoot_DewDropDown_SubTables[tablename][1][1], pFrame);
--Save needed info for fuure re-display of the table --Save needed info for fuure re-display of the table
AtlasLoot_RootBoss = AtlasLoot_DewDropDown_SubTables[tablename][1][2];
AtlasLoot.db.profile.LastBoss = AtlasLoot_DewDropDown_SubTables[tablename][1][2]; AtlasLoot.db.profile.LastBoss = AtlasLoot_DewDropDown_SubTables[tablename][1][2];
--Load the correct submenu and associated with the button --Load the correct submenu and associated with the button
AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu); AtlasLoot_DewdropSubMenu:Unregister(AtlasLootDefaultFrame_SubMenu);
@@ -80,18 +67,6 @@ function AtlasLoot_DewDropClick(tablename, text, tabletype, tabletype2)
end end
AtlasLootDefaultFrame_SelectedTable:Show(); AtlasLootDefaultFrame_SelectedTable:Show();
end end
--check to see if its a submenu thats need a difficulty list
if tabletype2 == "Submenu2" then
AtlasLootDefaultFrame_SubMenu2:Enable();
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLoot_DewdropSubMenu2Register(AtlasLoot_DewDropDown_SubTables2[tablename]);
AtlasLootDefaultFrame_SelectedTable2:SetText(AtlasLoot_TableNames[AtlasLoot_DewDropDown_SubTables2[tablename][1][3]][1]);
AtlasLootDefaultFrame_SelectedTable2:Show();
DropMenu2 = false
elseif tabletype2 == "Submenu2Table" then
DropMenu2 = true
end
--Show the category that has been selected --Show the category that has been selected
AtlasLootDefaultFrame_SelectedCategory:SetText(text); AtlasLootDefaultFrame_SelectedCategory:SetText(text);
AtlasLootDefaultFrame_SelectedCategory:Show(); AtlasLootDefaultFrame_SelectedCategory:Show();
@@ -121,22 +96,6 @@ function AtlasLoot_DewDropSubMenuClick(tablename, text)
AtlasLoot_DewdropSubMenu:Close(1); AtlasLoot_DewdropSubMenu:Close(1);
end end
function AtlasLoot_DewDropSubMenu2Click(raidtablename, itemID, indexID)
--Definition of where I want the loot table to be shown
pFrame = { "TOPLEFT", "AtlasLootDefaultFrame_LootBackground", "TOPLEFT", "2", "-2" };
AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID, indexID)
--Show the select loot table
AtlasLoot_ShowItemsFrame(AtlasLoot_CurrentBoss, "", text, pFrame);
--Save needed info for fuure re-display of the table
AtlasLoot.db.profile.LastBoss = AtlasLoot_CurrentBoss;
--Set text for difficulty
AtlasLootDefaultFrame_SelectedTable2:SetText(AtlasLoot_TableNames[DropTablename][1]);
AtlasLootDefaultFrame_SelectedTable2:Show();
AtlasLoot_DewdropSubMenu2:Close(1);
end
--[[ --[[
AtlasLootDefaultFrame_OnShow: AtlasLootDefaultFrame_OnShow:
Called whenever the loot browser is shown and sets up buttons and loot tables Called whenever the loot browser is shown and sets up buttons and loot tables
@@ -174,34 +133,97 @@ function AtlasLootDefaultFrame_OnHide()
AtlasLoot_DewdropSubMenu:Close(1); AtlasLoot_DewdropSubMenu:Close(1);
end end
function AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID, indexID) function AtlasLoot_DewDropSubMenu2Click(raidtablename, itemID)
for i = 1, 20, 1 do if ATLASLOOT_FILTER_ENABLE == true then
if indexID == i then AtlasLoot_FilterEnableButton()
if tonumber(itemID) then ReEnableFilter = true
ItemindexID = itemID end
isTablereference = false -- gets itemID reference
notPattern = false AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID)
isItemID = true --Show the select loot table
elseif itemID:match("=s=") then AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], AtlasLootItemsFrame.refreshOri[4]);
newID = gsub(itemID, "=s=","") --Set text for difficulty
newID = gsub(newID, "Normal","") AtlasLootDefaultFrame_SelectedTable2:SetText(DropTablename);
tableReference = newID AtlasLootDefaultFrame_SelectedTable2:Show();
isTablereference = true AtlasLoot_DewdropSubMenu2:Close(1);
notPattern = true if ReEnableFilter then
isItemID = false AtlasLoot_FilterEnableButton()
ItemindexID = "" end
else end
newID = gsub(itemID, "=s=","")
newID = gsub(newID, "Normal","") function AtlasLoot_DifficultyDisable()
tableReference = newID isTablereference = false
isTablereference = true notPattern = false
notPattern = false AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
isItemID = false AtlasLootDefaultFrame_SubMenu2:Disable();
ItemindexID = "" AtlasLootDefaultFrame_SelectedTable2:SetText("");
end AtlasLootDefaultFrame_SelectedTable2:Hide();
DropTablename = raidtablename DewDrop2Enable = false
SelectedTable2TextSet = false
end
function AtlasLoot_DifficultyEnable(dataID, dataSource)
AtlasLootDefaultFrame_SubMenu2:Enable();
AtlasLoot_DewdropSubMenu2:Unregister(AtlasLootDefaultFrame_SubMenu2);
AtlasLoot_DewdropSubMenu2Register(AtlasLoot_Difficulty[dataSource[dataID].Type]);
if SelectedTable2TextSet == false then
AtlasLootDefaultFrame_SelectedTable2:SetText(AtlasLoot_Difficulty[dataSource[dataID].Type][1][1])
end end
end AtlasLootDefaultFrame_SelectedTable2:Show();
SelectedTable2TextSet = true
end
function AtlasLootDefaultFrame_GetRaidDifficulty(raidtablename, itemID)
if tonumber(itemID) then --used in itemID search feature for itemID database
ItemindexID = itemID;
isTablereference = false;
notPattern = false;
elseif itemID:match("=s=") then -- =s= infront of a table reference will make it show a normal crafting item instead of a crafting pattern
newID = gsub(itemID, "=s=",""); -- removes =s= before passing the extra table addition
newID = gsub(newID, "Normal","");
tableReference = newID;
isTablereference = true;
notPattern = true;
ItemindexID = "";
else
newID = gsub(itemID, "=s=","");
newID = gsub(newID, "Normal","");
tableReference = newID;
isTablereference = true;
notPattern = false;
ItemindexID = "";
end
DropTablename = raidtablename;
end
function AtlasLoot_DewdropSubMenu2Register(loottable)
AtlasLoot_DewdropSubMenu2:Register(AtlasLootDefaultFrame_SubMenu2,
'point', function(parent)
return "TOP", "BOTTOM"
end,
'children', function(level, value)
if level == 1 then
for k,v in pairs(loottable) do
AtlasLoot_DewdropSubMenu2:AddLine(
'text', v[1],
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[1],
'arg2', v[2],
'notCheckable', true
)
end
AtlasLoot_DewdropSubMenu2:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_DewdropSubMenu2:Close() end,
'notCheckable', true
)
end
end,
'dontHook', true
)
end end
--[[ --[[
@@ -250,48 +272,6 @@ function AtlasLoot_DewdropSubMenuRegister(loottable)
) )
end end
function AtlasLoot_DewdropSubMenu2Register(loottable)
AtlasLoot_DewdropSubMenu2:Register(AtlasLootDefaultFrame_SubMenu2,
'point', function(parent)
return "TOP", "BOTTOM"
end,
'children', function(level, value)
if level == 1 then
for k,v in pairs(loottable) do
if v[1] == "" then
AtlasLoot_DewdropSubMenu2:AddLine(
'text', AtlasLoot_TableNames[v[3]][1],
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[3],
'arg2', v[4],
'arg3', v[2],
'notCheckable', true
)
else
AtlasLoot_DewdropSubMenu2:AddLine(
'text', v[1],
'func', AtlasLoot_DewDropSubMenu2Click,
'arg1', v[3],
'arg2', v[4],
'arg3', v[2],
'notCheckable', true
)
end
end
AtlasLoot_DewdropSubMenu2:AddLine(
'text', AL["Close Menu"],
'textR', 0,
'textG', 1,
'textB', 1,
'func', function() AtlasLoot_DewdropSubMenu2:Close() end,
'notCheckable', true
)
end
end,
'dontHook', true
)
end
--[[ --[[
AtlasLoot_DewdropRegister: AtlasLoot_DewdropRegister:
Constructs the main category menu from a tiered table Constructs the main category menu from a tiered table
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -2,7 +2,9 @@
-- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN. -- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN.
-- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $ -- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then AtlasLoot_Data[category][i][4] = data[i] end end data = nil end local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then
AL_ItemDBLocalize(string.sub(AtlasLoot_Data[category][i][4], 5), string.sub(data[i], 5));
AtlasLoot_Data[category][i][4] = data[i]; end end data = nil end
local locale = GetLocale() local locale = GetLocale()
if locale == "frFR" then if locale == "frFR" then
process("Aldor1",16,{"","=q2=Dessin : Draénite dorée resplendissante","=q1=Plans : Brassards plaie-des-flammes","=q1=Patron : Brassards coeur-de-flammes","","=q3=Robe d'anachorète","=q2=Calligraphie de discipline","=q2=Calligraphie de foi","=q2=Calligraphie de vengeance","=q2=Calligraphie de sauvegarde","=q2=Dessin : Draénite ombreuse royale","=q1=Plans : Gants plaie-des-flammes","=q1=Patron : Ceinture de déminage","=q1=Patron : Ceinture en flamécaille","=q1=Patron : Gants coeur-de-flammes","=q1=Patron : Fil ensorcelé argenté"}) process("Aldor1",16,{"","=q2=Dessin : Draénite dorée resplendissante","=q1=Plans : Brassards plaie-des-flammes","=q1=Patron : Brassards coeur-de-flammes","","=q3=Robe d'anachorète","=q2=Calligraphie de discipline","=q2=Calligraphie de foi","=q2=Calligraphie de vengeance","=q2=Calligraphie de sauvegarde","=q2=Dessin : Draénite ombreuse royale","=q1=Plans : Gants plaie-des-flammes","=q1=Patron : Ceinture de déminage","=q1=Patron : Ceinture en flamécaille","=q1=Patron : Gants coeur-de-flammes","=q1=Patron : Fil ensorcelé argenté"})
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -2,7 +2,9 @@
-- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN. -- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN.
-- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $ -- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then AtlasLoot_Data[category][i][4] = data[i] end end data = nil end local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then
AL_ItemDBLocalize(string.sub(AtlasLoot_Data[category][i][4], 5), string.sub(data[i], 5));
AtlasLoot_Data[category][i][4] = data[i]; end end data = nil end
local locale = GetLocale() local locale = GetLocale()
if locale == "frFR" then if locale == "frFR" then
process("AB2039_A",22,{"","=q3=Ceinturon des Hautes-terres en tissu","=q3=Bottes des Hautes-terres en tissu","=q3=Ceinturon des Hautes-terres en cuir","=q3=Ceinturon des Hautes-terres en cuir de lézard","=q3=Bottes des Hautes-terres en cuir","=q3=Bottes des Hautes-terres en cuir de lézard","","=q3=Ceinturon des Hautes-terres en tissu","=q3=Bottes des Hautes-terres en tissu","=q3=Ceinturon des Hautes-terres en cuir","=q3=Ceinturon des Hautes-terres en cuir de lézard","=q3=Ceinturon des Hautes-terres en mailles","=q3=Ceinturon matelassé des Hautes-terres","=q3=Bottes des Hautes-terres en cuir","=q3=Bottes des Hautes-terres en cuir de lézard","=q3=Grèves des Hautes-terres en mailles","=q3=Grèves matelassées des Hautes-terres","=q3=Ceinturon des Hautes-terres lamellaire","=q3=Ceinturon des Hautes-terres en mailles","=q3=Grèves des Hautes-terres lamellaires","=q3=Grèves des Hautes-terres en mailles"}) process("AB2039_A",22,{"","=q3=Ceinturon des Hautes-terres en tissu","=q3=Bottes des Hautes-terres en tissu","=q3=Ceinturon des Hautes-terres en cuir","=q3=Ceinturon des Hautes-terres en cuir de lézard","=q3=Bottes des Hautes-terres en cuir","=q3=Bottes des Hautes-terres en cuir de lézard","","=q3=Ceinturon des Hautes-terres en tissu","=q3=Bottes des Hautes-terres en tissu","=q3=Ceinturon des Hautes-terres en cuir","=q3=Ceinturon des Hautes-terres en cuir de lézard","=q3=Ceinturon des Hautes-terres en mailles","=q3=Ceinturon matelassé des Hautes-terres","=q3=Bottes des Hautes-terres en cuir","=q3=Bottes des Hautes-terres en cuir de lézard","=q3=Grèves des Hautes-terres en mailles","=q3=Grèves matelassées des Hautes-terres","=q3=Ceinturon des Hautes-terres lamellaire","=q3=Ceinturon des Hautes-terres en mailles","=q3=Grèves des Hautes-terres lamellaires","=q3=Grèves des Hautes-terres en mailles"})
File diff suppressed because it is too large Load Diff
+21 -16
View File
@@ -542,22 +542,27 @@ local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
}; };
AtlasLoot_Data["HeadlessHorseman"] = { AtlasLoot_Data["HeadlessHorseman"] = {
{ 2, 49126, "", "=q4=The Horseman's Horrific Helm", "=ds=#s1#, #a4#"}; {2, 2033808, "", "=q4=The Horseman's Helm", "=ds=#s1#, #a4#", "" };
{ 3, 49121, "", "=q4=Ring of Ghoulish Glee", "=ds=#s13#"}; {3, 2034075, "", "=q4=Ring of Ghoulish Delight", "=ds=#s13#", "" };
{ 4, 49123, "", "=q4=The Horseman's Seal", "=ds=#s13#"}; {4, 2034073, "", "=q4=The Horseman's Signet Ring", "=ds=#s13#", "" };
{ 5, 49124, "", "=q4=Wicked Witch's Band", "=ds=#s13#"}; {5, 2034074, "", "=q4=Witching Band", "=ds=#s13#", "" };
{ 6, 49128, "", "=q4=The Horseman's Baleful Blade", "=ds=#h3#, #w10#"}; {6, 2038175, "", "=q4=The Horseman's Blade", "=ds=#h3#, #w10#" };
{ 8, 34068, "", "=q1=Weighted Jack-o'-Lantern", "=ds=#m20#", "", "100%"}; {8, 33808, "", "=q4=The Horseman's Helm", "=ds=#s1#, #a4#", "" };
{ 9, 33226, "", "=q1=Tricky Treat", "=ds=#m20#"}; {9, 34075, "", "=q4=Ring of Ghoulish Delight", "=ds=#s13#", "" };
{ 10, 37012, "", "=q4=The Horseman's Reins", "=ds=#e12#"}; {10, 34073, "", "=q4=The Horseman's Signet Ring", "=ds=#s13#", "" };
{ 11, 37011, "", "=q3=Magic Broom", "=ds=#e12#"}; {11, 34074, "", "=q4=Witching Band", "=ds=#s13#", "" };
{ 12, 33292, "", "=q3=Hallowed Helm", "=ds=#s1#, #a1#"}; {12, 38175, "", "=q4=The Horseman's Blade", "=ds=#h3#, #w10#" };
{ 13, 33154, "", "=q3=Sinister Squashling", "=ds=#e13#"}; { 17, 49126, "", "=q4=The Horseman's Horrific Helm", "=ds=#s1#, #a4#"};
{17, 33808, "", "=q4=The Horseman's Helm", "=ds=#s1#, #a4#", "" }; { 18, 49121, "", "=q4=Ring of Ghoulish Glee", "=ds=#s13#"};
{18, 34075, "", "=q4=Ring of Ghoulish Delight", "=ds=#s13#", "" }; { 19, 49123, "", "=q4=The Horseman's Seal", "=ds=#s13#"};
{19, 34073, "", "=q4=The Horseman's Signet Ring", "=ds=#s13#", "" }; { 20, 49124, "", "=q4=Wicked Witch's Band", "=ds=#s13#"};
{20, 34074, "", "=q4=Witching Band", "=ds=#s13#", "" }; { 21, 49128, "", "=q4=The Horseman's Baleful Blade", "=ds=#h3#, #w10#"};
{21, 38175, "", "=q4=The Horseman's Blade", "=ds=#h3#, #w10#" }; { 23, 34068, "", "=q1=Weighted Jack-o'-Lantern", "=ds=#m20#", "", "100%"};
{ 24, 33226, "", "=q1=Tricky Treat", "=ds=#m20#"};
{ 25, 37012, "", "=q4=The Horseman's Reins", "=ds=#e12#"};
{ 26, 37011, "", "=q3=Magic Broom", "=ds=#e12#"};
{ 27, 33292, "", "=q3=Hallowed Helm", "=ds=#s1#, #a1#"};
{ 28, 33154, "", "=q3=Sinister Squashling", "=ds=#e13#"};
Prev = "Halloween2"; Prev = "Halloween2";
Back = "WORLDEVENTMENU"; Back = "WORLDEVENTMENU";
}; };
@@ -2,7 +2,9 @@
-- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN. -- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN.
-- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $ -- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then AtlasLoot_Data[category][i][4] = data[i] end end data = nil end local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then
AL_ItemDBLocalize(string.sub(AtlasLoot_Data[category][i][4], 5), string.sub(data[i], 5));
AtlasLoot_Data[category][i][4] = data[i]; end end data = nil end
local locale = GetLocale() local locale = GetLocale()
if locale == "frFR" then if locale == "frFR" then
process("AhnkahetAmanitarHEROIC",5,{"=q4=Emblème de triomphe","=q3=Protège-mains du pont en soie","=q3=Garde-jambes des attaques incessantes","=q3=Amulette du lanceur de sort","=q3=Arc-crâne d'Amanitar"}) process("AhnkahetAmanitarHEROIC",5,{"=q4=Emblème de triomphe","=q3=Protège-mains du pont en soie","=q3=Garde-jambes des attaques incessantes","=q3=Amulette du lanceur de sort","=q3=Arc-crâne d'Amanitar"})
@@ -10504,8 +10504,8 @@ local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
AtlasLoot_Data["Legendaries"] = { AtlasLoot_Data["Legendaries"] = {
{ 1, 34334, "", "=q5=Thori'dal, the Stars' Fury", "=ds=#w2#"}; { 1, 34334, "", "=q5=Thori'dal, the Stars' Fury", "=ds=#w2#"};
{ 3, 32837, "", "=q5=Warglaive of Azzinoth", "=ds=#h3#, #w10#, =q1=#m1# =ds=#c9#, #c6#"}; { 3, 32837, "", "=q5=Warglaive of Azzinoth", "=ds=#h3#, #w10#, =q1=#m1# =ds=#c9#, #c6#", "", "4%", "(MainHand)"};
{ 4, 32838, "", "=q5=Warglaive of Azzinoth", "=ds=#h4#, #w10#, =q1=#m1# =ds=#c9#, #c6#"}; { 4, 32838, "", "=q5=Warglaive of Azzinoth", "=ds=#h4#, #w10#, =q1=#m1# =ds=#c9#, #c6#", "", "4%", "(OffHand)"};
{ 6, 30312, "", "=q5=Infinity Blade", "=q1=#m26#: =ds=#h1#, #w4#"}; { 6, 30312, "", "=q5=Infinity Blade", "=q1=#m26#: =ds=#h1#, #w4#"};
{ 7, 30311, "", "=q5=Warp Slicer", "=q1=#m26#: =ds=#h1#, #w10#"}; { 7, 30311, "", "=q5=Warp Slicer", "=q1=#m26#: =ds=#h1#, #w10#"};
{ 8, 30317, "", "=q5=Cosmic Infuser", "=q1=#m26#: =ds=#h3#, #w6#"}; { 8, 30317, "", "=q5=Cosmic Infuser", "=q1=#m26#: =ds=#h3#, #w6#"};
@@ -10518,13 +10518,14 @@ local BabbleZone = AtlasLoot_GetLocaleLibBabble("LibBabble-Zone-3.0")
{ 17, 19019, "", "=q5=Thunderfury, Blessed Blade of the Windseeker", "=ds=#h1#, #w10#"}; { 17, 19019, "", "=q5=Thunderfury, Blessed Blade of the Windseeker", "=ds=#h1#, #w10#"};
{ 18, 17182, "", "=q5=Sulfuras, Hand of Ragnaros", "=ds=#h2#, #w6#"}; { 18, 17182, "", "=q5=Sulfuras, Hand of Ragnaros", "=ds=#h2#, #w6#"};
{ 19, 21176, "", "=q5=Black Qiraji Resonating Crystal", "=ds=#e12#"}; { 19, 21176, "", "=q5=Black Qiraji Resonating Crystal", "=ds=#e12#"};
{ 21, 22632, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c1#"}; { 21, 22632, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c1#", "", "", "(Druid)"};
{ 22, 22589, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c3#"}; { 22, 22589, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c3#", "", "", "(Mage)" };
{ 23, 22631, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c5#"}; { 23, 22631, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c5#", "", "", "(Priest)"};
{ 24, 22630, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c8#"}; { 24, 22630, "", "=q5=Atiesh, Greatstaff of the Guardian", "=ds=#w9#, =q1=#m1# =ds=#c8#", "", "", "(Warlock)"};
{ 26, 49623, "", "=q5=Shadowmourne", "=ds=#h2# #w1#", "" }; { 26, 49623, "", "=q5=Shadowmourne", "=ds=#h2# #w1#", "" };
{ 27, 46017, "", "=q5=Val'anyr, Hammer of Ancient Kings", "=ds=#h3# #w6#", "" }; { 27, 46017, "", "=q5=Val'anyr, Hammer of Ancient Kings", "=ds=#h3# #w6#", "" };
Back = "SETMENU"; Back = "SETMENU";
Type = "BCRaid";
}; };
--------------- ---------------