Quantcast

Change the spell ID's to use grandmaster profession levels, update the dataminer slightly.

ackis [04-20-09 - 19:01]
Change the spell ID's to use grandmaster profession levels, update the dataminer slightly.
Filename
ARLDatamine.lua
AckisRecipeList.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index e0fbf1d..146464f 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -143,14 +143,31 @@ end
 -- @return Generates tradeskill links with all recipes.  Used for testing to see if a recipe is missing from the database or not.
 function addon:GenerateLinks()

+	-- This code adopted from Gnomish Yellow Pages with permission
+
 	local guid = UnitGUID("player")
 	local playerGUID = string.gsub(guid,"0x0+", "")

-	local tradelist = {2259, 2018, 7411, 4036, 45357, 25229, 2108, 3908,  2550, 746}
+	-- Listing of all tradeskill professions
+	local tradelist = {2259, 2018, 7411, 4036, 45357, 25229, 2108, 3908, 51296, 45542}
+
+	local bitmap = {}
+	bitmap[45542] = "8bffAA" -- First Aid
+	bitmap[51296] = "2/7///7///9////7//////////g+/B" -- Cooking

 	for i in pairs(tradelist) do

 		local tradeName = GetSpellInfo(tradelist[i])
+		local tradelink = {}
+		tradelink[1] = "|cffffd00|Htrade:"
+		tradelink[2] = tradelist[i]
+		tradelink[3] = ":450:450:"
+		tradelink[4] = playerGUID
+		tradelink[5] = ":"
+		tradelink[6] = bitmap[tradelist[i]] or "/////"
+		tradelink[7] = "|h["
+		tradelink[8] = tradeName
+		tradelink[9] = "]|h|r"
 		--local tradelink = "|cffffd00|Htrade:" .. tradelist[i] .. ":450:450:" .. playerGUID .. ":" .. bitMap .. "|h[" .. tradeName .."]|h|r"

 	end
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index 458b0cd..662f434 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -1476,11 +1476,13 @@ local function InitializeRecipes(RecipeDB, playerProfession)
 	{
 		[GetSpellInfo(2259)] = addon.InitAlchemy,
 		[GetSpellInfo(2018)] = addon.InitBlacksmithing,
-		[GetSpellInfo(2550)] = addon.InitCooking,
+		[GetSpellInfo(51296)] = addon.InitCooking,
+		--[GetSpellInfo(2550)] = addon.InitCooking,
 		[GetSpellInfo(7411)] = addon.InitEnchanting,
 		[GetSpellInfo(4036)] = addon.InitEngineering,
 		-- Use first aid spell of applying bandages to fix issues with other localizations
-		[GetSpellInfo(746)] = addon.InitFirstAid,
+		[GetSpellInfo(45542)] = addon.InitFirstAid,
+		--[GetSpellInfo(746)] = addon.InitFirstAid,
 		-- Hack to get first aid working on frFR since I can't seem to get a proper spell ID :P
 		["Premiers soins"] = addon.InitFirstAid,
 		[GetSpellInfo(2108)] = addon.InitLeatherworking,
@@ -1699,10 +1701,12 @@ do
 		pData["Professions"] = {
 			[GetSpellInfo(2259)] = false, -- Alchemy
 			[GetSpellInfo(2018)] = false, -- Blacksmithing
-			[GetSpellInfo(2550)] = false, -- Cooking
+			--[GetSpellInfo(2550)] = false, -- Cooking
+			[GetSpellInfo(51296)] = false, -- Cooking
 			[GetSpellInfo(7411)] = false, -- Enchanting
 			[GetSpellInfo(4036)] = false, -- Engineering
-			[GetSpellInfo(746)] = false, -- First Aid
+			[GetSpellInfo(45542)] = false, -- First Aid
+			--[GetSpellInfo(746)] = false, -- First Aid
 			--["Premiers soins"] = false, -- First Aid (Hack for frFR local)
 			[GetSpellInfo(2108)] = false, -- Leatherworking
 			[GetSpellInfo(2575)] = false, -- Mining