From 669427f415a814f19257ef72cdfa2ce7cc2a0db5 Mon Sep 17 00:00:00 2001 From: Lag Date: Thu, 11 Jul 2019 21:47:25 +0200 Subject: [PATCH] add itemQuery into professions and add itemCount --- AtlasLootClassic/Button/Button.lua | 8 + AtlasLootClassic/Button/Item_type.lua | 8 +- AtlasLootClassic/Button/Profession_type.lua | 28 +++- AtlasLootClassic/Data/Profession.lua | 169 +++++++++++--------- 4 files changed, 124 insertions(+), 89 deletions(-) diff --git a/AtlasLootClassic/Button/Button.lua b/AtlasLootClassic/Button/Button.lua index 52e8de00..d3ae8674 100644 --- a/AtlasLootClassic/Button/Button.lua +++ b/AtlasLootClassic/Button/Button.lua @@ -576,6 +576,14 @@ end function Proto:SetDifficultyID(diffID) self.__atlaslootinfo.difficulty = diffID end + +function Proto:GetTypeFunctions() + return button_types[self.__atlaslootinfo.type[1]] +end + +function Proto:GetSecTypeFunctions() + return button_types[self.__atlaslootinfo.secType[1]] +end --################################ -- Enhanced Description --################################ diff --git a/AtlasLootClassic/Button/Item_type.lua b/AtlasLootClassic/Button/Item_type.lua index 27f5904c..d42664ef 100644 --- a/AtlasLootClassic/Button/Item_type.lua +++ b/AtlasLootClassic/Button/Item_type.lua @@ -321,8 +321,14 @@ Query.EventFrame = CreateFrame("FRAME") local function EventFrame_OnEvent(frame, event, arg1, arg2) if event == "GET_ITEM_INFO_RECEIVED" then if arg1 and button_list[arg1] then + local button for i = 1, #button_list[arg1] do - Item.Refresh(button_list[arg1][i]) + button = button_list[arg1][i] + if button.type == "secButton" then + button:GetSecTypeFunctions().Refresh(button_list[arg1][i]) + else + button:GetTypeFunctions().Refresh(button_list[arg1][i]) + end end button_list[arg1] = nil end diff --git a/AtlasLootClassic/Button/Profession_type.lua b/AtlasLootClassic/Button/Profession_type.lua index 0f89e2a9..54c099de 100644 --- a/AtlasLootClassic/Button/Profession_type.lua +++ b/AtlasLootClassic/Button/Profession_type.lua @@ -1,5 +1,6 @@ local AtlasLoot = _G.AtlasLoot local Prof = AtlasLoot.Button:AddType("Profession", "prof") +local ItemQuery = AtlasLoot.Button:GetType("Item").Query local AL = AtlasLoot.Locales local GetAlTooltip = AtlasLoot.Tooltip.GetTooltip local Profession = AtlasLoot.Data.Profession @@ -51,12 +52,14 @@ function Prof.OnSet(button, second) end function Prof.OnClear(button) + ItemQuery:Remove(button) + ItemQuery:Remove(button.secButton) button.Profession = nil button.SpellID = nil - button.tsLink, button.tsName = nil, nil + button.ItemID = nil button.secButton.Profession = nil button.secButton.SpellID = nil - button.secButton.tsLink, button.secButton.tsName = nil, nil + button.secButton.ItemID = nil if button.ExtraFrameShown then AtlasLoot.Button:ExtraItemFrame_ClearFrame() button.ExtraFrameShown = false @@ -93,12 +96,18 @@ function Prof.Refresh(button) local spellName, _, spellTexture = GetSpellInfo(button.SpellID) if Profession.IsProfessionSpell(button.SpellID) then - local itemName, _, itemQuality, _, _, _, _, _, _, itemTexture - if Profession.GetCreatedItemID(button.SpellID) then - itemName, _, itemQuality, _, _, _, _, _, _, itemTexture = GetItemInfo(Profession.GetCreatedItemID(button.SpellID)) + local _, itemName, itemQuality, itemTexture, itemCount + button.ItemID = Profession.GetCreatedItemID(button.SpellID) + if button.ItemID then + itemName, _, itemQuality, _, _, _, _, _, _, itemTexture = GetItemInfo(button.ItemID) + if not itemName then + ItemQuery:Add(button) + return false + end + itemCount = Profession.GetNumCreatedItems(button.SpellID) end itemQuality = itemQuality or 0 - + --ItemQuery button.overlay:Show() button.overlay:SetTexture(WHITE_ICON_FRAME) button.overlay:SetAtlas(LOOT_BORDER_BY_QUALITY[itemQuality] or LOOT_BORDER_BY_QUALITY[LE_ITEM_QUALITY_UNCOMMON]) @@ -110,13 +119,16 @@ function Prof.Refresh(button) else if itemName then - button.name:SetText("|c"..ITEM_COLORS[itemQuality or 0]..itemName) + button.name:SetText("|c"..ITEM_COLORS[itemQuality or 0]..(spellName or itemName)) else button.name:SetText(PROF_COLOR..spellName) end button.extra:SetText(Profession.GetSpellDescription(button.SpellID).." ( "..Profession.GetColorSkillRank(button.SpellID).." )") end - + if itemCount > 1 then + button.count:SetText(itemCount) + button.count:Show() + end button.icon:SetTexture(itemTexture or Profession.GetIcon(button.SpellID) or spellTexture) end diff --git a/AtlasLootClassic/Data/Profession.lua b/AtlasLootClassic/Data/Profession.lua index 81aa0f34..ff24d262 100644 --- a/AtlasLootClassic/Data/Profession.lua +++ b/AtlasLootClassic/Data/Profession.lua @@ -2,6 +2,7 @@ local AtlasLoot = _G.AtlasLoot local Profession = {} AtlasLoot.Data.Profession = Profession local AL = AtlasLoot.Locales +local ALIL = AtlasLoot.IngameLocales local format = string.format @@ -11,19 +12,19 @@ local FORMAT_STRING_SKILL = "|cffff8040%d|r |cffffff00%d|r |cff40bf40%d|r |cff80 local PROFESSION_DEFAULT = 0 local PROFESSION_TEXT = { - [0] = LOC_STRING_DESC2, -- UNKNOWN - [1] = format(LOC_STRING_DESC, GetSpellInfo(3273)), -- First Aid - [2] = format(LOC_STRING_DESC, GetSpellInfo(2018)), -- Blacksmithing - [3] = format(LOC_STRING_DESC, GetSpellInfo(2108)), -- Leatherworking - [4] = format(LOC_STRING_DESC, GetSpellInfo(2259)), -- Alchemy - [5] = format(LOC_STRING_DESC, GetSpellInfo(2366)), -- Herbalism - [6] = format(LOC_STRING_DESC, GetSpellInfo(2550)), -- Cooking - [7] = format(LOC_STRING_DESC, GetSpellInfo(2575)), -- Mining - [8] = format(LOC_STRING_DESC, GetSpellInfo(3908)), -- Tailoring - [9] = format(LOC_STRING_DESC, GetSpellInfo(4036)), -- Engineering - [10] = format(LOC_STRING_DESC, GetSpellInfo(7411)), -- Enchanting - [11] = format(LOC_STRING_DESC, GetSpellInfo(7732)), -- Fishing - [12] = format(LOC_STRING_DESC, GetSpellInfo(8618)), -- Skinning + [0] = LOC_STRING_DESC2, -- UNKNOWN + [1] = format(LOC_STRING_DESC, ALIL["First Aid"]), -- First Aid + [2] = format(LOC_STRING_DESC, ALIL["Blacksmithing"]), -- Blacksmithing + [3] = format(LOC_STRING_DESC, ALIL["Leatherworking"]), -- Leatherworking + [4] = format(LOC_STRING_DESC, ALIL["Alchemy"]), -- Alchemy + [5] = format(LOC_STRING_DESC, ALIL["Herbalism"]), -- Herbalism + [6] = format(LOC_STRING_DESC, ALIL["Cooking"]), -- Cooking + [7] = format(LOC_STRING_DESC, ALIL["Mining"]), -- Mining + [8] = format(LOC_STRING_DESC, ALIL["Tailoring"]), -- Tailoring + [9] = format(LOC_STRING_DESC, ALIL["Engineering"]), -- Engineering + [10] = format(LOC_STRING_DESC, ALIL["Enchanting"]), -- Enchanting + [11] = format(LOC_STRING_DESC, ALIL["Fishing"]), -- Fishing + [12] = format(LOC_STRING_DESC, ALIL["Skinning"]), -- Skinning } Profession.PROFESSION_TEXT = PROFESSION_TEXT @@ -45,7 +46,7 @@ local PROFESSION_ICON = { } local PROFESSION = { - -- [spellID] = { createdItemID, prof, minLvl, maxLvl, reagents{}, reagentsCount{} } + -- [spellID] = { createdItemID, prof, minLvl, maxLvl, reagents{}, reagentsCount{}, numCreatedItems } [10015] = { 7960, 2, 1, 285, 310, {3860,6037,7910,7081,7966,4304}, {30,16,6,4,8,6} }, -- Truesilver Champion [2544] = { 2683, 6, 75, 115, 155, {2674,2678}, {1,1} }, -- Crab Cake [2795] = { 2888, 6, 40, 60, 100, {2886,2894}, {1,1} }, -- Beer Basted Boar Ribs @@ -78,7 +79,7 @@ local PROFESSION = { [3296] = { 3491, 2, 1, 160, 190, {2841,3466,1206,1210,3478,2319}, {8,1,1,1,2,2} }, -- Heavy Bronze Mace [3495] = { 3852, 2, 1, 195, 220, {3575,3577,1705,3466,4234,3486}, {10,4,2,2,2,2} }, -- Golden Iron Destroyer [2164] = { 2312, 3, 70, 105, 135, {4231,2318,2320}, {1,4,2} }, -- Fine Leather Gloves - [3973] = { 4404, 9, 1, 110, 140, {2842}, {1} }, -- Silver Contact + [3973] = { 4404, 9, 1, 110, 140, {2842}, {1}, 4 }, -- Silver Contact [3496] = { 3853, 2, 1, 205, 230, {3859,3466,3486,1705,4234}, {8,2,2,3,3} }, -- Moonsteel Broadsword [3955] = { 4384, 9, 1, 175, 200, {4382,4375,4377,2592}, {1,1,2,2} }, -- Explosive Sheep [3956] = { 4385, 9, 1, 175, 200, {2319,1206,4368}, {4,2,1} }, -- Green Tinted Goggles @@ -131,12 +132,12 @@ local PROFESSION = { [2546] = { 2687, 6, 110, 120, 160, {2677,2678}, {1,1} }, -- Dry Pork Ribs [2547] = { 1082, 6, 125, 135, 175, {1081,1080}, {1,1} }, -- Redridge Goulash [2548] = { 2685, 6, 135, 130, 170, {2677,2692}, {2,1} }, -- Succulent Pork Ribs - [2549] = { 1017, 6, 135, 140, 180, {1015,2665}, {2,1} }, -- Seasoned Wolf Kabob + [2549] = { 1017, 6, 135, 140, 180, {1015,2665}, {2,1}, 2 }, -- Seasoned Wolf Kabob [2386] = { 2569, 8, 1, 90, 125, {2996,2320,2318}, {3,1,1} }, -- Linen Boots [2387] = { 2570, 8, 1, 35, 60, {2996,2320}, {1,1} }, -- Linen Cloak [2657] = { 2840, 7, 1, 25, 70, {2770}, {1} }, -- Smelt Copper [2658] = { 2842, 7, 1, 100, 125, {2775}, {1} }, -- Smelt Silver - [2659] = { 2841, 7, 1, 65, 115, {2840,3576}, {1,1} }, -- Smelt Bronze + [2659] = { 2841, 7, 1, 65, 115, {2840,3576}, {1,1}, 1 }, -- Smelt Bronze [3774] = { 4257, 3, 1, 180, 200, {4236,4234,2321,2605,7071}, {1,5,1,1,1} }, -- Green Leather Belt [3776] = { 4259, 3, 1, 200, 220, {4236,4234,2605,2321}, {2,6,1,1} }, -- Green Leather Bracers [2660] = { 2862, 2, 1, 15, 55, {2835}, {1} }, -- Rough Sharpening Stone @@ -164,7 +165,7 @@ local PROFESSION = { [3397] = { 3726, 6, 1, 150, 190, {3730,2692}, {1,1} }, -- Big Bear Steak [3856] = { 4321, 8, 1, 160, 190, {4305,3182,2321}, {3,1,2} }, -- Spider Silk Slippers [3922] = { 4359, 9, 1, 45, 60, {2840}, {1} }, -- Handful of Copper Bolts - [3923] = { 4360, 9, 1, 60, 90, {2840,4359,4357,2589}, {1,1,2,1} }, -- Rough Copper Bomb + [3923] = { 4360, 9, 1, 60, 90, {2840,4359,4357,2589}, {1,1,2,1}, 1 }, -- Rough Copper Bomb [3924] = { 4361, 9, 1, 80, 110, {2840,2880}, {2,1} }, -- Copper Tube [3925] = { 4362, 9, 1, 80, 110, {4361,4359,4399}, {1,1,1} }, -- Rough Boomstick [3926] = { 4363, 9, 1, 95, 125, {4359,2840,2589}, {2,1,2} }, -- Copper Modulator @@ -172,9 +173,9 @@ local PROFESSION = { [3177] = { 3389, 4, 1, 155, 195, {3355,3820,3372}, {1,1,1} }, -- Elixir of Defense [3841] = { 4308, 8, 1, 85, 120, {2996,2320,2605}, {3,2,1} }, -- Green Linen Bracers [3842] = { 4309, 8, 1, 95, 130, {2996,2321}, {4,2} }, -- Handstitched Linen Britches - [3930] = { 8068, 9, 1, 85, 95, {4364,2840}, {1,1} }, -- Crafted Heavy Shot + [3930] = { 8068, 9, 1, 85, 95, {4364,2840}, {1,1}, 199 }, -- Crafted Heavy Shot [3870] = { 4333, 8, 1, 165, 175, {4305,4340,2321}, {2,2,1} }, -- Dark Silk Shirt - [3962] = { 4390, 9, 1, 175, 215, {3575,4377,4306}, {1,1,1} }, -- Iron Grenade + [3962] = { 4390, 9, 1, 175, 215, {3575,4377,4306}, {1,1,1}, 1 }, -- Iron Grenade [3321] = { 3471, 2, 1, 75, 115, {2840,774,3470}, {8,1,2} }, -- Copper Chain Vest [3868] = { 4331, 8, 1, 150, 185, {2997,5500,2321,2324}, {4,1,4,2} }, -- Phoenix Gloves [3869] = { 4332, 8, 1, 145, 155, {4305,4341,2321}, {1,1,1} }, -- Bright Yellow Shirt @@ -185,7 +186,7 @@ local PROFESSION = { [3840] = { 4307, 8, 1, 60, 95, {2996,2320}, {2,1} }, -- Heavy Linen Gloves [3845] = { 4312, 8, 1, 105, 140, {2996,2318,2321}, {5,2,1} }, -- Soft-soled Linen Boots [9269] = { 7506, 9, 1, 150, 175, {2841,4375,814,818,774}, {6,1,2,1,1} }, -- Gnomish Universal Remote - [9271] = { 6533, 9, 1, 150, 170, {2841,6530,4364}, {2,1,1} }, -- Aquadynamic Fish Attractor + [9271] = { 6533, 9, 1, 150, 170, {2841,6530,4364}, {2,1,1}, 2 }, -- Aquadynamic Fish Attractor [3847] = { 4313, 8, 1, 120, 155, {2997,2318,2321,2604}, {4,2,1,2} }, -- Red Woolen Boots [3848] = { 4314, 8, 1, 135, 170, {2997,2321}, {3,2} }, -- Double-stitched Woolen Shoulders [3849] = { 4315, 8, 1, 145, 180, {2997,2319,2321}, {6,2,2} }, -- Reinforced Woolen Shoulders @@ -238,14 +239,14 @@ local PROFESSION = { [3859] = { 4324, 8, 1, 170, 200, {4305,6260}, {5,4} }, -- Azure Silk Vest [3860] = { 4325, 8, 1, 195, 225, {4305,4291,4337}, {4,1,2} }, -- Boots of the Enchanter [3861] = { 4326, 8, 1, 205, 235, {4305,3827,4291}, {4,1,1} }, -- Long Silken Cloak - [3947] = { 8069, 9, 1, 125, 145, {4377,2841}, {1,1} }, -- Crafted Solid Shot + [3947] = { 8069, 9, 1, 125, 145, {4377,2841}, {1,1}, 199 }, -- Crafted Solid Shot [3949] = { 4379, 9, 1, 155, 180, {4371,4375,4400,2842}, {2,2,1,3} }, -- Silver-plated Shotgun - [3937] = { 4370, 9, 1, 105, 155, {2840,4364,4404}, {3,4,1} }, -- Large Copper Bomb + [3937] = { 4370, 9, 1, 105, 155, {2840,4364,4404}, {3,4,1}, 1 }, -- Large Copper Bomb [3952] = { 4381, 9, 1, 165, 190, {4371,4375,2319,1206}, {1,2,2,1} }, -- Minor Recombobulator [3953] = { 4382, 9, 1, 145, 195, {2841,2319,2592}, {2,1,1} }, -- Bronze Framework [3954] = { 4383, 9, 1, 170, 195, {4371,4375,4400,1705}, {3,3,1,2} }, -- Moonsight Rifle [2741] = { 2849, 2, 85, 145, 175, {2841,2880,2319}, {7,4,1} }, -- Bronze Axe - [3950] = { 4380, 9, 1, 140, 190, {4377,2841,4404}, {2,3,1} }, -- Big Bronze Bomb + [3950] = { 4380, 9, 1, 140, 190, {4377,2841,4404}, {2,3,1}, 1 }, -- Big Bronze Bomb [3323] = { 3472, 2, 1, 80, 120, {2840,3470}, {8,2} }, -- Runed Copper Gauntlets [3170] = { 3382, 4, 1, 60, 100, {2447,2449,3371}, {1,2,1} }, -- Weak Troll's Blood Potion [3171] = { 3383, 4, 1, 120, 160, {785,2450,3371}, {1,2,1} }, -- Elixir of Wisdom @@ -253,7 +254,7 @@ local PROFESSION = { [3330] = { 3481, 2, 1, 155, 185, {2841,2842,3478}, {8,2,2} }, -- Silvered Bronze Shoulders [3331] = { 3482, 2, 1, 160, 190, {2841,2842,3478}, {6,1,2} }, -- Silvered Bronze Boots [3304] = { 3576, 7, 1, 50, 75, {2771}, {1} }, -- Smelt Tin - [3967] = { 4394, 9, 1, 190, 230, {3575,4377,4404}, {3,3,1} }, -- Big Iron Bomb + [3967] = { 4394, 9, 1, 190, 230, {3575,4377,4404}, {3,3,1}, 1 }, -- Big Iron Bomb [3968] = { 4395, 9, 1, 215, 235, {4377,3575,4389}, {3,2,1} }, -- Goblin Land Mine [3969] = { 4396, 9, 1, 220, 240, {4382,4387,4389,3864,7191}, {1,4,4,2,1} }, -- Mechanical Dragonling [3370] = { 3662, 6, 1, 120, 160, {2924,2678}, {1,1} }, -- Crocolisk Steak @@ -291,7 +292,7 @@ local PROFESSION = { [3940] = { 4373, 9, 1, 145, 170, {2319,1210}, {4,2} }, -- Shadow Goggles [3761] = { 4243, 3, 1, 115, 145, {4231,2318,2320}, {3,6,4} }, -- Fine Leather Tunic [3230] = { 2457, 4, 1, 80, 120, {2452,765,3371}, {1,1,1} }, -- Elixir of Minor Agility - [3371] = { 3220, 6, 1, 100, 140, {3173,3172,3174}, {1,1,1} }, -- Blood Sausage + [3371] = { 3220, 6, 1, 100, 140, {3173,3172,3174}, {1,1,1}, 1 }, -- Blood Sausage [3372] = { 3663, 6, 1, 130, 170, {1468,2692}, {2,1} }, -- Murloc Fin Soup [3373] = { 3664, 6, 1, 160, 200, {3667,2692}, {1,1} }, -- Crocolisk Gumbo [3377] = { 3666, 6, 1, 150, 190, {2251,2692}, {2,1} }, -- Gooey Spider Cake @@ -320,8 +321,8 @@ local PROFESSION = { [3978] = { 4406, 9, 1, 135, 160, {4371,1206}, {1,1} }, -- Standard Scope [4508] = { 4596, 4, 1, 80, 120, {3164,2447,3371}, {1,1,1} }, -- Discolored Healing Potion [3918] = { 4357, 9, 1, 20, 40, {2835}, {1} }, -- Rough Blasting Powder - [3919] = { 4358, 9, 1, 30, 60, {4357,2589}, {2,1} }, -- Rough Dynamite - [3920] = { 8067, 9, 1, 30, 60, {4357,2840}, {1,1} }, -- Crafted Light Shot + [3919] = { 4358, 9, 1, 30, 60, {4357,2589}, {2,1}, 1 }, -- Rough Dynamite + [3920] = { 8067, 9, 1, 30, 60, {4357,2840}, {1,1}, 199 }, -- Crafted Light Shot [3852] = { 4318, 8, 1, 150, 180, {2997,2321,3383}, {4,3,1} }, -- Gloves of Meditation [5244] = { 5081, 3, 1, 70, 100, {5082,2318,2320}, {3,4,1} }, -- Kodo Hide Bag [4094] = { 4457, 6, 1, 215, 255, {3404,2692}, {1,1} }, -- Barbecued Buzzard Wing @@ -371,8 +372,8 @@ local PROFESSION = { [7421] = { 6218, 10, 1, 5, 10, {6217,10940,10938}, {1,1,1} }, -- Runed Copper Rod [7776] = { nil, 10, 1, 115, 155, {10939,10938}, {1,1} }, -- Enchant Chest - Lesser Mana [7745] = { nil, 10, 1, 130, 170, {10940,10978}, {4,1} }, -- Enchant 2H Weapon - Minor Impact - [7934] = { 6452, 1, 1, 80, 150, {1475}, {1} }, -- Anti-Venom - [7935] = { 6453, 1, 1, 130, 200, {1288}, {1} }, -- Strong Anti-Venom + [7934] = { 6452, 1, 1, 80, 150, {1475}, {1}, 2 }, -- Anti-Venom + [7935] = { 6453, 1, 1, 130, 200, {1288}, {1}, 2 }, -- Strong Anti-Venom [7643] = { 6264, 8, 1, 140, 175, {2997,2321,2604}, {5,3,3} }, -- Greater Adept's Robe [7786] = { nil, 10, 1, 120, 160, {10940,10939}, {4,2} }, -- Enchant Weapon - Minor Beastslayer [7953] = { 6466, 3, 1, 120, 150, {6470,4231,2321}, {8,1,1} }, -- Deviate Scale Cloak @@ -382,7 +383,7 @@ local PROFESSION = { [8776] = { 7026, 8, 1, 50, 85, {2996,2320}, {1,1} }, -- Linen Belt [7408] = { 6214, 2, 1, 105, 145, {2840,2880,2318}, {12,2,2} }, -- Heavy Copper Maul [7845] = { 6373, 4, 1, 165, 205, {6371,3356,3372}, {2,1,1} }, -- Elixir of Firepower - [6415] = { 5476, 6, 1, 90, 130, {5468,2678}, {1,1} }, -- Fillet of Frenzy + [6415] = { 5476, 6, 1, 90, 130, {5468,2678}, {1,1}, 1 }, -- Fillet of Frenzy [7639] = { 6263, 8, 1, 125, 160, {2997,2321,6260}, {4,2,2} }, -- Blue Overalls [7928] = { 6450, 1, 1, 150, 210, {4306}, {1} }, -- Silk Bandage [6618] = { 5633, 4, 1, 195, 235, {5637,3356,3372}, {1,1,1} }, -- Great Rage Potion @@ -403,9 +404,9 @@ local PROFESSION = { [7221] = { 6042, 2, 1, 180, 210, {3575,3478}, {6,4} }, -- Iron Shield Spike [8762] = { 7050, 8, 1, 170, 180, {4305,2321}, {3,2} }, -- Silk Headband [6413] = { 5473, 6, 1, 60, 100, {5466}, {1} }, -- Scorpid Surprise - [6414] = { 5474, 6, 1, 75, 115, {5467,2678}, {1,1} }, -- Roasted Kodo Meat - [6418] = { 5479, 6, 1, 140, 180, {5470,2692}, {1,1} }, -- Crispy Lizard Tail - [6419] = { 5480, 6, 1, 150, 190, {5471,2678}, {1,4} }, -- Lean Venison + [6414] = { 5474, 6, 1, 75, 115, {5467,2678}, {1,1}, 1 }, -- Roasted Kodo Meat + [6418] = { 5479, 6, 1, 140, 180, {5470,2692}, {1,1}, 1 }, -- Crispy Lizard Tail + [6419] = { 5480, 6, 1, 150, 190, {5471,2678}, {1,4}, 1 }, -- Lean Venison [7222] = { 6043, 2, 1, 190, 215, {3575,3478,1705}, {4,2,1} }, -- Iron Counterweight [7428] = { nil, 10, 1, 80, 120, {10938,10940}, {1,1} }, -- Enchant Bracer - Minor Deflect [7771] = { nil, 10, 1, 110, 150, {10940,10939}, {3,1} }, -- Enchant Cloak - Minor Protection @@ -416,7 +417,7 @@ local PROFESSION = { [7630] = { 6240, 8, 1, 80, 115, {2996,2320,6260}, {3,1,1} }, -- Blue Linen Vest [7156] = { 5966, 3, 1, 210, 230, {4234,4236,4291}, {4,1,1} }, -- Guardian Gloves [7213] = { 6038, 6, 1, 215, 255, {4655,2692}, {1,1} }, -- Giant Clam Scorcho - [6417] = { 5478, 6, 1, 130, 170, {5051}, {1} }, -- Dig Rat Stew + [6417] = { 5478, 6, 1, 130, 170, {5051}, {1}, 1 }, -- Dig Rat Stew [8607] = { 6890, 6, 1, 80, 120, {3173}, {1} }, -- Smoked Bear Meat [8795] = { 7060, 8, 1, 210, 240, {4305,7072,6260,4291}, {6,2,2,2} }, -- Azure Shoulders [8804] = { 7064, 8, 1, 225, 255, {4305,7068,6371,4304,2604,4291}, {6,2,2,2,4,2} }, -- Crimson Silk Gloves @@ -432,8 +433,8 @@ local PROFESSION = { [7828] = { 4594, 6, 1, 190, 230, {6362}, {1} }, -- Rockscale Cod [8895] = { 7189, 9, 1, 245, 265, {10026,10559,4234,9061,10560}, {1,2,4,2,1} }, -- Goblin Rocket Boots [8339] = { 6714, 9, 1, 115, 130, {4364,2592}, {4,1} }, -- EZ-Thro Dynamite - [6416] = { 5477, 6, 1, 90, 130, {5469,4536}, {1,1} }, -- Strider Stew - [8768] = { 7071, 2, 1, 150, 155, {3575}, {1} }, -- Iron Buckle + [6416] = { 5477, 6, 1, 90, 130, {5469,4536}, {1,1}, 1 }, -- Strider Stew + [8768] = { 7071, 2, 1, 150, 155, {3575}, {1}, 1 }, -- Iron Buckle [7753] = { 4592, 6, 1, 90, 130, {6289}, {1} }, -- Longjaw Mud Snapper [7754] = { 6316, 6, 1, 90, 130, {6317,2678}, {1,1} }, -- Loch Frenzy Delight [7755] = { 4593, 6, 1, 140, 180, {6308}, {1} }, -- Bristle Whisker Catfish @@ -543,7 +544,7 @@ local PROFESSION = { [10487] = { 8173, 3, 1, 220, 240, {4304,4291}, {5,1} }, -- Thick Armor Kit [10518] = { 8198, 3, 1, 230, 250, {4304,8167,8343}, {8,12,1} }, -- Turtle Scale Bracers [10574] = { 8215, 3, 1, 270, 290, {4304,8153,8172}, {16,6,2} }, -- Wild Leather Cloak - [12584] = { 10558, 9, 1, 150, 190, {3577}, {1} }, -- Gold Power Core + [12584] = { 10558, 9, 1, 150, 190, {3577}, {1}, 2 }, -- Gold Power Core [10507] = { 8176, 3, 1, 225, 245, {4304,4291}, {5,2} }, -- Nightscape Headband [10570] = { 8208, 3, 1, 270, 290, {4304,8154,8343}, {10,20,2} }, -- Tough Scorpid Helm [9918] = { 7964, 2, 1, 200, 210, {7912}, {1} }, -- Solid Sharpening Stone @@ -570,13 +571,13 @@ local PROFESSION = { [10533] = { 8205, 3, 1, 240, 260, {4304,8154,4291}, {10,4,2} }, -- Tough Scorpid Bracers [11448] = { 6149, 4, 1, 220, 260, {3358,3821,3372}, {1,1,1} }, -- Greater Mana Potion [11449] = { 8949, 4, 1, 205, 245, {3820,3821,3372}, {1,1,1} }, -- Elixir of Agility - [12621] = { 10513, 9, 1, 245, 285, {3860,10505}, {2,2} }, -- Mithril Gyro-Shot + [12621] = { 10513, 9, 1, 245, 285, {3860,10505}, {2,2}, 199 }, -- Mithril Gyro-Shot [12599] = { 10561, 9, 1, 215, 255, {3860}, {3} }, -- Mithril Casing [10529] = { 8210, 3, 1, 240, 260, {4304,8153,8172}, {10,1,1} }, -- Wild Leather Shoulders - [12596] = { 10512, 9, 1, 210, 250, {3860,10505}, {1,1} }, -- Hi-Impact Mithril Slugs + [12596] = { 10512, 9, 1, 210, 250, {3860,10505}, {1,1}, 199 }, -- Hi-Impact Mithril Slugs [12597] = { 10546, 9, 1, 230, 250, {10559,7909,4304}, {1,2,2} }, -- Deadly Scope [11447] = { 8827, 4, 1, 190, 230, {6370,3357,3372}, {1,1,1} }, -- Elixir of Waterwalking - [12619] = { 10562, 9, 1, 235, 275, {10561,10560,10505}, {2,1,2} }, -- Hi-Explosive Bomb + [12619] = { 10562, 9, 1, 235, 275, {10561,10560,10505}, {2,1,2}, 3 }, -- Hi-Explosive Bomb [9070] = { 7283, 3, 1, 125, 150, {7286,2319,2321}, {12,4,1} }, -- Black Whelp Cloak [12048] = { 9998, 8, 1, 220, 250, {4339,4291}, {2,3} }, -- Black Mageweave Vest [10564] = { 8207, 3, 1, 260, 280, {4304,8154,8343}, {12,16,2} }, -- Tough Scorpid Shoulders @@ -617,7 +618,7 @@ local PROFESSION = { [12065] = { 10050, 8, 1, 240, 270, {4339,4291}, {4,2} }, -- Mageweave Bag [12259] = { 10423, 2, 1, 180, 205, {2841,2842,3478}, {12,4,2} }, -- Silvered Bronze Leggings [12091] = { 10040, 8, 1, 255, 265, {4339,8343}, {5,3} }, -- White Wedding Dress - [12586] = { 10507, 9, 1, 175, 195, {10505,4306}, {1,1} }, -- Solid Dynamite + [12586] = { 10507, 9, 1, 175, 195, {10505,4306}, {1,1}, 1 }, -- Solid Dynamite [12591] = { 10560, 9, 1, 200, 240, {3860,4338,10505}, {1,1,1} }, -- Unstable Trigger [12081] = { 10030, 8, 1, 255, 285, {4339,4589,8343}, {3,6,2} }, -- Admiral's Hat [12088] = { 10044, 8, 1, 260, 290, {4339,7077,8343,4304}, {5,1,3,2} }, -- Cindercloth Boots @@ -641,7 +642,7 @@ local PROFESSION = { [12760] = { 10646, 9, 1, 205, 245, {4338,10505,10560}, {1,3,1} }, -- Goblin Sapper Charge [12083] = { 10032, 8, 1, 255, 285, {4339,7079,8343}, {4,4,2} }, -- Stormcloth Headband [12084] = { 10033, 8, 1, 255, 285, {4339,2604,8343}, {4,2,2} }, -- Red Mageweave Headband - [12603] = { 10514, 9, 1, 215, 255, {10561,10560,10505}, {1,1,1} }, -- Mithril Frag Bomb + [12603] = { 10514, 9, 1, 215, 255, {10561,10560,10505}, {1,1,1}, 2 }, -- Mithril Frag Bomb [12718] = { 10543, 9, 1, 225, 245, {3860,3864,7068}, {8,1,4} }, -- Goblin Construction Helmet [12062] = { 10010, 8, 1, 235, 265, {4339,7079,8343}, {4,2,2} }, -- Stormcloth Pants [11472] = { 9206, 4, 1, 260, 300, {8838,8846,8925}, {1,1,1} }, -- Elixir of Giants @@ -690,7 +691,7 @@ local PROFESSION = { [12061] = { 10056, 8, 1, 220, 230, {4339,6261,8343}, {1,1,1} }, -- Orange Mageweave Shirt [13890] = { nil, 10, 1, 245, 285, {11177,7909,11174}, {1,1,1} }, -- Enchant Boots - Minor Speed [13905] = { nil, 10, 1, 250, 290, {11175,11176}, {1,2} }, -- Enchant Shield - Greater Spirit - [12754] = { 10586, 9, 1, 235, 275, {10561,9061,10507,10560}, {1,1,6,1} }, -- The Big One + [12754] = { 10586, 9, 1, 235, 275, {10561,9061,10507,10560}, {1,1,6,1}, 1 }, -- The Big One [13501] = { nil, 10, 1, 155, 195, {11083}, {2} }, -- Enchant Bracer - Lesser Stamina [12907] = { 10726, 9, 1, 255, 275, {3860,6037,10558,7910,4338}, {10,4,1,2,4} }, -- Gnomish Mind Control Cap [13380] = { nil, 10, 1, 135, 175, {10998,10940}, {1,6} }, -- Enchant 2H Weapon - Lesser Spirit @@ -715,7 +716,7 @@ local PROFESSION = { [12260] = { 10421, 2, 1, 15, 55, {2840}, {4} }, -- Rough Copper Vest [12594] = { 10500, 9, 1, 225, 245, {4385,3864,7068,4234}, {1,2,2,4} }, -- Fire Goggles [12595] = { 10508, 9, 1, 225, 245, {10559,10560,4400,3860,7068}, {1,1,1,4,2} }, -- Mithril Blunderbuss - [13028] = { 10841, 6, 1, 215, 255, {3821,159}, {1,1} }, -- Goldthorn Tea + [13028] = { 10841, 6, 1, 215, 255, {3821,159}, {1,1}, 3 }, -- Goldthorn Tea [14379] = { 11128, 2, 1, 155, 160, {3577,3478}, {1,2} }, -- Golden Rod [14380] = { 11144, 2, 1, 205, 210, {6037,3486}, {1,1} }, -- Truesilver Rod [12074] = { 10027, 8, 1, 245, 275, {4339,8343}, {3,2} }, -- Black Mageweave Shoulders @@ -774,7 +775,7 @@ local PROFESSION = { [12715] = { 10644, 9, 1, 205, 205, {10648,10647}, {1,1} }, -- Goblin Rocket Fuel Recipe [12717] = { 10542, 9, 1, 225, 245, {3860,3864,7067}, {8,1,4} }, -- Goblin Mining Helmet [13846] = { nil, 10, 1, 240, 280, {11174,11137}, {3,1} }, -- Enchant Bracer - Greater Spirit - [12719] = { 10579, 9, 1, 210, 250, {3030,10505,3860}, {100,2,2} }, -- Explosive Arrow + [12719] = { 10579, 9, 1, 210, 250, {3030,10505,3860}, {100,2,2}, 99 }, -- Explosive Arrow [13617] = { nil, 10, 1, 170, 210, {11083,3356}, {1,3} }, -- Enchant Gloves - Herbalism [13937] = { nil, 10, 1, 260, 300, {11178,11176}, {2,2} }, -- Enchant 2H Weapon - Greater Impact [13644] = { nil, 10, 1, 190, 230, {11083}, {4} }, -- Enchant Boots - Lesser Stamina @@ -841,7 +842,7 @@ local PROFESSION = { [16724] = { 12633, 2, 1, 320, 340, {12359,12655,6037,3577,12800}, {20,4,6,6,2} }, -- Whitesoul Helm [16731] = { 12613, 2, 1, 320, 340, {12359,12360,7910}, {40,2,1} }, -- Runic Breastplate [16732] = { 12614, 2, 1, 320, 340, {12359,12360,7910}, {40,2,1} }, -- Runic Plate Leggings - [15910] = { 12215, 6, 1, 240, 280, {12204,3713,159}, {2,1,1} }, -- Heavy Kodo Stew + [15910] = { 12215, 6, 1, 240, 280, {12204,3713,159}, {2,1,1}, 1 }, -- Heavy Kodo Stew [16665] = { 12611, 2, 1, 320, 340, {12359,12360,2842}, {20,2,10} }, -- Runic Plate Boots [18242] = { 13929, 6, 1, 280, 320, {13756,2692}, {1,2} }, -- Hot Smoked Bass [16661] = { 12632, 2, 1, 315, 335, {12359,12655,7080,12361}, {20,4,4,4} }, -- Storm Gauntlets @@ -873,7 +874,7 @@ local PROFESSION = { [16960] = { 12764, 2, 1, 285, 310, {12359,12644,8170}, {16,2,4} }, -- Thorium Greatsword [16965] = { 12769, 2, 1, 295, 320, {12359,12803,8153,12799,12644,8170}, {30,6,6,6,2,8} }, -- Bleakwood Hew [16971] = { 12775, 2, 1, 305, 330, {12359,12644,8170}, {40,6,6} }, -- Huge Thorium Battleaxe - [15861] = { 12212, 6, 1, 215, 255, {12202,159,4536}, {1,1,2} }, -- Jungle Stew + [15861] = { 12212, 6, 1, 215, 255, {12202,159,4536}, {1,1,2}, 1 }, -- Jungle Stew [16648] = { 12415, 2, 1, 290, 310, {12359,7077,7910}, {18,2,1} }, -- Radiant Breastplate [16649] = { 12425, 2, 1, 290, 310, {12359,7910}, {20,1} }, -- Imperial Plate Bracers [16980] = { 12779, 2, 1, 310, 335, {12359,12799,12644,8170}, {30,2,2,4} }, -- Rune Edge @@ -939,7 +940,7 @@ local PROFESSION = { [19073] = { 15072, 3, 1, 300, 320, {8170,15423,14341}, {8,8,1} }, -- Chimeric Leggings [18240] = { 13928, 6, 1, 280, 320, {13755,3713}, {1,1} }, -- Grilled Squid [17566] = { 12803, 4, 1, 275, 290, {7076}, {1} }, -- Transmute: Earth to Life - [19799] = { 16005, 9, 1, 305, 325, {15994,11371,15992,14047}, {2,1,3,3} }, -- Dark Iron Bomb + [19799] = { 16005, 9, 1, 305, 325, {15994,11371,15992,14047}, {2,1,3,3}, 2 }, -- Dark Iron Bomb [17564] = { 12808, 4, 1, 275, 290, {7080}, {1} }, -- Transmute: Water to Undeath [18414] = { 14100, 8, 1, 285, 315, {14048,3577,14341}, {5,2,1} }, -- Brightcloth Robe [17637] = { 13512, 4, 1, 315, 330, {13463,13465,13468,8925}, {30,10,1,1} }, -- Flask of Supreme Power @@ -970,7 +971,7 @@ local PROFESSION = { [17636] = { 13511, 4, 1, 315, 330, {13463,13467,13468,8925}, {30,10,1,1} }, -- Flask of Distilled Wisdom [17578] = { 13459, 4, 1, 305, 345, {3824,13463,8925}, {1,1,1} }, -- Greater Shadow Protection Potion [17570] = { 13455, 4, 1, 295, 335, {13423,10620,8925}, {3,1,1} }, -- Greater Stoneshield Potion - [19669] = { 15872, 2, 1, 275, 285, {12360,12644}, {1,1} }, -- Arcanite Skeleton Key + [19669] = { 15872, 2, 1, 275, 285, {12360,12644}, {1,1}, 1 }, -- Arcanite Skeleton Key [22808] = { 18294, 4, 1, 230, 270, {7972,8831,8925}, {1,2,1} }, -- Elixir of Greater Water Breathing [20016] = { nil, 10, 1, 300, 340, {16203,16204}, {2,4} }, -- Enchant Shield - Superior Spirit [19793] = { 15996, 9, 1, 285, 305, {12803,15994,10558,8170}, {1,4,1,1} }, -- Lifelike Mechanical Toad @@ -1016,7 +1017,7 @@ local PROFESSION = { [19084] = { 15063, 3, 1, 310, 330, {8170,15417,14341}, {30,8,1} }, -- Devilsaur Gauntlets [19085] = { 15050, 3, 1, 310, 330, {8170,15416,15407,14341}, {40,60,1,2} }, -- Black Dragonscale Breastplate [19086] = { 15066, 3, 1, 310, 330, {8170,15420,1529,15407,14341}, {40,120,1,1,1} }, -- Ironfeather Breastplate - [19790] = { 15993, 9, 1, 280, 300, {15994,12359,15992,14047}, {1,3,3,3} }, -- Thorium Grenade + [19790] = { 15993, 9, 1, 280, 300, {15994,12359,15992,14047}, {1,3,3,3}, 2 }, -- Thorium Grenade [19791] = { 15994, 9, 1, 280, 300, {12359,14047}, {3,1} }, -- Thorium Widget [19074] = { 15069, 3, 1, 305, 325, {8170,15422,14341}, {6,8,1} }, -- Frostsaber Leggings [18401] = { 14048, 8, 1, 255, 260, {14047}, {5} }, -- Bolt of Runecloth @@ -1046,7 +1047,7 @@ local PROFESSION = { [20035] = { nil, 10, 1, 320, 360, {16203,14344}, {12,2} }, -- Enchant 2H Weapon - Major Spirit [20013] = { nil, 10, 1, 315, 355, {16203,16204}, {4,4} }, -- Enchant Gloves - Greater Strength [20036] = { nil, 10, 1, 320, 360, {16203,14344}, {12,2} }, -- Enchant 2H Weapon - Major Intellect - [19800] = { 15997, 9, 1, 305, 325, {12359,15992}, {2,1} }, -- Thorium Shells + [19800] = { 15997, 9, 1, 305, 325, {12359,15992}, {2,1}, 199 }, -- Thorium Shells [18402] = { 13856, 8, 1, 270, 300, {14048,14341}, {3,1} }, -- Runecloth Belt [18403] = { 13869, 8, 1, 270, 300, {14048,7079,14341}, {5,2,1} }, -- Frostweave Tunic [18404] = { 13868, 8, 1, 270, 300, {14048,7079,14341}, {5,2,1} }, -- Frostweave Robe @@ -1062,7 +1063,7 @@ local PROFESSION = { [19104] = { 15068, 3, 1, 320, 340, {8170,15422,15407,14341}, {12,12,1,2} }, -- Frostsaber Tunic [19107] = { 15052, 3, 1, 320, 340, {8170,15416,12810,15407,14341}, {40,60,4,1,2} }, -- Black Dragonscale Leggings [20023] = { nil, 10, 1, 315, 355, {16203}, {8} }, -- Enchant Boots - Greater Agility - [19666] = { 15869, 2, 1, 100, 120, {2842,3470}, {1,1} }, -- Silver Skeleton Key + [19666] = { 15869, 2, 1, 100, 120, {2842,3470}, {1,1}, 1 }, -- Silver Skeleton Key [20014] = { nil, 10, 1, 285, 325, {16202,7077,7075,7079,7081,7972}, {2,1,1,1,1,1} }, -- Enchant Cloak - Greater Resistance [19819] = { 16009, 9, 1, 310, 330, {16006,10558,15994,12799}, {2,1,1,1} }, -- Voice Amplification Modulator [19830] = { 16022, 9, 1, 320, 340, {10576,16006,12655,15994,10558,12810}, {1,8,10,6,4,6} }, -- Arcanite Dragonling @@ -1075,9 +1076,9 @@ local PROFESSION = { [20011] = { nil, 10, 1, 320, 360, {16204}, {15} }, -- Enchant Bracer - Superior Stamina [19049] = { 15083, 3, 1, 280, 300, {8170,2325,14341}, {8,1,1} }, -- Wicked Leather Gauntlets [19050] = { 15045, 3, 1, 280, 300, {8170,15412,14341}, {20,25,2} }, -- Green Dragonscale Breastplate - [20626] = { 16766, 6, 1, 265, 305, {7974,2692,1179}, {2,1,1} }, -- Undermine Clam Chowder - [19668] = { 15871, 2, 1, 200, 220, {6037,7966}, {1,1} }, -- Truesilver Skeleton Key - [19831] = { 16040, 9, 1, 320, 340, {16006,12359,14047}, {1,3,1} }, -- Arcane Bomb + [20626] = { 16766, 6, 1, 265, 305, {7974,2692,1179}, {2,1,1}, 1 }, -- Undermine Clam Chowder + [19668] = { 15871, 2, 1, 200, 220, {6037,7966}, {1,1}, 1 }, -- Truesilver Skeleton Key + [19831] = { 16040, 9, 1, 320, 340, {16006,12359,14047}, {1,3,1}, 2 }, -- Arcane Bomb [19833] = { 16007, 9, 1, 320, 340, {12360,16000,7078,7076,12800,12810}, {10,2,2,2,2,2} }, -- Flawless Arcanite Rifle [20650] = { 4304, 3, 1, 200, 205, {4234}, {6} }, -- Thick Leather [20033] = { nil, 10, 1, 315, 355, {14344,12808}, {4,4} }, -- Enchant Weapon - Unholy Weapon @@ -1091,7 +1092,7 @@ local PROFESSION = { [20890] = { 17015, 2, 1, 320, 340, {11371,17010,11382,12810}, {16,12,2,2} }, -- Dark Iron Reaver [23629] = { 19048, 2, 1, 320, 340, {12360,7076,12803}, {4,6,6} }, -- Heavy Timbermaw Boots [20034] = { nil, 10, 1, 320, 360, {14344,12811}, {4,2} }, -- Enchant Weapon - Crusader - [19667] = { 15870, 2, 1, 150, 170, {3577,3486}, {1,1} }, -- Golden Skeleton Key + [19667] = { 15870, 2, 1, 150, 170, {3577,3486}, {1,1}, 1 }, -- Golden Skeleton Key [22480] = { 18045, 6, 1, 265, 305, {12208,3713}, {1,1} }, -- Tender Wolf Steak [20201] = { 16206, 2, 1, 275, 285, {12360,12644}, {3,1} }, -- Arcanite Rod [20853] = { 16982, 3, 1, 315, 335, {17012,17010,17011,14341}, {20,6,2,2} }, -- Corehound Boots @@ -1151,10 +1152,10 @@ local PROFESSION = { [22727] = { 18251, 3, 1, 320, 340, {17012,14341}, {3,2} }, -- Core Armor Kit [23803] = { nil, 10, 1, 320, 360, {14344,16203,16204}, {10,8,15} }, -- Enchant Weapon - Mighty Spirit [23071] = { 18631, 9, 1, 270, 280, {6037,7067,7069}, {2,2,1} }, -- Truesilver Transformer - [23507] = { 19026, 9, 1, 250, 270, {15992,14047,8150}, {2,2,1} }, -- Snake Burst Firework + [23507] = { 19026, 9, 1, 250, 270, {15992,14047,8150}, {2,2,1}, 3 }, -- Snake Burst Firework [23707] = { 19149, 3, 1, 320, 340, {17011,15407,14227}, {5,4,4} }, -- Lava Belt [23069] = { 18588, 9, 1, 200, 220, {10505,4338}, {1,2} }, -- EZ-Thro Dynamite II - [23070] = { 18641, 9, 1, 250, 270, {15992,14047}, {2,3} }, -- Dense Dynamite + [23070] = { 18641, 9, 1, 250, 270, {15992,14047}, {2,3}, 1 }, -- Dense Dynamite [23190] = { 18662, 3, 1, 150, 160, {4234,2321}, {2,1} }, -- Heavy Leather Ball [23710] = { 19163, 3, 1, 320, 340, {17010,17011,7076,15407,14227}, {2,7,6,4,4} }, -- Molten Belt [23080] = { 18594, 9, 1, 275, 295, {15994,15992,8170,159}, {2,3,2,1} }, -- Powerful Seaforium Charge @@ -1164,7 +1165,7 @@ local PROFESSION = { [23077] = { 18634, 9, 1, 280, 300, {15994,18631,12361,7078,3829,13467}, {6,2,2,4,2,4} }, -- Gyrofreeze Ice Reflector [23638] = { 19166, 2, 1, 320, 340, {17011,17010,12360,11382,11371}, {3,6,12,1,4} }, -- Black Amnesty [23639] = { 19167, 2, 1, 320, 340, {17011,17010,12360,11371}, {5,2,16,6} }, -- Blackfury - [23068] = { 9313, 9, 1, 150, 175, {4377,4234}, {1,1} }, -- Green Firework + [23068] = { 9313, 9, 1, 150, 175, {4377,4234}, {1,1}, 2 }, -- Green Firework [23662] = { 19047, 8, 1, 305, 335, {14048,7076,12803,14227}, {8,3,3,2} }, -- Wisdom of the Timbermaw [23663] = { 19050, 8, 1, 315, 345, {14342,7076,12803,14227}, {5,5,5,2} }, -- Mantle of the Timbermaw [23664] = { 19056, 8, 1, 305, 335, {14048,12810,13926,12809,14227}, {6,4,2,2,2} }, -- Argent Boots @@ -1189,8 +1190,8 @@ local PROFESSION = { [22922] = { 18506, 3, 1, 320, 340, {8170,7082,11754,15407,14341}, {12,6,4,2,4} }, -- Mongoose Boots [23129] = { 18660, 9, 1, 260, 270, {10561,15994,10558,10560,3864}, {1,2,1,1,1} }, -- World Enlarger [24138] = { 19692, 2, 1, 320, 340, {12359,19774,19726,12810}, {12,6,2,4} }, -- Bloodsoul Gauntlets - [23066] = { 9318, 9, 1, 150, 175, {4377,4234}, {1,1} }, -- Red Firework - [23067] = { 9312, 9, 1, 150, 175, {4377,4234}, {1,1} }, -- Blue Firework + [23066] = { 9318, 9, 1, 150, 175, {4377,4234}, {1,1}, 2 }, -- Red Firework + [23067] = { 9312, 9, 1, 150, 175, {4377,4234}, {1,1}, 2 }, -- Blue Firework [24139] = { 19693, 2, 1, 320, 340, {12359,19774,12799}, {20,14,2} }, -- Darksoul Breastplate [24140] = { 19694, 2, 1, 320, 340, {12359,19774,12799}, {18,12,2} }, -- Darksoul Leggings [24365] = { 20007, 4, 1, 290, 330, {13463,13466,8925}, {1,2,1} }, -- Mageblood Potion @@ -1212,7 +1213,7 @@ local PROFESSION = { [25127] = { 20747, 10, 1, 260, 280, {11176,8831,8925}, {3,2,1} }, -- Lesser Mana Oil [25128] = { 20750, 10, 1, 285, 305, {16204,4625,8925}, {3,2,1} }, -- Wizard Oil [23787] = { 19440, 1, 1, 300, 360, {19441}, {1} }, -- Powerful Anti-Venom - [24266] = { 19931, 4, 1, 315, 330, {12938,19943,12804,13468}, {1,1,6,1} }, -- Gurubashi Mojo Madness + [24266] = { 19931, 4, 1, 315, 330, {12938,19943,12804,13468}, {1,1,6,1}, 2 }, -- Gurubashi Mojo Madness [24124] = { 19688, 3, 1, 320, 340, {19768,19726,15407,14341}, {35,2,3,3} }, -- Blood Tiger Breastplate [24367] = { 20008, 4, 1, 300, 340, {13467,13465,10286,8925}, {2,2,2,1} }, -- Living Action Potion [24123] = { 19687, 3, 1, 320, 340, {19767,15407,12803,14341}, {8,3,4,3} }, -- Primal Batskin Bracers @@ -1234,7 +1235,7 @@ local PROFESSION = { [24368] = { 20004, 4, 1, 305, 345, {8846,13466,8925}, {1,2,1} }, -- Major Troll's Blood Potion [24849] = { 20476, 3, 1, 320, 340, {20501,20498,18512}, {1,20,2} }, -- Sandstalker Bracers [25086] = { nil, 10, 1, 320, 360, {20725,14344,12809}, {3,8,8} }, -- Enchant Cloak - Dodge - [25146] = { 7068, 4, 1, 301, 310, {7077}, {1} }, -- Transmute: Elemental Fire + [25146] = { 7068, 4, 1, 301, 310, {7077}, {1}, 2 }, -- Transmute: Elemental Fire [25081] = { nil, 10, 1, 320, 360, {20725,14344,7078}, {3,8,4} }, -- Enchant Cloak - Greater Fire Resistance [26085] = { 21340, 8, 1, 275, 305, {14048,8170,7972,14341}, {6,4,2,1} }, -- Soul Pouch [26086] = { 21341, 8, 1, 300, 330, {14256,12810,20520,14227}, {12,6,2,4} }, -- Felcloth Bag @@ -1253,26 +1254,26 @@ local PROFESSION = { [25125] = { 20745, 10, 1, 160, 180, {11083,17034,3372}, {3,2,1} }, -- Minor Mana Oil [25126] = { 20746, 10, 1, 210, 230, {11137,17035,3372}, {3,2,1} }, -- Lesser Wizard Oil [24914] = { 20550, 2, 1, 320, 340, {12359,20520,6037}, {20,10,10} }, -- Darkrune Breastplate - [26424] = { 21574, 9, 1, 225, 250, {10505,4304}, {1,1} }, -- Green Rocket Cluster - [26425] = { 21576, 9, 1, 225, 250, {10505,4304}, {1,1} }, -- Red Rocket Cluster - [26423] = { 21571, 9, 1, 225, 250, {10505,4304}, {1,1} }, -- Blue Rocket Cluster + [26424] = { 21574, 9, 1, 225, 250, {10505,4304}, {1,1}, 2 }, -- Green Rocket Cluster + [26425] = { 21576, 9, 1, 225, 250, {10505,4304}, {1,1}, 2 }, -- Red Rocket Cluster + [26423] = { 21571, 9, 1, 225, 250, {10505,4304}, {1,1}, 2 }, -- Blue Rocket Cluster [27586] = { 22198, 2, 1, 320, 340, {22203,22202,12655,7076}, {8,24,8,4} }, -- Jagged Obsidian Shield - [26418] = { 21557, 9, 1, 125, 150, {4364,2319}, {1,1} }, -- Small Red Rocket - [26420] = { 21589, 9, 1, 175, 200, {4377,4234}, {1,1} }, -- Large Blue Rocket - [26421] = { 21590, 9, 1, 175, 200, {4377,4234}, {1,1} }, -- Large Green Rocket - [26426] = { 21714, 9, 1, 275, 285, {15992,8170}, {1,1} }, -- Large Blue Rocket Cluster + [26418] = { 21557, 9, 1, 125, 150, {4364,2319}, {1,1}, 2 }, -- Small Red Rocket + [26420] = { 21589, 9, 1, 175, 200, {4377,4234}, {1,1}, 2 }, -- Large Blue Rocket + [26421] = { 21590, 9, 1, 175, 200, {4377,4234}, {1,1}, 2 }, -- Large Green Rocket + [26426] = { 21714, 9, 1, 275, 285, {15992,8170}, {1,1}, 2 }, -- Large Blue Rocket Cluster [27589] = { 22194, 2, 1, 320, 340, {22203,22202,12810,13512}, {8,24,8,1} }, -- Black Grasp of the Destroyer [26403] = { 21154, 8, 1, 265, 295, {14048,4625,2604,14341}, {4,2,2,1} }, -- Festive Red Dress [26407] = { 21542, 8, 1, 265, 295, {14048,4625,2604,14341}, {4,2,2,1} }, -- Festive Red Pant Suit - [26422] = { 21592, 9, 1, 175, 200, {4377,4234}, {1,1} }, -- Large Red Rocket - [26416] = { 21558, 9, 1, 125, 150, {4364,2319}, {1,1} }, -- Small Blue Rocket - [26417] = { 21559, 9, 1, 125, 150, {4364,2319}, {1,1} }, -- Small Green Rocket - [26427] = { 21716, 9, 1, 275, 285, {15992,8170}, {1,1} }, -- Large Green Rocket Cluster - [26428] = { 21718, 9, 1, 275, 285, {15992,8170}, {1,1} }, -- Large Red Rocket Cluster + [26422] = { 21592, 9, 1, 175, 200, {4377,4234}, {1,1}, 2 }, -- Large Red Rocket + [26416] = { 21558, 9, 1, 125, 150, {4364,2319}, {1,1}, 2 }, -- Small Blue Rocket + [26417] = { 21559, 9, 1, 125, 150, {4364,2319}, {1,1}, 2 }, -- Small Green Rocket + [26427] = { 21716, 9, 1, 275, 285, {15992,8170}, {1,1}, 2 }, -- Large Green Rocket Cluster + [26428] = { 21718, 9, 1, 275, 285, {15992,8170}, {1,1}, 2 }, -- Large Red Rocket Cluster [26277] = { 21546, 4, 1, 265, 305, {6371,4625,8925}, {3,3,1} }, -- Elixir of Greater Firepower [27585] = { 22197, 2, 1, 320, 340, {22202,12655,7076}, {14,4,2} }, -- Heavy Obsidian Belt [27587] = { 22196, 2, 1, 320, 340, {22203,22202,12655,7076,12364}, {18,40,12,10,4} }, -- Thick Obsidian Breastplate - [25659] = { 21023, 6, 1, 325, 365, {2692,9061,8150,21024}, {1,1,1,1} }, -- Dirge's Kickin' Chimaerok Chops + [25659] = { 21023, 6, 1, 325, 365, {2692,9061,8150,21024}, {1,1,1,1}, 4 }, -- Dirge's Kickin' Chimaerok Chops [27588] = { 22195, 2, 1, 320, 340, {22202,12810}, {14,4} }, -- Light Obsidian Belt [27590] = { 22191, 2, 1, 320, 340, {22203,22202,12810,12809,12800}, {15,36,12,10,4} }, -- Obsidian Mail Tunic [26279] = { 21278, 3, 1, 320, 340, {12810,7080,7082,15407,14227}, {6,4,4,2,2} }, -- Stormshroud Gloves @@ -1309,8 +1310,8 @@ local PROFESSION = { [28461] = { 22762, 2, 1, 320, 340, {12655,19726,12360,12803}, {12,2,2,2} }, -- Ironvine Breastplate [28463] = { 22764, 2, 1, 320, 340, {12655,12803}, {6,2} }, -- Ironvine Belt [28244] = { 22671, 2, 1, 320, 340, {22682,12359,12360,7080}, {4,12,2,2} }, -- Icebane Bracers - [30047] = { 23683, 6, 1, 325, 365, {23567,8150}, {1,1} }, -- Crystal Throat Lozenge - [30021] = { 23684, 1, 1, 300, 360, {23567,14047}, {1,10} }, -- Crystal Infused Bandage + [30047] = { 23683, 6, 1, 325, 365, {23567,8150}, {1,1}, 1 }, -- Crystal Throat Lozenge + [30021] = { 23684, 1, 1, 300, 360, {23567,14047}, {1,10}, 3 }, -- Crystal Infused Bandage } -- maybe weak table? @@ -1331,7 +1332,11 @@ function Profession.GetDataForExtraFrame(spellID) if not ProfessionCache[spellID] then local ret if prof[1] then - ret = { prof[1], 0 } + if prof[1] and prof[8] then + ret = { { prof[1], prof[8] }, 0 } + else + ret = { prof[1], 0 } + end else ret = {} end @@ -1348,6 +1353,10 @@ function Profession.GetCreatedItemID(spellID) return PROFESSION[spellID or 0] and PROFESSION[spellID or 0][1] or nil end +function Profession.GetNumCreatedItems(spellID) + return PROFESSION[spellID or 0] and ( PROFESSION[spellID or 0][8] or 1 ) or nil +end + function Profession.GetSpellDescription(spellID) return ( spellID and PROFESSION[spellID] ) and PROFESSION_TEXT[PROFESSION[spellID][2] or PROFESSION_DEFAULT] or nil end