Initial commit

This commit is contained in:
Cosmin POP
2020-07-16 15:44:27 +03:00
commit 19cf0ca8b1
58 changed files with 58716 additions and 0 deletions
+3533
View File
File diff suppressed because it is too large Load Diff
+2301
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+630
View File
@@ -0,0 +1,630 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
local RED = "|cffff0000";
local ORANGE = "|cffFF8400";
local WHITE = "|cffFFFFFF";
function AtlasLoot_CraftingMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Alchemy
AtlasLootMenuItem_2_Name:SetText(AL["Alchemy"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_Alchemy");
AtlasLootMenuItem_2.lootpage="ALCHEMYMENU";
AtlasLootMenuItem_2:Show();
--Blacksmithing
AtlasLootMenuItem_3_Name:SetText(AL["Blacksmithing"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Trade_BlackSmithing");
AtlasLootMenuItem_3.lootpage="SMITHINGMENU";
AtlasLootMenuItem_3:Show();
--Enchanting
AtlasLootMenuItem_4_Name:SetText(AL["Enchanting"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Trade_Engraving");
AtlasLootMenuItem_4.lootpage="ENCHANTINGMENU";
AtlasLootMenuItem_4:Show();
--Engineering
AtlasLootMenuItem_5_Name:SetText(AL["Engineering"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_5.lootpage="ENGINEERINGMENU";
AtlasLootMenuItem_5:Show();
--Herbalism
AtlasLootMenuItem_6_Name:SetText(AL["Herbalism"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Trade_Herbalism");
AtlasLootMenuItem_6.lootpage="Herbalism1";
AtlasLootMenuItem_6:Show();
--Leatherworking
AtlasLootMenuItem_7_Name:SetText(AL["Leatherworking"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Misc_ArmorKit_17");
AtlasLootMenuItem_7.lootpage="LEATHERWORKINGMENU";
AtlasLootMenuItem_7:Show();
--Mining
AtlasLootMenuItem_8_Name:SetText(AL["Mining"]);
AtlasLootMenuItem_8_Extra:SetText("");
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\Trade_Mining");
AtlasLootMenuItem_8.lootpage="MININGMENU";
AtlasLootMenuItem_8:Show();
--Tailoring
AtlasLootMenuItem_9_Name:SetText(AL["Tailoring"]);
AtlasLootMenuItem_9_Extra:SetText("");
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\Trade_Tailoring");
AtlasLootMenuItem_9.lootpage="TAILORINGMENU";
AtlasLootMenuItem_9:Show();
--Cooking
AtlasLootMenuItem_11_Name:SetText(AL["Cooking"]);
AtlasLootMenuItem_11_Extra:SetText("");
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_15");
AtlasLootMenuItem_11.lootpage="COOKINGMENU";
AtlasLootMenuItem_11:Show();
--First Aid
AtlasLootMenuItem_12_Name:SetText(AL["First Aid"]);
AtlasLootMenuItem_12_Extra:SetText("");
AtlasLootMenuItem_12_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfSacrifice");
AtlasLootMenuItem_12.lootpage="FirstAid1";
AtlasLootMenuItem_12:Show();
--Poisons
AtlasLootMenuItem_14_Name:SetText(AL["Poisons"]);
AtlasLootMenuItem_14_Extra:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_14_Icon:SetTexture("Interface\\Icons\\Trade_BrewPoison");
AtlasLootMenuItem_14.lootpage="Poisons1";
AtlasLootMenuItem_14:Show();
--Crafted Armor Sets
AtlasLootMenuItem_17_Name:SetText(AL["Crafted Sets"]);
AtlasLootMenuItem_17_Extra:SetText("");
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\INV_Box_01");
AtlasLootMenuItem_17.lootpage="CRAFTSET";
AtlasLootMenuItem_17:Show();
--Crafted Epic Weapons
AtlasLootMenuItem_18_Name:SetText(AL["Crafted Epic Weapons"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\INV_Hammer_Unique_Sulfuras");
AtlasLootMenuItem_18.lootpage="CraftedWeapons1";
AtlasLootMenuItem_18:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Crafting"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootCraftedSetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Tailoring Header
AtlasLootMenuItem_2_Name:SetText(RED..AL["Tailoring"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Chest_Cloth_21");
AtlasLootMenuItem_2.isheader = true;
AtlasLootMenuItem_2:Show();
--Bloodvine Garb
AtlasLootMenuItem_3_Name:SetText(AL["Bloodvine Garb"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Pants_Cloth_14");
AtlasLootMenuItem_3.lootpage="BloodvineG";
AtlasLootMenuItem_3:Show();
--Leatherworking Leather Header
AtlasLootMenuItem_5_Name:SetText(RED..AL["Leatherworking"]);
AtlasLootMenuItem_5_Extra:SetText(WHITE..AL["Leather"]);
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Chest_Leather_04");
AtlasLootMenuItem_5.isheader = true;
AtlasLootMenuItem_5:Show();
--Volcanic Armor
AtlasLootMenuItem_6_Name:SetText(AL["Volcanic Armor"]);
AtlasLootMenuItem_6_Extra:SetText(ORANGE..AL["Fire Resistance Gear"]);
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\INV_Pants_06");
AtlasLootMenuItem_6.lootpage="VolcanicArmor";
AtlasLootMenuItem_6:Show();
--Ironfeather Armor
AtlasLootMenuItem_7_Name:SetText(AL["Ironfeather Armor"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Chest_Leather_06");
AtlasLootMenuItem_7.lootpage="IronfeatherArmor";
AtlasLootMenuItem_7:Show();
--Stormshroud Armor
AtlasLootMenuItem_8_Name:SetText(AL["Stormshroud Armor"]);
AtlasLootMenuItem_8_Extra:SetText("");
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\INV_Chest_Leather_08");
AtlasLootMenuItem_8.lootpage="StormshroudArmor";
AtlasLootMenuItem_8:Show();
--Devilsaur Armor
AtlasLootMenuItem_9_Name:SetText(AL["Devilsaur Armor"]);
AtlasLootMenuItem_9_Extra:SetText("");
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\INV_Pants_Wolf");
AtlasLootMenuItem_9.lootpage="DevilsaurArmor";
AtlasLootMenuItem_9:Show();
--Blood Tiger Harness
AtlasLootMenuItem_10_Name:SetText(AL["Blood Tiger Harness"]);
AtlasLootMenuItem_10_Extra:SetText("");
AtlasLootMenuItem_10_Icon:SetTexture("Interface\\Icons\\INV_Shoulder_23");
AtlasLootMenuItem_10.lootpage="BloodTigerH";
AtlasLootMenuItem_10:Show();
--Primal Batskin
AtlasLootMenuItem_11_Name:SetText(AL["Primal Batskin"]);
AtlasLootMenuItem_11_Extra:SetText("");
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\INV_Chest_Leather_03");
AtlasLootMenuItem_11.lootpage="PrimalBatskin";
AtlasLootMenuItem_11:Show();
--Mail Blacksmithing Header
AtlasLootMenuItem_13_Name:SetText(RED..AL["Blacksmithing"]);
AtlasLootMenuItem_13_Extra:SetText(WHITE..AL["Mail"]);
AtlasLootMenuItem_13_Icon:SetTexture("Interface\\Icons\\INV_Chest_Chain_04");
AtlasLootMenuItem_13.isheader = true;
AtlasLootMenuItem_13:Show();
--Bloodsoul Embrace
AtlasLootMenuItem_14_Name:SetText(AL["Bloodsoul Embrace"]);
AtlasLootMenuItem_14_Extra:SetText("");
AtlasLootMenuItem_14_Icon:SetTexture("Interface\\Icons\\INV_Shoulder_15");
AtlasLootMenuItem_14.lootpage="BloodsoulEmbrace";
AtlasLootMenuItem_14:Show();
--Leatherworking Mail Header
AtlasLootMenuItem_20_Name:SetText(RED..AL["Leatherworking"]);
AtlasLootMenuItem_20_Extra:SetText(WHITE..AL["Mail"]);
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\INV_Chest_Chain_12");
AtlasLootMenuItem_20.isheader = true;
AtlasLootMenuItem_20:Show();
--Green Dragon Mail
AtlasLootMenuItem_21_Name:SetText(AL["Green Dragon Mail"]);
AtlasLootMenuItem_21_Extra:SetText(ORANGE..AL["Nature Resistance Gear"]);
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Pants_05");
AtlasLootMenuItem_21.lootpage="GreenDragonM";
AtlasLootMenuItem_21:Show();
--Blue Dragon Mail
AtlasLootMenuItem_22_Name:SetText(AL["Blue Dragon Mail"]);
AtlasLootMenuItem_22_Extra:SetText(ORANGE..AL["Arcane Resistance Gear"]);
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\INV_Chest_Chain_04");
AtlasLootMenuItem_22.lootpage="BlueDragonM";
AtlasLootMenuItem_22:Show();
--Black Dragon Mail
AtlasLootMenuItem_23_Name:SetText(AL["Black Dragon Mail"]);
AtlasLootMenuItem_23_Extra:SetText(ORANGE..AL["Fire Resistance Gear"]);
AtlasLootMenuItem_23_Icon:SetTexture("Interface\\Icons\\INV_Pants_03");
AtlasLootMenuItem_23.lootpage="BlackDragonM";
AtlasLootMenuItem_23:Show();
--Plate Blacksmithing header
AtlasLootMenuItem_28_Name:SetText(RED..AL["Blacksmithing"]);
AtlasLootMenuItem_28_Extra:SetText(WHITE..AL["Plate"]);
AtlasLootMenuItem_28_Icon:SetTexture("Interface\\Icons\\INV_Chest_Plate10");
AtlasLootMenuItem_28.isheader = true;
AtlasLootMenuItem_28:Show();
--Imperial Plate
AtlasLootMenuItem_29_Name:SetText(AL["Imperial Plate"]);
AtlasLootMenuItem_29_Extra:SetText("");
AtlasLootMenuItem_29_Icon:SetTexture("Interface\\Icons\\INV_Belt_01");
AtlasLootMenuItem_29.lootpage="ImperialPlate";
AtlasLootMenuItem_29:Show();
--The Darksoul
AtlasLootMenuItem_30_Name:SetText(AL["The Darksoul"]);
AtlasLootMenuItem_30_Extra:SetText("");
AtlasLootMenuItem_30_Icon:SetTexture("Interface\\Icons\\INV_Shoulder_01");
AtlasLootMenuItem_30.lootpage="TheDarksoul";
AtlasLootMenuItem_30:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Crafted Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_AlchemyMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Alchemy"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_Alchemy");
AtlasLootMenuItem_2.lootpage = "AlchemyApprentice1";
AtlasLootMenuItem_2:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Alchemy"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Trade_Alchemy");
AtlasLootMenuItem_3.lootpage = "AlchemyJourneyman1";
AtlasLootMenuItem_3:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Alchemy"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Trade_Alchemy");
AtlasLootMenuItem_4.lootpage="AlchemyExpert1";
AtlasLootMenuItem_4:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Alchemy"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Trade_Alchemy");
AtlasLootMenuItem_5.lootpage="AlchemyArtisan1";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Alchemy"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_SmithingMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Blacksmithing"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_BlackSmithing");
AtlasLootMenuItem_2.lootpage = "SmithingApprentice1";
AtlasLootMenuItem_2:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Blacksmithing"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Trade_BlackSmithing");
AtlasLootMenuItem_3.lootpage = "SmithingJourneyman1";
AtlasLootMenuItem_3:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Blacksmithing"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Trade_BlackSmithing");
AtlasLootMenuItem_4.lootpage="SmithingExpert1";
AtlasLootMenuItem_4:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Blacksmithing"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Trade_BlackSmithing");
AtlasLootMenuItem_5.lootpage="SmithingArtisan1";
AtlasLootMenuItem_5:Show();
--Armorsmith
AtlasLootMenuItem_7_Name:SetText(AL["Blacksmithing"]..": "..AL["Armorsmith"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Chest_Plate04");
AtlasLootMenuItem_7.lootpage="Armorsmith1";
AtlasLootMenuItem_7:Show();
--Weaponsmith
AtlasLootMenuItem_22_Name:SetText(AL["Blacksmithing"]..": "..AL["Weaponsmith"]);
AtlasLootMenuItem_22_Extra:SetText("");
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\INV_Sword_25");
AtlasLootMenuItem_22.lootpage="Weaponsmith1";
AtlasLootMenuItem_22:Show();
--Master Axesmith
AtlasLootMenuItem_23_Name:SetText(AL["Blacksmithing"]..": "..AL["Master Axesmith"]);
AtlasLootMenuItem_23_Extra:SetText("");
AtlasLootMenuItem_23_Icon:SetTexture("Interface\\Icons\\INV_Axe_05");
AtlasLootMenuItem_23.lootpage="Axesmith1";
AtlasLootMenuItem_23:Show();
--Master Hammersmith
AtlasLootMenuItem_24_Name:SetText(AL["Blacksmithing"]..": "..AL["Master Hammersmith"]);
AtlasLootMenuItem_24_Extra:SetText("");
AtlasLootMenuItem_24_Icon:SetTexture("Interface\\Icons\\INV_Hammer_23");
AtlasLootMenuItem_24.lootpage="Hammersmith1";
AtlasLootMenuItem_24:Show();
--Master Swordsmith
AtlasLootMenuItem_25_Name:SetText(AL["Blacksmithing"]..": "..AL["Master Swordsmith"]);
AtlasLootMenuItem_25_Extra:SetText("");
AtlasLootMenuItem_25_Icon:SetTexture("Interface\\Icons\\INV_Sword_41");
AtlasLootMenuItem_25.lootpage="Swordsmith1";
AtlasLootMenuItem_25:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Blacksmithing"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_EnchantingMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Enchanting"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_Engraving");
AtlasLootMenuItem_2.lootpage = "EnchantingApprentice1";
AtlasLootMenuItem_2:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Enchanting"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Trade_Engraving");
AtlasLootMenuItem_4.lootpage="EnchantingExpert1";
AtlasLootMenuItem_4:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Enchanting"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Trade_Engraving");
AtlasLootMenuItem_3.lootpage = "EnchantingJourneyman1";
AtlasLootMenuItem_3:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Enchanting"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Trade_Engraving");
AtlasLootMenuItem_5.lootpage="EnchantingArtisan1";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Enchanting"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_EngineeringMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Engineering"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_2.lootpage = "EngineeringApprentice1";
AtlasLootMenuItem_2:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Engineering"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_3.lootpage = "EngineeringJourneyman1";
AtlasLootMenuItem_3:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Engineering"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_4.lootpage="EngineeringExpert1";
AtlasLootMenuItem_4:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Engineering"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_5.lootpage="EngineeringArtisan1";
AtlasLootMenuItem_5:Show();
--Gnomish Engineering
AtlasLootMenuItem_7_Name:SetText(AL["Engineering"]..": "..AL["Gnomish Engineering"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_7.lootpage="Gnomish1";
AtlasLootMenuItem_7:Show();
--Goblin Engineering
AtlasLootMenuItem_22_Name:SetText(AL["Engineering"]..": "..AL["Goblin Engineering"]);
AtlasLootMenuItem_22_Extra:SetText("");
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\Trade_Engineering");
AtlasLootMenuItem_22.lootpage="Goblin1";
AtlasLootMenuItem_22:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Engineering"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_LeatherworkingMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Leatherworking"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Misc_ArmorKit_17");
AtlasLootMenuItem_2.lootpage = "LeatherApprentice1";
AtlasLootMenuItem_2:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Leatherworking"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Misc_ArmorKit_17");
AtlasLootMenuItem_3.lootpage = "LeatherJourneyman1";
AtlasLootMenuItem_3:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Leatherworking"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Misc_ArmorKit_17");
AtlasLootMenuItem_4.lootpage="LeatherExpert1";
AtlasLootMenuItem_4:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Leatherworking"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Misc_ArmorKit_17");
AtlasLootMenuItem_5.lootpage="LeatherArtisan1";
AtlasLootMenuItem_5:Show();
--Dragonscale Leatherworking
AtlasLootMenuItem_7_Name:SetText(AL["Leatherworking"]..": "..AL["Dragonscale Leatherworking"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Misc_MonsterScales_03");
AtlasLootMenuItem_7.lootpage="Dragonscale1";
AtlasLootMenuItem_7:Show();
--Tribal Leatherworking
AtlasLootMenuItem_8_Name:SetText(AL["Leatherworking"]..": "..AL["Tribal Leatherworking"]);
AtlasLootMenuItem_8_Extra:SetText("");
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\Spell_Nature_NullWard");
AtlasLootMenuItem_8.lootpage="Tribal1";
AtlasLootMenuItem_8:Show();
--Elemental Leatherworking
AtlasLootMenuItem_22_Name:SetText(AL["Leatherworking"]..": "..AL["Elemental Leatherworking"]);
AtlasLootMenuItem_22_Extra:SetText("");
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\Spell_Fire_Volcano");
AtlasLootMenuItem_22.lootpage="Elemental1";
AtlasLootMenuItem_22:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Leatherworking"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_TailoringMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Tailoring"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_Tailoring");
AtlasLootMenuItem_2.lootpage = "TailoringApprentice1";
AtlasLootMenuItem_2:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Tailoring"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Trade_Tailoring");
AtlasLootMenuItem_3.lootpage = "TailoringJourneyman1";
AtlasLootMenuItem_3:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Tailoring"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Trade_Tailoring");
AtlasLootMenuItem_4.lootpage="TailoringExpert1";
AtlasLootMenuItem_4:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Tailoring"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Trade_Tailoring");
AtlasLootMenuItem_5.lootpage="TailoringArtisan1";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Tailoring"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_CookingMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Apprentice
AtlasLootMenuItem_2_Name:SetText(AL["Cooking"]..": "..AL["Apprentice"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_15");
AtlasLootMenuItem_2.lootpage = "CookingApprentice1";
AtlasLootMenuItem_2:Show();
--Journeyman
AtlasLootMenuItem_3_Name:SetText(AL["Cooking"]..": "..AL["Journeyman"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_15");
AtlasLootMenuItem_3.lootpage = "CookingJourneyman1";
AtlasLootMenuItem_3:Show();
--Expert
AtlasLootMenuItem_4_Name:SetText(AL["Cooking"]..": "..AL["Expert"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_15");
AtlasLootMenuItem_4.lootpage="CookingExpert1";
AtlasLootMenuItem_4:Show();
--Artisan
AtlasLootMenuItem_5_Name:SetText(AL["Cooking"]..": "..AL["Artisan"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_15");
AtlasLootMenuItem_5.lootpage="CookingArtisan1";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Cooking"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLoot_MiningMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "CRAFTINGMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Mining
AtlasLootMenuItem_2_Name:SetText(AL["Mining"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Trade_Mining");
AtlasLootMenuItem_2.lootpage = "Mining1";
AtlasLootMenuItem_2:Show();
--Smelting
AtlasLootMenuItem_17_Name:SetText(AL["Smelting"]);
AtlasLootMenuItem_17_Extra:SetText("");
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\Spell_Fire_FlameBlades");
AtlasLootMenuItem_17.lootpage = "Smelting1";
AtlasLootMenuItem_17:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Mining"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
+118
View File
@@ -0,0 +1,118 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
local ORANGE = "|cffFF8400";
function AtlasLootRepMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Argent Dawn
AtlasLootMenuItem_2_Name:SetText(AL["Argent Dawn"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Talisman_08");
AtlasLootMenuItem_2.lootpage="Argent1";
AtlasLootMenuItem_2:Show();
--Bloodsail Pirates
AtlasLootMenuItem_17_Name:SetText(AL["Bloodsail Buccaneers"]);
AtlasLootMenuItem_17_Extra:SetText("");
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\INV_Helmet_66");
AtlasLootMenuItem_17.lootpage="Bloodsail1";
AtlasLootMenuItem_17:Show();
--Brood of Nozdormu
AtlasLootMenuItem_3_Name:SetText(AL["Brood of Nozdormu"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Ring_40");
AtlasLootMenuItem_3.lootpage="AQBroodRings";
AtlasLootMenuItem_3:Show();
--Cenarion Hold
AtlasLootMenuItem_18_Name:SetText(AL["Cenarion Circle"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\INV_Chest_Plate07");
AtlasLootMenuItem_18.lootpage="Cenarion1";
AtlasLootMenuItem_18:Show();
--Darkmoon Faire
AtlasLootMenuItem_4_Name:SetText(AL["Darkmoon Faire"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Misc_Ticket_Tarot_Maelstrom_01");
AtlasLootMenuItem_4.lootpage="Darkmoon";
AtlasLootMenuItem_4:Show();
--The Defilers
AtlasLootMenuItem_25_Name:SetText(AL["The Defilers"]);
AtlasLootMenuItem_25_Extra:SetText("|cffFF0000"..AL["Horde"]);
AtlasLootMenuItem_25_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_25.lootpage="Defilers";
AtlasLootMenuItem_25:Show();
--Frostwolf Clan
AtlasLootMenuItem_26_Name:SetText(AL["Frostwolf Clan"]);
AtlasLootMenuItem_26_Extra:SetText("|cffFF0000"..AL["Horde"]);
AtlasLootMenuItem_26_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_FrostwolfTrinket_01");
AtlasLootMenuItem_26.lootpage="Frostwolf1";
AtlasLootMenuItem_26:Show();
--Gelkis Clan Centaur
AtlasLootMenuItem_19_Name:SetText(AL["Gelkis Clan Centaur"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\INV_Misc_Head_Centaur_01");
AtlasLootMenuItem_19.lootpage="GelkisClan1";
AtlasLootMenuItem_19:Show();
--Hydraxian Waterlords
AtlasLootMenuItem_5_Name:SetText(AL["Hydraxian Waterlords"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Frost_FrostArmor");
AtlasLootMenuItem_5.lootpage="WaterLords1";
AtlasLootMenuItem_5:Show();
--The League of Arathor
AtlasLootMenuItem_10_Name:SetText(AL["The League of Arathor"]);
AtlasLootMenuItem_10_Extra:SetText("|cff2773ff"..AL["Alliance"]);
AtlasLootMenuItem_10_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_10.lootpage="LeagueofArathor";
AtlasLootMenuItem_10:Show();
--Magram Clan Centaur
AtlasLootMenuItem_20_Name:SetText(AL["Magram Clan Centaur"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\INV_Misc_Head_Centaur_01");
AtlasLootMenuItem_20.lootpage="MagramClan1";
AtlasLootMenuItem_20:Show();
--Stormpike Guard
AtlasLootMenuItem_11_Name:SetText(AL["Stormpike Guard"]);
AtlasLootMenuItem_11_Extra:SetText("|cff2773ff"..AL["Alliance"]);
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_StormPikeTrinket_01");
AtlasLootMenuItem_11.lootpage="Stormpike1";
AtlasLootMenuItem_11:Show();
--Thorium Brotherhood
AtlasLootMenuItem_6_Name:SetText(AL["Thorium Brotherhood"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\INV_Ingot_Mithril");
AtlasLootMenuItem_6.lootpage="Thorium1";
AtlasLootMenuItem_6:Show();
--Timbermaw Hold
AtlasLootMenuItem_21_Name:SetText(AL["Timbermaw Hold"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Misc_Horn_01");
AtlasLootMenuItem_21.lootpage="Timbermaw";
AtlasLootMenuItem_21:Show();
--The Wintersaber Trainers
AtlasLootMenuItem_7_Name:SetText(AL["Wintersaber Trainers"]);
AtlasLootMenuItem_7_Extra:SetText("|cff2773ff"..AL["Alliance"]);
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Ability_Mount_PinkTiger");
AtlasLootMenuItem_7.lootpage="Wintersaber1";
AtlasLootMenuItem_7:Show();
--Zandalar Tribe
AtlasLootMenuItem_22_Name:SetText(AL["Zandalar Tribe"]);
AtlasLootMenuItem_22_Extra:SetText("");
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\INV_Misc_Coin_08");
AtlasLootMenuItem_22.lootpage="Zandalar1";
AtlasLootMenuItem_22:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Factions"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
+270
View File
@@ -0,0 +1,270 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
local ORANGE = "|cffFF8400";
function AtlasLootPvPMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
-- Alterac Valley Rewards
AtlasLootMenuItem_2_Name:SetText(AL["Alterac Valley"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_21");
AtlasLootMenuItem_2.lootpage="AVRepMenu";
AtlasLootMenuItem_2:Show();
-- Arathi Basin Rewards
AtlasLootMenuItem_3_Name:SetText(AL["Arathi Basin"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_3.lootpage="ABRepMenu";
AtlasLootMenuItem_3:Show();
--PvP Mounts
AtlasLootMenuItem_6_Name:SetText(AL["PvP Mounts"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_Mount_RidingHorse");
AtlasLootMenuItem_6.lootpage="PvPMountsPvP";
AtlasLootMenuItem_6:Show();
--PvP
AtlasLootMenuItem_8_Name:SetText(AL["PvP Armor Sets"]);
AtlasLootMenuItem_8_Extra:SetText("|cffFF8400"..AL["Level 60"]);
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\INV_Helmet_05");
AtlasLootMenuItem_8.lootpage="PVPSET";
AtlasLootMenuItem_8:Show();
--PvP Accessories
AtlasLootMenuItem_9_Name:SetText(AL["PvP Accessories"]);
AtlasLootMenuItem_9_Extra:SetText("|cffFF8400"..AL["Level 60"]);
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Talisman_09");
AtlasLootMenuItem_9.lootpage="PvP60Accessories1";
AtlasLootMenuItem_9:Show();
-- Warsong Gulch Rewards
AtlasLootMenuItem_17_Name:SetText(AL["Warsong Gulch"]);
AtlasLootMenuItem_17_Extra:SetText("");
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\INV_Misc_Rune_07");
AtlasLootMenuItem_17.lootpage="WSGRepMenu";
AtlasLootMenuItem_17:Show();
--Weapons
AtlasLootMenuItem_23_Name:SetText(AL["Rank 14 Weapons"]);
AtlasLootMenuItem_23_Extra:SetText("|cffFF8400"..AL["Level 60"]);
AtlasLootMenuItem_23_Icon:SetTexture("Interface\\Icons\\INV_Sword_11");
AtlasLootMenuItem_23.lootpage="PVPWeapons1";
AtlasLootMenuItem_23:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["PvP Rewards"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootWSGRepMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "PVPMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Friendly
AtlasLootMenuItem_2_Name:SetText("Friendly Reputation Rewards");
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Misc_Rune_07");
AtlasLootMenuItem_2.lootpage="WSGRepFriendly4049";
AtlasLootMenuItem_2:Show();
--Honored
AtlasLootMenuItem_3_Name:SetText("Honored Reputation Rewards");
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Misc_Rune_07");
AtlasLootMenuItem_3.lootpage="WSGRepHonored5059";
AtlasLootMenuItem_3:Show();
--Revered
AtlasLootMenuItem_4_Name:SetText("Revered Reputation Rewards");
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Misc_Rune_07");
AtlasLootMenuItem_4.lootpage="WSGRepRevered5059";
AtlasLootMenuItem_4:Show();
--Exalted
AtlasLootMenuItem_5_Name:SetText("Exalted Reputation Rewards");
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Misc_Rune_07");
AtlasLootMenuItem_5.lootpage="WSGRepExalted60";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Warsong Gulch"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootABRepMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "PVPMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Friendly
AtlasLootMenuItem_2_Name:SetText(AL["Friendly Reputation Rewards"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_2.lootpage="ABRepFriendly5059";
AtlasLootMenuItem_2:Show();
--Honored
AtlasLootMenuItem_3_Name:SetText(AL["Honored Reputation Rewards"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_3.lootpage="ABRepHonored5059";
AtlasLootMenuItem_3:Show();
--Revered
AtlasLootMenuItem_4_Name:SetText(AL["Revered Reputation Rewards"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_4.lootpage="ABRepRevered5059";
AtlasLootMenuItem_4:Show();
--Exalted
AtlasLootMenuItem_5_Name:SetText(AL["Exalted Reputation Rewards"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Amulet_07");
AtlasLootMenuItem_5.lootpage="ABRepExalted";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Arathi Basin"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootAVRepMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "PVPMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Friendly
AtlasLootMenuItem_2_Name:SetText(AL["Friendly Reputation Rewards"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_21");
AtlasLootMenuItem_2.lootpage="AVRepFriendly";
AtlasLootMenuItem_2:Show();
--Honored
AtlasLootMenuItem_3_Name:SetText(AL["Honored Reputation Rewards"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_21");
AtlasLootMenuItem_3.lootpage="AVRepHonored";
AtlasLootMenuItem_3:Show();
--Revered
AtlasLootMenuItem_4_Name:SetText(AL["Revered Reputation Rewards"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_21");
AtlasLootMenuItem_4.lootpage="AVRepRevered";
AtlasLootMenuItem_4:Show();
--Exalted
AtlasLootMenuItem_5_Name:SetText(AL["Exalted Reputation Rewards"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_21");
AtlasLootMenuItem_5.lootpage="AVRepExalted";
AtlasLootMenuItem_5:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Alterac Valley"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootPVPSetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "PVPMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="PVPPriest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="PVPMage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="PVPWarlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="PVPRogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="PVPDruid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="PVPHunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="PVPShaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="PVPPaladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="PVPWarrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["PvP Armor Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
+148
View File
@@ -0,0 +1,148 @@
local GREY = "|cff999999";
local RED = "|cffff0000";
local WHITE = "|cffFFFFFF";
local GREEN = "|cff1eff00";
local PURPLE = "|cff9F3FFF";
local BLUE = "|cff0070dd";
local ORANGE = "|cffFF8400";
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
local currentPage = 1;
local SearchResult = nil;
function AtlasLoot:ShowSearchResult()
AtlasLoot_ShowItemsFrame("SearchResult", "SearchResultPage"..currentPage, string.format((AL["Search Result: %s"]), AtlasLootCharDB.LastSearchedText or ""), pFrame);
end
function AtlasLoot:Search(Text)
if not Text then return end
Text = strtrim(Text);
if Text == "" then return end
local text = string.lower(Text);
local search = function(dataSource)
if dataSource == "AtlasLootFallback" then return end
local partial = AtlasLootCharDB.PartialMatching;
for dataID, data in pairs(AtlasLoot_Data[dataSource]) do
for _, v in ipairs(data) do
if type(v[1]) == "number" and v[1] > 0 then
local itemName = GetItemInfo(v[1]);
if not itemName then itemName = gsub(v[3], "=q%d=", "") end
local found;
if partial then
found = string.find(string.lower(itemName), text);
else
found = string.lower(itemName) == text;
end
if found then
local _, _, quality = string.find(v[3], "=q(%d)=");
if quality then itemName = "=q"..quality.."="..itemName end
table.insert(AtlasLootCharDB["SearchResult"], { v[1], v[2], itemName, v[4], dataID.."|"..dataSource });
end
elseif (v[1] ~= nil) and (v[1] ~= "") and (string.sub(v[1], 1, 1) == "s") then
local spellName
if not spellName then
if (string.sub(v[3], 1, 2) == "=d") then
spellName = gsub(v[3], "=ds=", "");
else
spellName = gsub(v[3], "=q%d=", "");
end
end
local found;
if partial then
found = string.find(string.lower(spellName), text);
else
found = string.lower(spellName) == text;
end
if found then
spellName = string.sub(v[3], 1, 4)..spellName;
table.insert(AtlasLootCharDB["SearchResult"], { v[1], v[2], spellName, v[4], dataID.."|"..dataSource });
end
elseif (v[1] ~= nil) and (v[1] ~= "") and (string.sub(v[1], 1, 1) == "e") then
local spellName
if not spellName then
if (string.sub(v[3], 1, 2) == "=d") then
spellName = gsub(v[3], "=ds=", "");
else
spellName = gsub(v[3], "=q%d=", "");
end
end
local found;
if partial then
found = string.find(string.lower(spellName), text);
else
found = string.lower(spellName) == text;
end
if found then
spellName = string.sub(v[3], 1, 4)..spellName;
table.insert(AtlasLootCharDB["SearchResult"], { v[1], v[2], spellName, v[4], dataID.."|"..dataSource });
end
end
end
end
end
AtlasLootCharDB["SearchResult"] = {};
AtlasLootCharDB.LastSearchedText = Text;
for dataSource in pairs(AtlasLoot_Data) do search(dataSource) end
if getn(AtlasLootCharDB["SearchResult"]) == 0 then
DEFAULT_CHAT_FRAME:AddMessage(RED..AL["AtlasLoot"]..": "..WHITE..AL["No match found for"].." \""..Text.."\".");
else
currentPage = 1;
SearchResult = AtlasLoot_CategorizeWishList(AtlasLootCharDB["SearchResult"]);
AtlasLoot_ShowItemsFrame("SearchResult", "SearchResultPage1", string.format((AL["Search Result: %s"]), AtlasLootCharDB.LastSearchedText or ""), pFrame);
end
end
function AtlasLoot:ShowSearchOptions(button)
local dewdrop = AceLibrary("Dewdrop-2.0");
if dewdrop:IsOpen(button) then
dewdrop:Close(1);
else
local setOptions = function()
dewdrop:AddLine(
"text", AL["Search options"],
"isTitle", true,
"notCheckable", true
);
dewdrop:AddLine(
"text", AL["Partial matching"],
"checked", AtlasLootCharDB.PartialMatching,
"tooltipTitle", AL["Partial matching"],
"tooltipText", AL["If checked, AtlasLoot searches item names for a partial match."],
"func", function() AtlasLootCharDB.PartialMatching = not AtlasLootCharDB.PartialMatching end
);
end;
dewdrop:Open(button,
'point', function(parent)
return "BOTTOMLEFT", "BOTTOMRIGHT";
end,
"children", setOptions
);
end
end
function AtlasLoot:GetOriginalDataFromSearchResult(itemID)
for i, v in ipairs(AtlasLootCharDB["SearchResult"]) do
if v[1] == itemID then return unpack(v) end
end
end
-- Copied and modified from AtlasLoot_GetWishListPage
function AtlasLoot:GetSearchResultPage(page)
if not SearchResult then SearchResult = AtlasLoot_CategorizeWishList(AtlasLootCharDB["SearchResult"]) end
-- Calc for maximal pages
local pageMax = math.ceil(getn(SearchResult) / 30);
if page < 1 then page = 1 end
if page > pageMax then page = pageMax end
currentPage = page;
-- Table copy
local result = {};
local start = (page - 1) * 30 + 1;
for i = start, start + 29 do
if not SearchResult[i] then break end
table.insert(result, SearchResult[i]);
end
return result, pageMax;
end
+802
View File
@@ -0,0 +1,802 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
local ORANGE = "|cffFF8400";
function AtlasLootSetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--ZG
AtlasLootMenuItem_3_Name:SetText(AL["Zul'Gurub Sets"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_19");
AtlasLootMenuItem_3.lootpage="ZGSET";
AtlasLootMenuItem_3:Show();
--AQ20
AtlasLootMenuItem_4_Name:SetText(AL["Ruins of Ahn'Qiraj Sets"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Ring_AhnQiraj_03");
AtlasLootMenuItem_4.lootpage="AQ20SET";
AtlasLootMenuItem_4:Show();
--AQ40
AtlasLootMenuItem_5_Name:SetText(AL["Temple of Ahn'Qiraj Sets"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Sword_59");
AtlasLootMenuItem_5.lootpage="AQ40SET";
AtlasLootMenuItem_5:Show();
--Legendaries
AtlasLootMenuItem_7_Name:SetText(AL["Legendary Items"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Staff_Medivh");
AtlasLootMenuItem_7.lootpage="Legendaries";
AtlasLootMenuItem_7:Show();
--Artifacts
AtlasLootMenuItem_8_Name:SetText(AL["Artifact Items"]);
AtlasLootMenuItem_8_Extra:SetText("");
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\INV_Sword_07");
AtlasLootMenuItem_8.lootpage="Artifacts";
AtlasLootMenuItem_8:Show();
--Rare Pets
AtlasLootMenuItem_9_Name:SetText(AL["Rare Pets"]);
AtlasLootMenuItem_9_Extra:SetText("");
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\Ability_Seal");
AtlasLootMenuItem_9.lootpage="RarePets1";
AtlasLootMenuItem_9:Show();
--Rare Mounts
AtlasLootMenuItem_10_Name:SetText(AL["Rare Mounts"]);
AtlasLootMenuItem_10_Extra:SetText("");
AtlasLootMenuItem_10_Icon:SetTexture("Interface\\Icons\\INV_Misc_QirajiCrystal_05");
AtlasLootMenuItem_10.lootpage="RareMounts";
AtlasLootMenuItem_10:Show();
--Old Mounts
AtlasLootMenuItem_11_Name:SetText(AL["Old Mounts"]);
AtlasLootMenuItem_11_Extra:SetText("");
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\Ability_Mount_RidingHorse");
AtlasLootMenuItem_11.lootpage="OldMounts";
AtlasLootMenuItem_11:Show();
--Unobtainable Mounts
AtlasLootMenuItem_12_Name:SetText(AL["Unobtainable Mounts"]);
AtlasLootMenuItem_12_Extra:SetText("");
AtlasLootMenuItem_12_Icon:SetTexture("Interface\\Icons\\Ability_Mount_Whitetiger");
AtlasLootMenuItem_12.lootpage="UnobMounts";
AtlasLootMenuItem_12:Show();
--Tabards
AtlasLootMenuItem_13_Name:SetText(AL["Tabards"]);
AtlasLootMenuItem_13_Extra:SetText("");
AtlasLootMenuItem_13_Icon:SetTexture("Interface\\Icons\\INV_Shirt_GuildTabard_01");
AtlasLootMenuItem_13.lootpage="Tabards";
AtlasLootMenuItem_13:Show();
--World Epics
AtlasLootMenuItem_2_Name:SetText(AL["Pre 60 Sets"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Sword_43");
AtlasLootMenuItem_2.lootpage="PRE60SET";
AtlasLootMenuItem_2:Show();
--World Epics
AtlasLootMenuItem_22_Name:SetText(AL["World Epics"]);
AtlasLootMenuItem_22_Extra:SetText("");
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\INV_Box_04");
AtlasLootMenuItem_22.lootpage="WORLDEPICS";
AtlasLootMenuItem_22:Show();
--Dungeon Set 1/2
AtlasLootMenuItem_17_Name:SetText(AL["Dungeon 1/2 Sets"]);
AtlasLootMenuItem_17_Extra:SetText("");
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\INV_Chest_Chain_03");
AtlasLootMenuItem_17.lootpage="T0SET";
AtlasLootMenuItem_17:Show();
--Tier 1
AtlasLootMenuItem_18_Name:SetText(AL["Tier 1 Sets"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\INV_Pants_Mail_03");
AtlasLootMenuItem_18.lootpage="T1SET";
AtlasLootMenuItem_18:Show();
--Tier 2
AtlasLootMenuItem_19_Name:SetText(AL["Tier 2 Sets"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\INV_Shoulder_32");
AtlasLootMenuItem_19.lootpage="T2SET";
AtlasLootMenuItem_19:Show();
--Tier 3
AtlasLootMenuItem_20_Name:SetText(AL["Tier 3 Sets"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\INV_Chest_Plate02");
AtlasLootMenuItem_20.lootpage="T3SET";
AtlasLootMenuItem_20:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Collections"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootWorldEpicsMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Lvl 30-39 BoE World Epics
AtlasLootMenuItem_2_Name:SetText(AL["Level 30-39"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Ring_15");
AtlasLootMenuItem_2.lootpage="WorldEpics1";
AtlasLootMenuItem_2:Show();
--Lvl 40-49 BoE World Epics
AtlasLootMenuItem_3_Name:SetText(AL["Level 40-49"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Staff_29");
AtlasLootMenuItem_3.lootpage="WorldEpics2";
AtlasLootMenuItem_3:Show();
--Lvl 50-60 BoE World Epics
AtlasLootMenuItem_4_Name:SetText(AL["Level 50-60"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Sword_19");
AtlasLootMenuItem_4.lootpage="WorldEpics3";
AtlasLootMenuItem_4:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["World Epics"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootPRE60SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--The Deadmines - Defias Leather
AtlasLootMenuItem_2_Name:SetText(AL["Defias Leather"]);
AtlasLootMenuItem_2_Extra:SetText(ORANGE..AL["The Deadmines"]);
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Pants_12");
AtlasLootMenuItem_2.lootpage="DEADMINES";
AtlasLootMenuItem_2:Show();
--Wailing Caverns - Embrace of the Viper
AtlasLootMenuItem_3_Name:SetText(AL["Embrace of the Viper"]);
AtlasLootMenuItem_3_Extra:SetText(ORANGE..AL["Wailing Caverns"]);
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Shirt_16");
AtlasLootMenuItem_3.lootpage="WAILING";
AtlasLootMenuItem_3:Show();
--Scarlet Monastery - Chain of the Scarlet Crusade
AtlasLootMenuItem_4_Name:SetText(AL["Chain of the Scarlet Crusade"]);
AtlasLootMenuItem_4_Extra:SetText(ORANGE..AL["Scarlet Monastery"]);
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Gauntlets_19");
AtlasLootMenuItem_4.lootpage="SCARLET";
AtlasLootMenuItem_4:Show();
--Blackrock Depths - The Gladiator
AtlasLootMenuItem_5_Name:SetText(AL["The Gladiator"]);
AtlasLootMenuItem_5_Extra:SetText(ORANGE..AL["Blackrock Depths"]);
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Helmet_01");
AtlasLootMenuItem_5.lootpage="BLACKROCKD";
AtlasLootMenuItem_5:Show();
--Ironweave Battlesuit
AtlasLootMenuItem_6_Name:SetText(AL["Ironweave Battlesuit"]);
AtlasLootMenuItem_6_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\INV_Boots_Cloth_05");
AtlasLootMenuItem_6.lootpage="IRONWEAVE";
AtlasLootMenuItem_6:Show();
--Stratholme - The Postmaster
AtlasLootMenuItem_7_Name:SetText(AL["The Postmaster"]);
AtlasLootMenuItem_7_Extra:SetText(ORANGE..AL["Stratholme"]);
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Boots_02");
AtlasLootMenuItem_7.lootpage="STRAT";
AtlasLootMenuItem_7:Show();
--Scholomance - Cloth - Necropile Raiment
AtlasLootMenuItem_8_Name:SetText(AL["Necropile Raiment"]);
AtlasLootMenuItem_8_Extra:SetText(ORANGE..AL["Scholomance"]);
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\INV_Shoulder_02");
AtlasLootMenuItem_8.lootpage="ScholoCloth";
AtlasLootMenuItem_8:Show();
--Scholomance - Leather - Cadaverous Garb
AtlasLootMenuItem_9_Name:SetText(AL["Cadaverous Garb"]);
AtlasLootMenuItem_9_Extra:SetText(ORANGE..AL["Scholomance"]);
AtlasLootMenuItem_9_Icon:SetTexture("Interface\\Icons\\INV_Belt_16");
AtlasLootMenuItem_9.lootpage="ScholoLeather";
AtlasLootMenuItem_9:Show();
--Scholomance - Mail - Bloodmail Regalia
AtlasLootMenuItem_10_Name:SetText(AL["Bloodmail Regalia"]);
AtlasLootMenuItem_10_Extra:SetText(ORANGE..AL["Scholomance"]);
AtlasLootMenuItem_10_Icon:SetTexture("Interface\\Icons\\INV_Gauntlets_26");
AtlasLootMenuItem_10.lootpage="ScholoMail";
AtlasLootMenuItem_10:Show();
--Scholomance - Plate - Deathbone Guardian
AtlasLootMenuItem_11_Name:SetText(AL["Deathbone Guardian"]);
AtlasLootMenuItem_11_Extra:SetText(ORANGE..AL["Scholomance"]);
AtlasLootMenuItem_11_Icon:SetTexture("Interface\\Icons\\INV_Belt_12");
AtlasLootMenuItem_11.lootpage="ScholoPlate";
AtlasLootMenuItem_11:Show();
--Scourge Invasion
AtlasLootMenuItem_12_Name:SetText(AL["Scourge Invasion"]);
AtlasLootMenuItem_12_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_12_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Talisman_13");
AtlasLootMenuItem_12.lootpage="ScourgeInvasion";
AtlasLootMenuItem_12:Show();
--Spider's Kiss
AtlasLootMenuItem_17_Name:SetText(AL["Spider's Kiss"]);
AtlasLootMenuItem_17_Extra:SetText(ORANGE..AL["Lower Blackrock Spire"]);
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\INV_Weapon_ShortBlade_16");
AtlasLootMenuItem_17.lootpage="SpiderKiss";
AtlasLootMenuItem_17:Show();
--Dal'Rend's Arms
AtlasLootMenuItem_18_Name:SetText(AL["Dal'Rend's Arms"]);
AtlasLootMenuItem_18_Extra:SetText(ORANGE..AL["Upper Blackrock Spire"]);
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\INV_Sword_43");
AtlasLootMenuItem_18.lootpage="DalRend";
AtlasLootMenuItem_18:Show();
--Zul'Gurub Rings
AtlasLootMenuItem_19_Name:SetText(AL["Zul'Gurub Rings"]);
AtlasLootMenuItem_19_Extra:SetText(ORANGE..AL["Zul'Gurub"]);
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\INV_Bijou_Orange");
AtlasLootMenuItem_19.lootpage="ZGRings";
AtlasLootMenuItem_19:Show();
--Primal Blessing
AtlasLootMenuItem_20_Name:SetText(AL["Primal Blessing"]);
AtlasLootMenuItem_20_Extra:SetText(ORANGE..AL["Zul'Gurub"]);
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\INV_Weapon_Hand_01");
AtlasLootMenuItem_20.lootpage="PrimalBlessing";
AtlasLootMenuItem_20:Show();
--The Twin Blades of Hakkari
AtlasLootMenuItem_21_Name:SetText(AL["The Twin Blades of Hakkari"]);
AtlasLootMenuItem_21_Extra:SetText(ORANGE..AL["Zul'Gurub"]);
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Sword_55");
AtlasLootMenuItem_21.lootpage="HakkariBlades";
AtlasLootMenuItem_21:Show();
--Shard of the Gods
AtlasLootMenuItem_22_Name:SetText(AL["Shard of the Gods"]);
AtlasLootMenuItem_22_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\INV_Misc_MonsterScales_15");
AtlasLootMenuItem_22.lootpage="ShardOfGods";
AtlasLootMenuItem_22:Show();
--Spirit of Eskhandar
AtlasLootMenuItem_23_Name:SetText(AL["Spirit of Eskhandar"]);
AtlasLootMenuItem_23_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_23_Icon:SetTexture("Interface\\Icons\\INV_Misc_MonsterClaw_04");
AtlasLootMenuItem_23.lootpage="SpiritofEskhandar";
AtlasLootMenuItem_23:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Pre 60 Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootZGSetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="ZGPriest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="ZGMage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="ZGWarlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="ZGRogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="ZGDruid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="ZGHunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="ZGShaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="ZGPaladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="ZGWarrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Zul'Gurub Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootAQ40SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="AQ40Priest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="AQ40Mage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="AQ40Warlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="AQ40Rogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="AQ40Druid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="AQ40Hunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="AQ40Shaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="AQ40Paladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="AQ40Warrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Temple of Ahn'Qiraj Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootAQ20SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="AQ20Priest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="AQ20Mage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="AQ20Warlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="AQ20Rogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="AQ20Druid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="AQ20Hunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="AQ20Shaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="AQ20Paladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="AQ20Warrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Ruins of Ahn'Qiraj Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootT0SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="T0Priest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="T0Mage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="T0Warlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="T0Rogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="T0Druid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="T0Hunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="T0Shaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="T0Paladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="T0Warrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Dungeon 1/2 Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootT1SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="T1Priest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="T1Mage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="T1Warlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="T1Rogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="T1Druid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="T1Hunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="T1Shaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="T1Paladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="T1Warrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Tier 1 Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootT2SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="T2Priest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="T2Mage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="T2Warlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="T2Rogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="T2Druid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="T2Hunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="T2Shaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="T2Paladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="T2Warrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Tier 2 Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootT3SetMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "SETMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Priest
AtlasLootMenuItem_3_Name:SetText("|cffffffff"..AL["Priest"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\Spell_Holy_PowerWordShield");
AtlasLootMenuItem_3.lootpage="T3Priest";
AtlasLootMenuItem_3:Show();
--Mage
AtlasLootMenuItem_4_Name:SetText("|cff68ccef"..AL["Mage"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\Spell_Frost_IceStorm");
AtlasLootMenuItem_4.lootpage="T3Mage";
AtlasLootMenuItem_4:Show();
--Warlock
AtlasLootMenuItem_5_Name:SetText("|cff9382c9"..AL["Warlock"]);
AtlasLootMenuItem_5_Extra:SetText("");
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\Spell_Shadow_CurseOfTounges");
AtlasLootMenuItem_5.lootpage="T3Warlock";
AtlasLootMenuItem_5:Show();
--Rogue
AtlasLootMenuItem_6_Name:SetText("|cfffff468"..AL["Rogue"]);
AtlasLootMenuItem_6_Extra:SetText("");
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\Ability_BackStab");
AtlasLootMenuItem_6.lootpage="T3Rogue";
AtlasLootMenuItem_6:Show();
--Druid
AtlasLootMenuItem_7_Name:SetText("|cffff7c0a"..AL["Druid"]);
AtlasLootMenuItem_7_Extra:SetText("");
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration");
AtlasLootMenuItem_7.lootpage="T3Druid";
AtlasLootMenuItem_7:Show();
--Hunter
AtlasLootMenuItem_18_Name:SetText("|cffaad372"..AL["Hunter"]);
AtlasLootMenuItem_18_Extra:SetText("");
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_RunningShot");
AtlasLootMenuItem_18.lootpage="T3Hunter";
AtlasLootMenuItem_18:Show();
--Shaman
AtlasLootMenuItem_19_Name:SetText("|cff2773ff"..AL["Shaman"]);
AtlasLootMenuItem_19_Extra:SetText("");
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\Spell_FireResistanceTotem_01");
AtlasLootMenuItem_19.lootpage="T3Shaman";
AtlasLootMenuItem_19:Show();
--Paladin
AtlasLootMenuItem_20_Name:SetText("|cfff48cba"..AL["Paladin"]);
AtlasLootMenuItem_20_Extra:SetText("");
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\Spell_Holy_SealOfMight");
AtlasLootMenuItem_20.lootpage="T3Paladin";
AtlasLootMenuItem_20:Show();
--Warrior
AtlasLootMenuItem_21_Name:SetText("|cffc69b6d"..AL["Warrior"]);
AtlasLootMenuItem_21_Extra:SetText("");
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_Shield_05");
AtlasLootMenuItem_21.lootpage="T3Warrior";
AtlasLootMenuItem_21:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Tier 3 Sets"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
+17684
View File
File diff suppressed because it is too large Load Diff
+658
View File
@@ -0,0 +1,658 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
--------------------------------------------------------------------------------
-- Text replacement function
--------------------------------------------------------------------------------
function AtlasLoot_FixText(text)
--Armour class
text = gsub(text, "#a1#", AL["Cloth"]);
text = gsub(text, "#a2#", AL["Leather"]);
text = gsub(text, "#a3#", AL["Mail"]);
text = gsub(text, "#a4#", AL["Plate"]);
--Body slot
text = gsub(text, "#s1#", AL["Head"]);
text = gsub(text, "#s2#", AL["Neck"]);
text = gsub(text, "#s3#", AL["Shoulder"]);
text = gsub(text, "#s4#", AL["Back"]);
text = gsub(text, "#s5#", AL["Chest"]);
text = gsub(text, "#s6#", AL["Shirt"]);
text = gsub(text, "#s7#", AL["Tabard"]);
text = gsub(text, "#s8#", AL["Wrist"]);
text = gsub(text, "#s9#", AL["Hands"]);
text = gsub(text, "#s10#", AL["Waist"]);
text = gsub(text, "#s11#", AL["Legs"]);
text = gsub(text, "#s12#", AL["Feet"]);
text = gsub(text, "#s13#", AL["Ring"]);
text = gsub(text, "#s14#", AL["Trinket"]);
text = gsub(text, "#s15#", AL["Held In Off-hand"]);
text = gsub(text, "#s16#", AL["Relic"]);
--Weapon Weilding
text = gsub(text, "#h1#", AL["One-Hand"]);
text = gsub(text, "#h2#", AL["Two-Hand"]);
text = gsub(text, "#h3#", AL["Main Hand"]);
text = gsub(text, "#h4#", AL["Off Hand"]);
--Weapon type
text = gsub(text, "#w1#", AL["Axe"]);
text = gsub(text, "#w2#", AL["Bow"]);
text = gsub(text, "#w3#", AL["Crossbow"]);
text = gsub(text, "#w4#", AL["Dagger"]);
text = gsub(text, "#w5#", AL["Gun"]);
text = gsub(text, "#w6#", AL["Mace"]);
text = gsub(text, "#w7#", AL["Polearm"]);
text = gsub(text, "#w8#", AL["Shield"]);
text = gsub(text, "#w9#", AL["Staff"]);
text = gsub(text, "#w10#", AL["Sword"]);
text = gsub(text, "#w11#", AL["Thrown"]);
text = gsub(text, "#w12#", AL["Wand"]);
text = gsub(text, "#w13#", AL["Fist Weapon"]);
text = gsub(text, "#w14#", AL["Fishing Pole"]);
-- Misc. Equipment
text = gsub(text, "#e1#", AL["Potion"]);
text = gsub(text, "#e2#", AL["Food"]);
text = gsub(text, "#e3#", AL["Drink"]);
text = gsub(text, "#e4#", AL["Bandage"]);
text = gsub(text, "#e5#", AL["Arrow"]);
text = gsub(text, "#e6#", AL["Bullet"]);
text = gsub(text, "#e7#", AL["Mount"]);
text = gsub(text, "#e8#", AL["Ammo Pouch"]);
text = gsub(text, "#e9#", AL["Quiver"]);
text = gsub(text, "#e10#", AL["Bag"]);
text = gsub(text, "#e11#", AL["Enchant"]);
text = gsub(text, "#e12#", AL["Trade Goods"]);
text = gsub(text, "#e13#", AL["Scope"]);
text = gsub(text, "#e14#", AL["Key"]);
text = gsub(text, "#e15#", AL["Pet"]);
text = gsub(text, "#e16#", AL["Idol"]);
text = gsub(text, "#e17#", AL["Totem"]);
text = gsub(text, "#e18#", AL["Libram"]);
text = gsub(text, "#e19#", AL["Darkmoon Faire Card"]);
text = gsub(text, "#e20#", AL["Book"]);
text = gsub(text, "#e21#", AL["Banner"]);
text = gsub(text, "#e22#", AL["Needed to purchase rewards"]);
text = gsub(text, "#e23#", AL["Gem"]);
text = gsub(text, "#e24#", AL["Use to purchase rewards"]);
text = gsub(text, "#e25#", AL["Use to purchase rewards (Horde)"]);
text = gsub(text, "#e26#", AL["Use to purchase rewards (Alliance)"]);
text = gsub(text, "#e27#", AL["Token"]);
text = gsub(text, "#e28#", AL["Crafting Reagent"]);
text = gsub(text, "#e31#", AL["random stats"]);
text = gsub(text, "#e32#", AL["random resistance"]);
text = gsub(text, "#e33#", AL["random colour"]);
-- Classes
text = gsub(text, "#c1#", AL["Druid"]); -- =q13=#c1#
text = gsub(text, "#c2#", AL["Hunter"]); -- =q14=#c2#
text = gsub(text, "#c3#", AL["Mage"]); -- =q10=#c3#
text = gsub(text, "#c4#", AL["Paladin"]); -- =q16=#c4#
text = gsub(text, "#c5#", AL["Priest"]); -- =q9=#c5#
text = gsub(text, "#c6#", AL["Rogue"]); -- =q12=#c6#
text = gsub(text, "#c7#", AL["Shaman"]); -- =q15=#c7#
text = gsub(text, "#c8#", AL["Warlock"]); -- =q11=#c8#
text = gsub(text, "#c9#", AL["Warrior"]); -- =q17=#c9#
--Skill
text = gsub(text, "#sk1#", AL["Apprentice"]);
text = gsub(text, "#sk2#", AL["Journeyman"]);
text = gsub(text, "#sk3#", AL["Expert"]);
text = gsub(text, "#sk4#", AL["Artisan"]);
--Professions
text = gsub(text, "#p1#", AL["Alchemy"]);
text = gsub(text, "#p2#", AL["Blacksmithing"]);
text = gsub(text, "#p3#", AL["Cooking"]);
text = gsub(text, "#p4#", AL["Enchanting"]);
text = gsub(text, "#p5#", AL["Engineering"]);
text = gsub(text, "#p6#", AL["First Aid"]);
text = gsub(text, "#p7#", AL["Leatherworking"]);
text = gsub(text, "#p8#", AL["Tailoring"]);
text = gsub(text, "#p9#", AL["Dragonscale"]);
text = gsub(text, "#p10#", AL["Tribal"]);
text = gsub(text, "#p11#", AL["Elemental"]);
text = gsub(text, "#p13#", AL["Lockpicking"]);
text = gsub(text, "#p14#", AL["Gnomish Engineering"]);
text = gsub(text, "#p15#", AL["Goblin Engineering"]);
--Reputation
text = gsub(text, "#r1#", AL["Neutral"]);
text = gsub(text, "#r2#", AL["Friendly"]);
text = gsub(text, "#r3#", AL["Honored"]);
text = gsub(text, "#r4#", AL["Revered"]);
text = gsub(text, "#r5#", AL["Exalted"]);
--Battleground Factions
text = gsub(text, "#b1#", AL["Stormpike Guard"]);
text = gsub(text, "#b2#", AL["Frostwolf Clan"]);
text = gsub(text, "#b3#", AL["Silverwing Sentinels"]);
text = gsub(text, "#b4#", AL["Warsong Outriders"]);
text = gsub(text, "#b5#", AL["The League of Arathor"]);
text = gsub(text, "#b6#", AL["The Defilers"]);
--BRDArena
text = gsub(text, "#brd1#", AL["Anub'shiah"]);
text = gsub(text, "#brd2#", AL["Eviscerator"]);
text = gsub(text, "#brd3#", AL["Gorosh the Dervish"]);
text = gsub(text, "#brd4#", AL["Grizzle"]);
text = gsub(text, "#brd5#", AL["Hedrum the Creeper"]);
text = gsub(text, "#brd6#", AL["Ok'thor the Breaker"]);
--Sunken Temple Mini Bosses
text = gsub(text, "#st1#", AL["Gasher"]);
text = gsub(text, "#st2#", AL["Hukku"]);
text = gsub(text, "#st3#", AL["Loro"]);
text = gsub(text, "#st4#", AL["Mijan"]);
text = gsub(text, "#st5#", AL["Zolo"]);
text = gsub(text, "#st6#", AL["Zul'Lor"]);
-- Misc phrases and mod specific stuff
text = gsub(text, "#m1#", AL["Classes"]);
text = gsub(text, "#m2#", AL["This Item Begins a Quest"]);
text = gsub(text, "#m3#", AL["Quest Item"]);
text = gsub(text, "#m4#", AL["Quest Reward"]);
text = gsub(text, "#m5#", AL["Shared"]);
text = gsub(text, "#m6#", AL["Horde"]); -- =q6=#m6#
text = gsub(text, "#m7#", AL["Alliance"]); -- =q8=#m7#
text = gsub(text, "#m8#", AL["Unique"]);
text = gsub(text, "#m9#", AL["Right Half"]);
text = gsub(text, "#m10#", AL["Left Half"]);
text = gsub(text, "#m11#", AL["28 Slot Soul"]);
text = gsub(text, "#m12#", AL["18 Slot"]);
text = gsub(text, "#m13#", AL["10 Slot"]);
text = gsub(text, "#m14#", AL["(300)"]);
text = gsub(text, "#m15#", AL["(295)"]);
text = gsub(text, "#m16#", AL["(275)"]);
text = gsub(text, "#m17#", AL["(265)"]);
text = gsub(text, "#m18#", AL["(290)"]);
text = gsub(text, "#m19#", AL["Set"]);
text = gsub(text, "#m20#", AL["(285)"]);
text = gsub(text, "#m21#", AL["16 Slot"]);
text = gsub(text, "#m22#", AL["Schematic: Field Repair Bot 74A"]);
text = gsub(text, "#m23#", AL["Container"]);
text = gsub(text, "#m24#", AL["Blacksmithing Plans"]);
text = gsub(text, "#m25#", AL["Consumable"]);
text = gsub(text, "#m26#", AL["(185)"]);
text = gsub(text, "#m27#", AL["(160)"]);
text = gsub(text, "#m28#", AL["(125)"]);
text = gsub(text, "#m29#", AL["(200)"]);
text = gsub(text, "#m30#", AL["(1)"]);
text = gsub(text, "#m31#", AL["Reagent"]);
text = gsub(text, "#m32#", AL["Binds when picked up"]);
text = gsub(text, "#m33#", AL["Misc"]);
text = gsub(text, "#m34#", AL["Use to purchase rewards"]);
text = gsub(text, "#m35#", AL["Fireworks"]);
text = gsub(text, "#m36#", AL["Used to summon boss"]);
text = gsub(text, "#m37#", AL["24 Slot"]);
text = gsub(text, "#m38#", AL["Coin"]);
text = gsub(text, "#m39#", AL["Bijou"]);
text = gsub(text, "#m40#", AL["Doll"]);
-- Random names
text = gsub(text, "#x1#", AL["Lord Cobrahn"]);
text = gsub(text, "#x2#", AL["Lady Anacondra"]);
text = gsub(text, "#x3#", AL["Lord Serpentis"]);
text = gsub(text, "#x4#", AL["Druid of the Fang"]);
text = gsub(text, "#x5#", AL["Lord Pythas"]);
text = gsub(text, "#x6#", AL["Edwin VanCleef"]);
text = gsub(text, "#x7#", AL["Captain Greenskin"]);
text = gsub(text, "#x8#", AL["Defias Strip Miner"]);
text = gsub(text, "#x9#", AL["Overseer/Taskmaster"]);
text = gsub(text, "#x10#", AL["Primal Hakkari Kossack"]);
text = gsub(text, "#x11#", AL["Primal Hakkari Shawl"]);
text = gsub(text, "#x12#", AL["Primal Hakkari Bindings"]);
text = gsub(text, "#x13#", AL["Primal Hakkari Sash"]);
text = gsub(text, "#x14#", AL["Primal Hakkari Stanchion"]);
text = gsub(text, "#x15#", AL["Primal Hakkari Aegis"]);
text = gsub(text, "#x16#", AL["Primal Hakkari Girdle"]);
text = gsub(text, "#x17#", AL["Primal Hakkari Armsplint"]);
text = gsub(text, "#x18#", AL["Primal Hakkari Tabard"]);
text = gsub(text, "#x19#", AL["Qiraji Ornate Hilt"]);
text = gsub(text, "#x20#", AL["Qiraji Martial Drape"]);
text = gsub(text, "#x21#", AL["Qiraji Magisterial Ring"]);
text = gsub(text, "#x22#", AL["Qiraji Ceremonial Ring"]);
text = gsub(text, "#x23#", AL["Qiraji Regal Drape"]);
text = gsub(text, "#x24#", AL["Qiraji Spiked Hilt"]);
text = gsub(text, "#x25#", AL["Qiraji Bindings of Dominance"]);
text = gsub(text, "#x26#", AL["Vek'nilash's Circlet"]);
text = gsub(text, "#x27#", AL["Ouro's Intact Hide"]);
text = gsub(text, "#x28#", AL["Husk of the Old God"]);
text = gsub(text, "#x29#", AL["Qiraji Bindings of Command"]);
text = gsub(text, "#x30#", AL["Vek'lor's Diadem"]);
text = gsub(text, "#x31#", AL["Skin of the Great Sandworm"]);
text = gsub(text, "#x32#", AL["Carapace of the Old God"]);
text = gsub(text, "#x33#", AL["Defender"]);
text = gsub(text, "#x34#", AL["Trash Mobs"]);
text = gsub(text, "#x35#", AL["Champion"]);
text = gsub(text, "#x36#", AL["Centurion"]);
text = gsub(text, "#x37#", AL["Herod"]);
text = gsub(text, "#x38#", AL["Protector"]);
text = gsub(text, "#x39#", AL["Myrmidon"]);
text = gsub(text, "#x40#", AL["Defias Pirate"]);
text = gsub(text, "#x41#", AL["Prisoner/Insurgent/Convict"]);
text = gsub(text, "#x42#", AL["Black Guard Swordsmith"]);
text = gsub(text, "#x43#", AL["Crimson Hammersmith"]);
text = gsub(text, "#x44#", AL["Shadowforge Flame Keeper"]);
text = gsub(text, "#x45#", AL["Anvilrage Marshal"]);
text = gsub(text, "#x46#", AL["Anvilrage Captain"]);
text = gsub(text, "#x47#", AL["Weapon Technician"]);
text = gsub(text, "#x48#", AL["Doomforge Craftsman"]);
text = gsub(text, "#x49#", AL["Doomforge Arcanasmith"]);
text = gsub(text, "#x50#", AL["Hammered Patron"]);
text = gsub(text, "#x51#", AL["Scarshield Warlock"]);
text = gsub(text, "#x52#", AL["Firebrand Pyromancer"]);
text = gsub(text, "#x53#", AL["Firebrand Grunt"]);
text = gsub(text, "#x54#", AL["Firebrand Invoker"]);
text = gsub(text, "#x55#", AL["Firebrand Legionnaire"]);
text = gsub(text, "#x56#", AL["Spirestone Mystic"]);
text = gsub(text, "#x57#", AL["Spirestone Warlord"]);
text = gsub(text, "#x58#", AL["Spire Spider/Spiderling"]);
text = gsub(text, "#x59#", AL["Blackhand Elite"]);
text = gsub(text, "#x60#", AL["Blackhand Assassin"]);
text = gsub(text, "#x61#", AL["Death Talon Wyrmguard"]);
text = gsub(text, "#x62#", AL["Dark Iron Agent"]);
text = gsub(text, "#x63#", AL["Molten Destroyer"]);
text = gsub(text, "#x64#", AL["Scarlet Trainee"]);
text = gsub(text, "#x65#", AL["Scarlet Commander Mograine"]);
text = gsub(text, "#x66#", AL["Guardsman"]);
text = gsub(text, "#x67#", AL["Plagued Hatchling"]);
text = gsub(text, "#x68#", AL["Scholomance Adept"]);
text = gsub(text, "#x69#", AL["Scholomance Dark Summoner"]);
text = gsub(text, "#x70#", AL["Spectral Researcher"]);
text = gsub(text, "#x71#", AL["Twilight Corrupter"]);
text = gsub(text, "#x72#", AL["Thuzadin Shadowcaster"]);
text = gsub(text, "#x73#", AL["Crimson Sorcerer"]);
text = gsub(text, "#x74#", AL["Crimson Battle Mage"]);
text = gsub(text, "#x75#", AL["Spectral Citizen"]);
text = gsub(text, "#x76#", AL["Ghoul Ravener"]);
text = gsub(text, "#x77#", AL["Crimson Inquisitor"]);
text = gsub(text, "#x78#", AL["Atal'ai Witch Doctor"]);
text = gsub(text, "#x79#", AL["Murk Worm"]);
text = gsub(text, "#x80#", AL["Crimson Templar"]);
text = gsub(text, "#x81#", AL["Azure Templar"]);
text = gsub(text, "#x82#", AL["Earthen Templar"]);
text = gsub(text, "#x83#", AL["Hoary Templar"]);
text = gsub(text, "#x84#", AL["The Duke of Zephyrs"]);
text = gsub(text, "#x85#", AL["The Duke of Shards"]);
text = gsub(text, "#x86#", AL["The Duke of Cynders"]);
text = gsub(text, "#x87#", AL["The Duke of Fathoms"]);
text = gsub(text, "#x88#", AL["High Marshal Whirlaxis"]);
text = gsub(text, "#x89#", AL["Baron Kazum"]);
text = gsub(text, "#x90#", AL["Prince Skaldrenox"]);
text = gsub(text, "#x91#", AL["Lord Skwol"]);
text = gsub(text, "#x92#", AL["Baron Charr"]);
text = gsub(text, "#x93#", AL["Avalanchion"]);
text = gsub(text, "#x94#", AL["Princess Tempestria"]);
text = gsub(text, "#x95#", AL["The Windreaver"]);
-- Misc
text = gsub(text, "#j1#", AL["Dungeon 1 Set"]);
text = gsub(text, "#j2#", AL["Dungeon 2 Set"]);
text = gsub(text, "#j3#", AL["D2 Summonable"]);
text = gsub(text, "#j4#", AL["Token Hand-Ins"]);
text = gsub(text, "#j5#", AL["Level 60"]);
text = gsub(text, "#j6#", AL["Fire Resistance Gear"]);
text = gsub(text, "#j7#", AL["Arcane Resistance Gear"]);
text = gsub(text, "#j8#", AL["Nature Resistance Gear"]);
text = gsub(text, "#j9#", AL["Frost Resistance Gear"]);
text = gsub(text, "#j10#", AL["Shadow Resistance Gear"]);
text = gsub(text, "#j11#", AL["Master Angler"]);
text = gsub(text, "#j12#", AL["First Prize"]);
text = gsub(text, "#j13#", AL["Rare Fish Rewards"]);
text = gsub(text, "#j14#", AL["Rare Fish"]);
text = gsub(text, "#j15#", AL["Fire"]);
text = gsub(text, "#j16#", AL["Water"]);
text = gsub(text, "#j17#", AL["Earth"]);
text = gsub(text, "#j18#", AL["Air"]);
-- Blacksmithing Crafted Sets
text = gsub(text, "#craftbp1#", AL["Imperial Plate"]);
text = gsub(text, "#craftbp2#", AL["The Darksoul"]);
text = gsub(text, "#craftbm1#", AL["Bloodsoul Embrace"]);
-- Tailoring Crafted Sets
text = gsub(text, "#craftt1#", AL["Bloodvine Garb"]);
-- Leatherworking Crafted Sets
text = gsub(text, "#craftlwl1#", AL["Volcanic Armor"]);
text = gsub(text, "#craftlwl2#", AL["Ironfeather Armor"]);
text = gsub(text, "#craftlwl3#", AL["Stormshroud Armor"]);
text = gsub(text, "#craftlwl4#", AL["Devilsaur Armor"]);
text = gsub(text, "#craftlwl5#", AL["Blood Tiger Harness"]);
text = gsub(text, "#craftlwl6#", AL["Primal Batskin"]);
text = gsub(text, "#craftlwm1#", AL["Green Dragon Mail"]);
text = gsub(text, "#craftlwm2#", AL["Blue Dragon Mail"]);
text = gsub(text, "#craftlwm3#", AL["Black Dragon Mail"]);
-- Chests, boxes
text = gsub(text, "#cb1#", AL["Doan's Strongbox"]);
--[[text = gsub(text, "#cb2#", ATLASLOOT_Chest of The Seven);
text = gsub(text, "#cb3#", ATLASLOOT_The Vault);
text = gsub(text, "#cb4#", ATLASLOOT_Dark Coffer);
text = gsub(text, "#cb5#", ATLASLOOT_The Secret Safe);
text = gsub(text, "#cb6#", ATLASLOOT_Ogre Tannin Basket);]]
text = gsub(text, "#cb7#", AL["Fengus's Chest"]);
--[[text = gsub(text, "#cb8#", ATLASLOOT_The Princes Chest);]]
text = gsub(text, "#cb9#", AL["Felvine Shard"]);
text = gsub(text, "#cb10#", AL["Unforged Rune Covered Breastplate"]);
--[[text = gsub(text, "#cb11#", ATLASLOOT_Unfinished Painting);
text = gsub(text, "#cb12#", ATLASLOOT_Frostwhispers Embalming Fluid);--]]
text = gsub(text, "#cb13#", AL["Malor's Strongbox"]);
--[[text = gsub(text, "#cb14#", ATLASLOOT_Baelogs Chest);
text = gsub(text, "#cb15#", ATLASLOOT_Conspicuous Urn);--]]
text = gsub(text, "#cb16#", AL["Gift of Adoration"]);
text = gsub(text, "#cb17#", AL["Box of Chocolates"]);
text = gsub(text, "#cb18#", AL["Treat Bag"]);
--[[text = gsub(text, "#cb19#", ATLASLOOT_Gaily Wrapped Present);
text = gsub(text, "#cb20#", ATLASLOOT_Festive Gift);
text = gsub(text, "#cb21#", ATLASLOOT_Ticking Present);
text = gsub(text, "#cb22#", ATLASLOOT_Gently Shaken Gift);
text = gsub(text, "#cb24#", ATLASLOOT_Lunar Festival Fireworks Pack);
text = gsub(text, "#cb25#", ATLASLOOT_Lucky Red Envelope);--]]
text = gsub(text, "#cb25#", AL["Brightly Colored Egg"]);
text = gsub(text, "#cb26#", AL["Small Rocket Recipes"]);
text = gsub(text, "#cb27#", AL["Large Rocket Recipes"]);
text = gsub(text, "#cb28#", AL["Cluster Rocket Recipes"]);
text = gsub(text, "#cb29#", AL["Large Cluster Rocket Recipes"]);
text = gsub(text, "#cb30#", AL["Warpwood Pod"]);
text = gsub(text, "#cb31#", AL["Scarab Coffer"]);
text = gsub(text, "#cb32#", AL["Greater Scarab Coffer"]);
--Pre60 Sets
text = gsub(text, "#pre60s1#", AL["Defias Leather"]);
text = gsub(text, "#pre60s2#", AL["Embrace of the Viper"]);
text = gsub(text, "#pre60s3#", AL["Chain of the Scarlet Crusade"]);
text = gsub(text, "#pre60s4#", AL["The Gladiator"]);
text = gsub(text, "#pre60s5#", AL["Ironweave Battlesuit"]);
text = gsub(text, "#pre60s6#", AL["Necropile Raiment"]);
text = gsub(text, "#pre60s7#", AL["Cadaverous Garb"]);
text = gsub(text, "#pre60s8#", AL["Bloodmail Regalia"]);
text = gsub(text, "#pre60s9#", AL["Deathbone Guardian"]);
text = gsub(text, "#pre60s10#", AL["The Postmaster"]);
text = gsub(text, "#pre60s11#", AL["Regalia of Undead Cleansing"]);
text = gsub(text, "#pre60s12#", AL["Undead Slayer's Armor"]);
text = gsub(text, "#pre60s13#", AL["Garb of the Undead Slayer"]);
text = gsub(text, "#pre60s14#", AL["Battlegear of Undead Slaying"]);
text = gsub(text, "#pre60s15#", AL["Shard of the Gods"]);
text = gsub(text, "#pre60s16#", AL["Major Mojo Infusion"]);
text = gsub(text, "#pre60s17#", AL["Overlord's Resolution"]);
text = gsub(text, "#pre60s18#", AL["Prayer of the Primal"]);
text = gsub(text, "#pre60s19#", AL["Zanzil's Concentration"]);
text = gsub(text, "#pre60s20#", AL["Spirit of Eskhandar"]);
text = gsub(text, "#pre60s21#", AL["The Twin Blades of Hakkari"]);
text = gsub(text, "#pre60s22#", AL["Primal Blessing"]);
text = gsub(text, "#pre60s23#", AL["Dal'Rend's Arms"]);
text = gsub(text, "#pre60s24#", AL["Spider's Kiss"]);
--ZG Sets
text = gsub(text, "#zgs1#", AL["Haruspex's Garb"]);
text = gsub(text, "#zgs2#", AL["Predator's Armor"]);
text = gsub(text, "#zgs3#", AL["Illusionist's Attire"]);
text = gsub(text, "#zgs4#", AL["Freethinker's Armor"]);
text = gsub(text, "#zgs5#", AL["Confessor's Raiment"]);
text = gsub(text, "#zgs6#", AL["Madcap's Outfit"]);
text = gsub(text, "#zgs7#", AL["Augur's Regalia"]);
text = gsub(text, "#zgs8#", AL["Demoniac's Threads"]);
text = gsub(text, "#zgs9#", AL["Vindicator's Battlegear"]);
--AQ20 Sets
text = gsub(text, "#aq20s1#", AL["Symbols of Unending Life"]);
text = gsub(text, "#aq20s2#", AL["Trappings of the Unseen Path"]);
text = gsub(text, "#aq20s3#", AL["Trappings of Vaulted Secrets"]);
text = gsub(text, "#aq20s4#", AL["Battlegear of Eternal Justice"]);
text = gsub(text, "#aq20s5#", AL["Finery of Infinite Wisdom"]);
text = gsub(text, "#aq20s6#", AL["Emblems of Veiled Shadows"]);
text = gsub(text, "#aq20s7#", AL["Gift of the Gathering Storm"]);
text = gsub(text, "#aq20s8#", AL["Implements of Unspoken Names"]);
text = gsub(text, "#aq20s9#", AL["Battlegear of Unyielding Strength"]);
--AQ40 Sets
text = gsub(text, "#aq40s1#", AL["Genesis Raiment"]);
text = gsub(text, "#aq40s2#", AL["Striker's Garb"]);
text = gsub(text, "#aq40s3#", AL["Enigma Vestments"]);
text = gsub(text, "#aq40s4#", AL["Avenger's Battlegear"]);
text = gsub(text, "#aq40s5#", AL["Garments of the Oracle"]);
text = gsub(text, "#aq40s6#", AL["Deathdealer's Embrace"]);
text = gsub(text, "#aq40s7#", AL["Stormcaller's Garb"]);
text = gsub(text, "#aq40s8#", AL["Doomcaller's Attire"]);
text = gsub(text, "#aq40s9#", AL["Conqueror's Battlegear"]);
--T0 Sets
text = gsub(text, "#t0s1#", AL["Wildheart Raiment"]);
text = gsub(text, "#t0s2#", AL["Beaststalker Armor"]);
text = gsub(text, "#t0s3#", AL["Magister's Regalia"]);
text = gsub(text, "#t0s4#", AL["Lightforge Armor"]);
text = gsub(text, "#t0s5#", AL["Vestments of the Devout"]);
text = gsub(text, "#t0s6#", AL["Shadowcraft Armor"]);
text = gsub(text, "#t0s7#", AL["The Elements"]);
text = gsub(text, "#t0s8#", AL["Dreadmist Raiment"]);
text = gsub(text, "#t0s9#", AL["Battlegear of Valor"]);
--T0.5 Sets
text = gsub(text, "#t05s1#", AL["Feralheart Raiment"]);
text = gsub(text, "#t05s2#", AL["Beastmaster Armor"]);
text = gsub(text, "#t05s3#", AL["Sorcerer's Regalia"]);
text = gsub(text, "#t05s4#", AL["Soulforge Armor"]);
text = gsub(text, "#t05s5#", AL["Vestments of the Virtuous"]);
text = gsub(text, "#t05s6#", AL["Darkmantle Armor"]);
text = gsub(text, "#t05s7#", AL["The Five Thunders"]);
text = gsub(text, "#t05s8#", AL["Deathmist Raiment"]);
text = gsub(text, "#t05s9#", AL["Battlegear of Heroism"]);
--T1 Sets
text = gsub(text, "#t1s1#", AL["Cenarion Raiment"]);
text = gsub(text, "#t1s2#", AL["Giantstalker Armor"]);
text = gsub(text, "#t1s3#", AL["Arcanist Regalia"]);
text = gsub(text, "#t1s4#", AL["Lawbringer Armor"]);
text = gsub(text, "#t1s5#", AL["Vestments of Prophecy"]);
text = gsub(text, "#t1s6#", AL["Nightslayer Armor"]);
text = gsub(text, "#t1s7#", AL["The Earthfury"]);
text = gsub(text, "#t1s8#", AL["Felheart Raiment"]);
text = gsub(text, "#t1s9#", AL["Battlegear of Might"]);
--T2 Sets
text = gsub(text, "#t2s1#", AL["Stormrage Raiment"]);
text = gsub(text, "#t2s2#", AL["Dragonstalker Armor"]);
text = gsub(text, "#t2s3#", AL["Netherwind Regalia"]);
text = gsub(text, "#t2s4#", AL["Judgement Armor"]);
text = gsub(text, "#t2s5#", AL["Vestments of Transcendence"]);
text = gsub(text, "#t2s6#", AL["Bloodfang Armor"]);
text = gsub(text, "#t2s7#", AL["The Ten Storms"]);
text = gsub(text, "#t2s8#", AL["Nemesis Raiment"]);
text = gsub(text, "#t2s9#", AL["Battlegear of Wrath"]);
--T3 Sets
text = gsub(text, "#t3s1#", AL["Dreamwalker Raiment"]);
text = gsub(text, "#t3s2#", AL["Cryptstalker Armor"]);
text = gsub(text, "#t3s3#", AL["Frostfire Regalia"]);
text = gsub(text, "#t3s4#", AL["Redemption Armor"]);
text = gsub(text, "#t3s5#", AL["Vestments of Faith"]);
text = gsub(text, "#t3s6#", AL["Bonescythe Armor"]);
text = gsub(text, "#t3s7#", AL["The Earthshatterer"]);
text = gsub(text, "#t3s8#", AL["Plagueheart Raiment"]);
text = gsub(text, "#t3s9#", AL["Dreadnaught's Battlegear"]);
--BoN
text = gsub(text, "#pob1#", AL["Path of the Conqueror"]);
text = gsub(text, "#pob2#", AL["Path of the Invoker"]);
text = gsub(text, "#pob3#", AL["Path of the Protector"]);
--PvP Epic Horde Sets
text = gsub(text, "#pvpeh1#", AL["Warlord's Sanctuary"]);
text = gsub(text, "#pvpeh2#", AL["Warlord's Pursuit"]);
text = gsub(text, "#pvpeh3#", AL["Warlord's Regalia"]);
text = gsub(text, "#pvpeh4#", AL["Warlord's Raiment"]);
text = gsub(text, "#pvpeh5#", AL["Warlord's Vestments"]);
text = gsub(text, "#pvpeh6#", AL["Warlord's Earthshaker"]);
text = gsub(text, "#pvpeh7#", AL["Warlord's Threads"]);
text = gsub(text, "#pvpeh8#", AL["Warlord's Battlegear"]);
text = gsub(text, "#pvpeh9#", AL["Warlord's Aegis"]);
--PvP Epic Alliance Sets
text = gsub(text, "#pvpea1#", AL["Field Marshal's Sanctuary"]);
text = gsub(text, "#pvpea2#", AL["Field Marshal's Pursuit"]);
text = gsub(text, "#pvpea3#", AL["Field Marshal's Regalia"]);
text = gsub(text, "#pvpea4#", AL["Field Marshal's Aegis"]);
text = gsub(text, "#pvpea5#", AL["Field Marshal's Raiment"]);
text = gsub(text, "#pvpea6#", AL["Field Marshal's Vestments"]);
text = gsub(text, "#pvpea7#", AL["Field Marshal's Threads"]);
text = gsub(text, "#pvpea8#", AL["Field Marshal's Battlegear"]);
text = gsub(text, "#pvpea9#", AL["Field Marshal's Earthshaker"]);
--PvP Rare Horde Sets
text = gsub(text, "#pvprh1#", AL["Champion's Refuge"]);
text = gsub(text, "#pvprh2#", AL["Champion's Pursuance"]);
text = gsub(text, "#pvprh3#", AL["Champion's Arcanum"]);
text = gsub(text, "#pvprh4#", AL["Champion's Investiture"]);
text = gsub(text, "#pvprh5#", AL["Champion's Guard"]);
text = gsub(text, "#pvprh6#", AL["Champion's Stormcaller"]);
text = gsub(text, "#pvprh7#", AL["Champion's Dreadgear"]);
text = gsub(text, "#pvprh8#", AL["Champion's Battlearmor"]);
text = gsub(text, "#pvprh9#", AL["Champion's Redoubt"]);
--PvP Rare Alliance Sets
text = gsub(text, "#pvpra1#", AL["Lieutenant Commander's Refuge"]);
text = gsub(text, "#pvpra2#", AL["Lieutenant Commander's Pursuance"]);
text = gsub(text, "#pvpra3#", AL["Lieutenant Commander's Arcanum"]);
text = gsub(text, "#pvpra4#", AL["Lieutenant Commander's Redoubt"]);
text = gsub(text, "#pvpra5#", AL["Lieutenant Commander's Investiture"]);
text = gsub(text, "#pvpra6#", AL["Lieutenant Commander's Guard"]);
text = gsub(text, "#pvpra7#", AL["Lieutenant Commander's Dreadgear"]);
text = gsub(text, "#pvpra8#", AL["Lieutenant Commander's Battlearmor"]);
text = gsub(text, "#pvpra9#", AL["Lieutenant Commander's Stormcaller"]);
--Rogue
text = gsub(text, "#rp1#", AL["Poisons"]);
text = gsub(text, "#rp2#", AL["Reagent"]);
--Crafting
text = gsub(text, "#sr#", AL["Skill:"]);
text = gsub(text, "#lr#", AL["Level:"]);
text = gsub(text, "=so1=", "|cffff7f3f"); --orange skill
text = gsub(text, "=so2=", "|cffffff00"); --yellow skill
text = gsub(text, "=so3=", "|cff3fbf3f"); --green skill
text = gsub(text, "=so4=", "|cff7f7f7f"); --gray skill
--Misc PvP Set Text
text = gsub(text, "#pvps1#", AL["Epic Set"]);
text = gsub(text, "#pvps2#", AL["Rare Set"]);
--Text colouring
text = gsub(text, "=q0=", "|cff9d9d9d");
text = gsub(text, "=q1=", "|cffFFFFFF");
text = gsub(text, "=q2=", "|cff1eff00");
text = gsub(text, "=q3=", "|cff0070dd");
text = gsub(text, "=q4=", "|cffa335ee");
text = gsub(text, "=q5=", "|cffFF8000");
text = gsub(text, "=q6=", "|cffFF0000");
text = gsub(text, "=q7=", "|cff03c0f6"); -- "dropped by" colour
text = gsub(text, "=q8=", "|cff2773ff"); -- alliance colour, alliance rank colour
text = gsub(text, "=q9=", "|cffffffff"); -- priest colour
text = gsub(text, "=q10=", "|cff68ccef"); -- mage colour
text = gsub(text, "=q11=", "|cff9382c9"); -- warlock colour
text = gsub(text, "=q12=", "|cfffff468"); -- rogue colour
text = gsub(text, "=q13=", "|cffff7c0a"); -- druid colour
text = gsub(text, "=q14=", "|cffaad372"); -- hunter colour
text = gsub(text, "=q15=", "|cff2773ff"); -- shaman colour
text = gsub(text, "=q16=", "|cfff48cba"); -- paladin colour
text = gsub(text, "=q17=", "|cffc69b6d"); -- warrior colour
text = gsub(text, "=q18=", "|cffff3100"); -- horde rank colour
text = gsub(text, "=q19=", "|cffe6cc80"); -- horde rank colour
text = gsub(text, "=ec1=", "|cffFF8400");
text = gsub(text, "=ds=", "|cffFFd200");
--Dropped by names
text = gsub(text, "#db1#", AL["Patchwerk"]);
text = gsub(text, "#db2#", AL["Grobbulus"]);
text = gsub(text, "#db3#", AL["Gluth"]);
text = gsub(text, "#db4#", AL["Thaddius"]);
text = gsub(text, "#db5#", AL["Anub'Rekhan"]);
text = gsub(text, "#db6#", AL["Faerlina"]);
text = gsub(text, "#db7#", AL["Maexxna"]);
text = gsub(text, "#db8#", AL["Noth"]);
text = gsub(text, "#db9#", AL["Heigan"]);
text = gsub(text, "#db10#", AL["Loatheb"]);
text = gsub(text, "#db11#", AL["Razuvious"]);
text = gsub(text, "#db12#", AL["Gothik"]);
text = gsub(text, "#db13#", AL["The Four Horsemen"]);
text = gsub(text, "#db14#", AL["Kel'Thuzad"]);
text = gsub(text, "#db15#", AL["Onyxia"]);
text = gsub(text, "#db16#", AL["Ragnaros"]);
text = gsub(text, "#db17#", AL["Razorgore the Untamed"]);
text = gsub(text, "#db18#", AL["Vaelastrasz the Corrupt"]);
text = gsub(text, "#db19#", AL["Broodlord Lashlayer"]);
text = gsub(text, "#db20#", AL["Firemaw"]);
text = gsub(text, "#db21#", AL["Ebonroc"]);
text = gsub(text, "#db22#", AL["Flamegor"]);
text = gsub(text, "#db23#", AL["Chromaggus"]);
text = gsub(text, "#db24#", AL["Nefarian"]);
text = gsub(text, "#db25#", AL["Lucifron"]);
text = gsub(text, "#db26#", AL["Magmadar"]);
text = gsub(text, "#db27#", AL["Gehennas"]);
text = gsub(text, "#db28#", AL["Garr"]);
text = gsub(text, "#db29#", AL["Baron Geddon"]);
text = gsub(text, "#db30#", AL["Shazzrah"]);
text = gsub(text, "#db31#", AL["Sulfuron Harbinger"]);
text = gsub(text, "#db32#", AL["Golemagg the Incinerator"]);
text = gsub(text, "#db33#", AL["Darkmaster Gandling"]);
text = gsub(text, "#db34#", AL["Baron Rivendare"]);
text = gsub(text, "#db35#", AL["General Drakkisath"]);
text = gsub(text, "#db36#", AL["Ras Frostwhisper"]);
text = gsub(text, "#db37#", AL["Doctor Theolen Krastinov"]);
text = gsub(text, "#db38#", AL["Hearthsinger Forresten"]);
text = gsub(text, "#db39#", AL["Solakar Flamewreath"]);
text = gsub(text, "#db40#", AL["Archivist Galford"]);
text = gsub(text, "#db41#", AL["Maleki the Pallid"]);
text = gsub(text, "#db42#", AL["Jandice Barov"]);
text = gsub(text, "#db43#", AL["Lorekeeper Polkelt"]);
text = gsub(text, "#db44#", AL["Baroness Anastari"]);
text = gsub(text, "#db45#", AL["Cannon Master Willey"]);
text = gsub(text, "#db46#", AL["Instructor Malicia"]);
text = gsub(text, "#db47#", AL["Shadow Hunter Vosh'gajin"]);
text = gsub(text, "#db48#", AL["Rattlegore"]);
text = gsub(text, "#db49#", AL["Gizrul the Slavener"]);
text = gsub(text, "#db50#", AL["Mother Smolderweb"]);
text = gsub(text, "#db51#", AL["The Unforgiven"]);
text = gsub(text, "#db52#", AL["The Ravenian"]);
text = gsub(text, "#db53#", AL["Overlord Wyrmthalak"]);
text = gsub(text, "#db54#", AL["War Master Voone"]);
text = gsub(text, "#db55#", AL["Nerub'enkan"]);
text = gsub(text, "#db56#", AL["Gyth"]);
text = gsub(text, "#db57#", AL["Pyroguard Emberseer"]);
text = gsub(text, "#db58#", AL["Highlord Omokk"]);
text = gsub(text, "#db59#", AL["Warchief Rend Blackhand"]);
text = gsub(text, "#db60#", AL["Ramstein the Gorger"]);
text = gsub(text, "#db61#", AL["Kirtonos the Herald"]);
text = gsub(text, "#db62#", AL["The Beast"]);
text = gsub(text, "#db63#", AL["Lord Alexei Barov"]);
text = gsub(text, "#db64#", AL["Timmy the Cruel"]);
text = gsub(text, "#db65#", AL["Balnazzar"]);
--Zones abbreviations
text = gsub(text, "#z1#", "("..AL["MC"]..")");
text = gsub(text, "#z2#", AL["Scholo"]);
text = gsub(text, "#z3#", AL["Strat"]);
text = gsub(text, "#z4#", AL["LBRS"]);
text = gsub(text, "#z5#", AL["UBRS"]);
--Currency Icons
text = gsub(text, "#gold#", "Interface\\AddOns\\AtlasLoot\\Images\\gold");
text = gsub(text, "#silver#", "Interface\\AddOns\\AtlasLoot\\Images\\silver");
text = gsub(text, "#copper#", "Interface\\AddOns\\AtlasLoot\\Images\\bronze");
text = gsub(text, "#wsg#", "Interface\\Icons\\INV_Misc_Rune_07");
text = gsub(text, "#ab#", "Interface\\Icons\\INV_Jewelry_Amulet_07");
text = gsub(text, "#av#", "Interface\\Icons\\INV_Jewelry_Necklace_21");
text = gsub(text, "#horde#", "Interface\\AddOns\\AtlasLoot\\Images\\Horde");
text = gsub(text, "#alliance#", "Interface\\AddOns\\AtlasLoot\\Images\\Alliance");
text = gsub(text, "#darkmoon#", "Interface\\Icons\\INV_Misc_Ticket_Darkmoon_01");
text = gsub(text, "#ccombat#", "Interface\\Icons\\INV_Jewelry_Talisman_06");
text = gsub(text, "#ctactical#", "Interface\\Icons\\INV_Jewelry_Amulet_02");
text = gsub(text, "#clogistics#", "Interface\\Icons\\INV_Jewelry_Necklace_16");
text = gsub(text, "#cremulos#", "Interface\\Icons\\INV_Jewelry_Necklace_14");
text = gsub(text, "#ccenarius#", "Interface\\Icons\\INV_Jewelry_Necklace_12");
text = gsub(text, "#zandalar#", "Interface\\Icons\\INV_Misc_Coin_08");
return text;
end
+289
View File
@@ -0,0 +1,289 @@
--[[
File containing functions related to the wish list.
Functions:
AtlasLoot_ShowWishList()
AtlasLoot_AddToWishlist(itemID, itemTexture, itemName, lootPage, sourcePage)
AtlasLoot_DeleteFromWishList(itemID)
AtlasLoot_WishListSort()
AtlasLoot_WishListSortCheck(temp1, temp2)
local RecursiveSearchZoneName(dataTable, zoneID)
AtlasLoot_GetWishListSubheading(dataID)
AtlasLoot_CategorizeWishList(wlTable)
AtlasLoot_GetWishListPage(page)
]]
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
AtlasLoot_WishList = nil;
local currentPage = 1;
-- Colours stored for code readability
local GREY = "|cff999999";
local RED = "|cffff0000";
local WHITE = "|cffFFFFFF";
local GREEN = "|cff1eff00";
local PURPLE = "|cff9F3FFF";
local BLUE = "|cff0070dd";
local ORANGE = "|cffFF8400";
--[[
AtlasLoot_ShowWishList()
Displays the WishList
]]
function AtlasLoot_ShowWishList()
AtlasLoot_ShowItemsFrame("WishList", "WishListPage"..currentPage, AL["WishList"], pFrame);
end
--[[
AtlasLoot_AddToWishlist(itemID, itemTexture, itemName, lootPage, sourcePage)
Looks for an empty slot in the wishlist and slots the item in
]]
function AtlasLoot_AddToWishlist(itemID, itemTexture, itemName, lootPage, sourcePage)
for _, v in ipairs(AtlasLootCharDB["WishList"]) do
if v[1] == itemID then
DEFAULT_CHAT_FRAME:AddMessage(BLUE..AL["AtlasLoot"]..": "..AtlasLoot_FixText(itemName)..RED..AL[" already in the WishList!"]);
return;
end
end
table.insert(AtlasLootCharDB["WishList"], { itemID, itemTexture, itemName, lootPage, sourcePage });
DEFAULT_CHAT_FRAME:AddMessage(BLUE..AL["AtlasLoot"]..": "..AtlasLoot_FixText(itemName)..GREY..AL[" added to the WishList."]);
AtlasLoot_WishList = AtlasLoot_CategorizeWishList(AtlasLootCharDB["WishList"]);
end
--[[
AtlasLoot_DeleteFromWishList(itemID)
Deletes the specified items from the wishlist
]]
function AtlasLoot_DeleteFromWishList(itemID)
if itemID and itemID == 0 then return end
for i, v in ipairs(AtlasLootCharDB["WishList"]) do
if v[1] == itemID then
DEFAULT_CHAT_FRAME:AddMessage(RED..AL["AtlasLoot"]..": "..AtlasLoot_FixText(v[3])..GREY..AL[" deleted from the WishList."]);
table.remove(AtlasLootCharDB["WishList"], i);
break;
end
end
AtlasLoot_WishList = AtlasLoot_CategorizeWishList(AtlasLootCharDB["WishList"]);
AtlasLootItemsFrame:Hide();
AtlasLoot_ShowItemsFrame("WishList", "WishListPage"..currentPage, AL["WishList"], pFrame);
end
--[[
AtlasLoot_WishListSort()
Sorts the Wishlist
]]
function AtlasLoot_WishListSort()
j=0;
P=2;
temp={};
check=false;
while(P<31) do
temp=AtlasLootCharDB["WishList"][P];
j=P;
check=AtlasLoot_WishListSortCheck(AtlasLootCharDB["WishList"][j-1], temp);
while((j>1) and check) do
AtlasLootCharDB["WishList"][j] = AtlasLootCharDB["WishList"][j-1];
j=j-1;
check=AtlasLoot_WishListSortCheck(AtlasLootCharDB["WishList"][j-1], temp);
end
AtlasLootCharDB["WishList"][j]=temp;
P=P+1;
end
end
--[[
AtlasLoot_WishListSortCheck(temp1, temp2)
Checks if temp1 > temp2
Sorts by rarity, then alphabetically.
]]
function AtlasLoot_WishListSortCheck(temp1, temp2)
if (temp1 == nil) then
return false;
elseif (temp2 == nil) then
return false;
end
if temp2[1] == 0 then
return false;
elseif temp1[1] == 0 then
return true;
else
prefix1=string.lower(string.sub(temp1[3], 1, 10));
prefix2=string.lower(string.sub(temp2[3], 1, 10));
if prefix1 ~= prefix2 then
if prefix1 == "|cffff0000" then
return false;
elseif (prefix1 == "|cffff8000") and (prefix2 ~= "|cffff0000") then
return false;
elseif (prefix1 == "|cffa335ee") then
if (prefix2 == "|cffff8000") or (prefix2 == "|cffff0000") then
return true;
else
return false;
end
elseif (prefix1 == "|cff0070dd") then
if (prefix2 == "|cffa335ee") or (prefix2 == "|cffff8000") or (prefix2 == "|cffff0000") then
return true;
else
return false;
end
elseif (prefix1 == "|cff1eff00") then
if (prefix2 == "|cffffffff") or (prefix2 == "|cff9d9d9d") then
return false;
else
return true;
end
elseif (prefix1 == "|cff9d9d9d") then
return true;
elseif (prefix1 == "|cffffffff") and (prefix2~="|cff9d9d9d") then
return true;
else
return false;
end
else
if(temp1[3] > temp2[3]) then
return true;
else
return false;
end
end
end
end
--[[
local RecursiveSearchZoneName(dataTable, zoneID):
A recursive function iterate AtlasLoot_DewDropDown table for the zone name
]]
local function RecursiveSearchZoneName(dataTable, zoneID)
if(dataTable[2] == zoneID) then
return dataTable[1];
end
for _, v in pairs(dataTable) do
if type(v) == "table" then
local result = RecursiveSearchZoneName(v, zoneID);
if result then return result end
end
end
end
--[[
AtlasLoot_GetWishListSubheading(dataID):
Iterating through dropdown data tables to search backward for zone name with specified dataID
]]
function AtlasLoot_GetWishListSubheading(dataID)
if not AtlasLoot_DewDropDown or not AtlasLoot_DewDropDown_SubTables then return end
local zoneID;
for subKey, subTable in pairs(AtlasLoot_DewDropDown_SubTables) do
for _, t in ipairs(subTable) do
if t[2] == dataID then
zoneID = subKey;
break;
end
end
if zoneID then break end
end
return RecursiveSearchZoneName(AtlasLoot_DewDropDown, zoneID or dataID);
end
function AtlasLoot_GetWishListSubheadingBoss(dataID)
if not AtlasLoot_TableNames then return end
local zoneID ;
for i, v in pairs(AtlasLoot_TableNamesBoss) do
for j,k in pairs(v) do
if dataID == j then
zoneID = k[1]
break;
end
end
end
--[[for i, v in pairs(AtlasLoot_TableNames) do
if dataID == i then
zoneID = v[1]
break;
end
end]]
return zoneID;
end
function GetLootTableParent(dataID)
local parentID ;
for i, v in pairs(AtlasLoot_TableNamesBoss) do
for j,k in pairs(v) do
if dataID == j then
parentID = i
break;
end
end
end
return parentID;
end
--[[
AtlasLoot_CategorizeWishList(wlTable):
Group items with zone/event name etc, and format them by adding subheadings and empty lines
This function returns a single table with all items, use AtlasLoot_GetWishListPage to split it
wlTable: is AtlasLootCharDB["WishList"], parameterized for flexible
]]
function AtlasLoot_CategorizeWishList(wlTable)
local subheadings, categories, result = {}, {}, {};
for _, v in pairs(wlTable) do
if v[5] and v[5] ~= "" then
local dataID = strsplit("|", v[5]);
-- Build subheading table
if not subheadings[dataID] then
subheadings[dataID] = AtlasLoot_GetWishListSubheadingBoss(dataID);
-- If search failed, replace ID like "Aldor2" to "Aldor1" and try again
if not subheadings[dataID] and string.find(dataID, "^%a+%d?$") then
subheadings[dataID] = AtlasLoot_GetWishListSubheading(string.sub(dataID, 1, string.len(dataID) - 1).."1");
end
-- If still cant find it, mark it with Unknown
if not subheadings[dataID] then subheadings[dataID] = AL["Unknown"] end
end
-- Build category tables
if not categories[subheadings[dataID]] then categories[subheadings[dataID]] = {} end
table.insert(categories[subheadings[dataID]], v);
end
end
-- Sort and flatten categories
for k, v in pairs(categories) do
-- Add a empty line between categories when in a same column
if table.getn(result) > 1 and (table.getn(result) - math.floor(table.getn(result)/15)*15) > 0 then table.insert(result, { 0, "", "", "" }) end
-- If a subheading is on the last row of a column, push it to next column
if ((table.getn(result) + 1) - math.floor((table.getn(result) + 1)/15)*15) == 0 then table.insert(result, { 0, "", "", "" }) end
-- Subheading
table.insert(result, { 0, "INV_Box_01", "=q6="..k, "=q0="..GetLootTableParent(strsplit("|", categories[k][1][5])) });
-- Sort first then add items
table.sort(v, AtlasLoot_WishListSortCheck); -- not works?
for i = 1, table.getn(v) do table.insert(result, v[i]) end
end
collectgarbage();
return result;
end
--[[
AtlasLoot_GetWishListPage(page):
Return partial data of WishList table
page: the page number needed
]]
function AtlasLoot_GetWishListPage(page)
if not AtlasLoot_WishList then AtlasLoot_WishList = AtlasLoot_CategorizeWishList(AtlasLootCharDB["WishList"]) end
-- Calc for maximal pages
local pageMax = math.ceil(table.getn(AtlasLoot_WishList) / 30);
if page < 1 then page = 1 end
if page > pageMax then page = pageMax end
currentPage = page;
-- Table copy
local result = {};
local start = (page - 1) * 30 + 1;
for i = start, start + 29 do
if not AtlasLoot_WishList[i] then break end
table.insert(result, AtlasLoot_WishList[i]);
end
return result, pageMax;
end
+138
View File
@@ -0,0 +1,138 @@
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
local ORANGE = "|cffFF8400";
function AtlasLootWorldEventMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootItemsFrame_BACK"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Abyssal Council
AtlasLootMenuItem_2_Name:SetText(AL["Abyssal Council"]);
AtlasLootMenuItem_2_Extra:SetText(ORANGE..AL["Silithus"]);
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\Spell_Nature_TimeStop");
AtlasLootMenuItem_2.lootpage="AbyssalCouncil";
AtlasLootMenuItem_2:Show();
--Elemental Invasion
AtlasLootMenuItem_3_Name:SetText(AL["Elemental Invasion"]);
AtlasLootMenuItem_3_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Ammo_FireTar");
AtlasLootMenuItem_3.lootpage="ElementalInvasion";
AtlasLootMenuItem_3:Show();
--Children's Week
AtlasLootMenuItem_17_Name:SetText(AL["Children's Week"]);
AtlasLootMenuItem_17_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_17_Icon:SetTexture("Interface\\Icons\\Ability_Hunter_BeastCall");
AtlasLootMenuItem_17.lootpage="ChildrensWeek";
AtlasLootMenuItem_17:Show();
--Feast of Winter Veil
AtlasLootMenuItem_18_Name:SetText(AL["Feast of Winter Veil"]);
AtlasLootMenuItem_18_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_18_Icon:SetTexture("Interface\\Icons\\INV_Holiday_Christmas_Present_01");
AtlasLootMenuItem_18.lootpage="Winterviel1";
AtlasLootMenuItem_18:Show();
--Hallow's End
AtlasLootMenuItem_19_Name:SetText(AL["Hallow's End"]);
AtlasLootMenuItem_19_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_19_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_59");
AtlasLootMenuItem_19.lootpage="Halloween1";
AtlasLootMenuItem_19:Show();
--Harvest Festival
AtlasLootMenuItem_5_Name:SetText(AL["Harvest Festival"]);
AtlasLootMenuItem_5_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_5_Icon:SetTexture("Interface\\Icons\\INV_Misc_Food_Wheat_01");
AtlasLootMenuItem_5.lootpage="HarvestFestival";
AtlasLootMenuItem_5:Show();
--Love is in the Air
AtlasLootMenuItem_20_Name:SetText(AL["Love is in the Air"]);
AtlasLootMenuItem_20_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_20_Icon:SetTexture("Interface\\Icons\\INV_ValentinesBoxOfChocolates02");
AtlasLootMenuItem_20.lootpage="Valentineday";
AtlasLootMenuItem_20:Show();
--Lunar Festival
AtlasLootMenuItem_6_Name:SetText(AL["Lunar Festival"]);
AtlasLootMenuItem_6_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_6_Icon:SetTexture("Interface\\Icons\\INV_Misc_ElvenCoins");
AtlasLootMenuItem_6.lootpage="LunarFestival1";
AtlasLootMenuItem_6:Show();
--Midsummer Fire Festival
AtlasLootMenuItem_21_Name:SetText(AL["Midsummer Fire Festival"]);
AtlasLootMenuItem_21_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_21_Icon:SetTexture("Interface\\Icons\\INV_SummerFest_FireFlower");
AtlasLootMenuItem_21.lootpage="MidsummerFestival";
AtlasLootMenuItem_21:Show();
--Noblegarden
AtlasLootMenuItem_7_Name:SetText(AL["Noblegarden"]);
AtlasLootMenuItem_7_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_7_Icon:SetTexture("Interface\\Icons\\INV_Egg_03");
AtlasLootMenuItem_7.lootpage="Noblegarden";
AtlasLootMenuItem_7:Show();
--Gurubashi Arena Booty Run
AtlasLootMenuItem_4_Name:SetText(AL["Gurubashi Arena Booty Run"]);
AtlasLootMenuItem_4_Extra:SetText(ORANGE..AL["Stranglethorn Vale"]);
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Box_02");
AtlasLootMenuItem_4.lootpage="GurubashiArena";
AtlasLootMenuItem_4:Show();
--Scourge Invasion
AtlasLootMenuItem_22_Name:SetText(AL["Scourge Invasion"]);
AtlasLootMenuItem_22_Extra:SetText(ORANGE..AL["Various Locations"]);
AtlasLootMenuItem_22_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Talisman_13");
AtlasLootMenuItem_22.lootpage="ScourgeInvasionEvent1";
AtlasLootMenuItem_22:Show();
--Stranglethorn Fishing Extravaganza
AtlasLootMenuItem_8_Name:SetText(AL["Stranglethorn Fishing Extravaganza"]);
AtlasLootMenuItem_8_Extra:SetText(ORANGE..AL["Stranglethorn Vale"]);
AtlasLootMenuItem_8_Icon:SetTexture("Interface\\Icons\\INV_Fishingpole_01");
AtlasLootMenuItem_8.lootpage="FishingExtravaganza";
AtlasLootMenuItem_8:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["World Events"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end
function AtlasLootAbyssalCouncilMenu()
for i = 1, 30, 1 do
getglobal("AtlasLootItem_"..i):Hide();
end
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i):Hide();
getglobal("AtlasLootMenuItem_"..i).isheader = false;
end
getglobal("AtlasLootItemsFrame_BACK"):Show();
getglobal("AtlasLootItemsFrame_BACK").lootpage = "WORLDEVENTMENU";
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
getglobal("AtlasLootServerQueryButton"):Hide();
--Templars
AtlasLootMenuItem_2_Name:SetText(AL["Abyssal Council"].." - "..AL["Templars"]);
AtlasLootMenuItem_2_Extra:SetText("");
AtlasLootMenuItem_2_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Talisman_05");
AtlasLootMenuItem_2.lootpage="AbyssalTemplars";
AtlasLootMenuItem_2:Show();
--Dukes
AtlasLootMenuItem_3_Name:SetText(AL["Abyssal Council"].." - "..AL["Dukes"]);
AtlasLootMenuItem_3_Extra:SetText("");
AtlasLootMenuItem_3_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Ring_36");
AtlasLootMenuItem_3.lootpage="AbyssalDukes";
AtlasLootMenuItem_3:Show();
--High Council
AtlasLootMenuItem_4_Name:SetText(AL["Abyssal Council"].." - "..AL["High Council"]);
AtlasLootMenuItem_4_Extra:SetText("");
AtlasLootMenuItem_4_Icon:SetTexture("Interface\\Icons\\INV_Staff_13");
AtlasLootMenuItem_4.lootpage="AbyssalLords";
AtlasLootMenuItem_4:Show();
for i = 1, 30, 1 do
getglobal("AtlasLootMenuItem_"..i.."_Extra"):Show();
end
AtlasLoot_BossName:SetText("|cffFFFFFF"..AL["Abyssal Council"]);
AtlasLoot_SetItemInfoFrame(AtlasLoot_AnchorFrame);
end