From 5c4ab702a8b592c8d35a45a2fb61d2aec437fb28 Mon Sep 17 00:00:00 2001 From: ackis Date: Mon, 20 Apr 2009 19:33:47 +0000 Subject: [PATCH] Add a LW and Engineering bitmap, not 100% for those however --- ARLDatamine.lua | 26 +++++--------------------- AckisRecipeList.lua | 18 ++++++++++++------ 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 146464f..7a9806b 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -149,11 +149,13 @@ function addon:GenerateLinks() local playerGUID = string.gsub(guid,"0x0+", "") -- Listing of all tradeskill professions - local tradelist = {2259, 2018, 7411, 4036, 45357, 25229, 2108, 3908, 51296, 45542} + local tradelist = {2259, 2018, 7411, 51306, 45357, 25229, 51302, 3908, 51296, 45542} local bitmap = {} bitmap[45542] = "8bffAA" -- First Aid bitmap[51296] = "2/7///7///9////7//////////g+/B" -- Cooking + bitmap[51306] = "4/////////////3nFA+///9+/P7//f//n//9dgdJgHA87/3f/TolD" -- Engineering + bitmap[51302] = "e+//////////////v//P+f///3///7/9f9//////////f///////HQ5+////B4//+///////5///////PA/Eg//" -- LW for i in pairs(tradelist) do @@ -172,24 +174,6 @@ function addon:GenerateLinks() end - DEFAULT_CHAT_FRAME:AddMessage(gsub(GetTradeSkillListLink(), "\124", "\124\124")) - ---[[ - -tradeID is the spellID of the trade -- any level seems to work -tradeName is the name of the trade - -playerGUID is a valid GUID so i just use the current player's - -local guid = UnitGUID("player") -local playerGUID = string.gsub(guid,"0x0+", "") - -that leaves the bitMap. - -the bitMap is base-64 encoded string of all the potential recipes a player might know for a particular trade. without worrying at all about which spell is which, you can simply set each bit to 1 -- or each byte to 63. 63 in this case is "/" so a bitmap representing every possible skill of a particular trade would be a string of "//////"... the catch is that the bitmap has to be the exact proper length for that tradeskill. - -local bitMap = string.rep("/",bitMapLength) - -]]-- - end + +--/script DEFAULT_CHAT_FRAME:AddMessage(gsub(GetTradeSkillListLink(), "\124", "\124\124")) \ No newline at end of file diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 662f434..c7b15cd 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -1479,13 +1479,15 @@ local function InitializeRecipes(RecipeDB, playerProfession) [GetSpellInfo(51296)] = addon.InitCooking, --[GetSpellInfo(2550)] = addon.InitCooking, [GetSpellInfo(7411)] = addon.InitEnchanting, - [GetSpellInfo(4036)] = addon.InitEngineering, + --[GetSpellInfo(4036)] = addon.InitEngineering, + [GetSpellInfo(51306)] = addon.InitEngineering, -- Use first aid spell of applying bandages to fix issues with other localizations [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, + --[GetSpellInfo(2108)] = addon.InitLeatherworking, + [GetSpellInfo(51302)] = addon.InitLeatherworking, [GetSpellInfo(2575)] = addon.InitSmelting, [GetSpellInfo(3908)] = addon.InitTailoring, [GetSpellInfo(25229)] = addon.InitJewelcrafting, @@ -1704,11 +1706,13 @@ do --[GetSpellInfo(2550)] = false, -- Cooking [GetSpellInfo(51296)] = false, -- Cooking [GetSpellInfo(7411)] = false, -- Enchanting - [GetSpellInfo(4036)] = false, -- Engineering + --[GetSpellInfo(4036)] = false, -- Engineering + [GetSpellInfo(51306)] = false, -- Engineering [GetSpellInfo(45542)] = false, -- First Aid --[GetSpellInfo(746)] = false, -- First Aid --["Premiers soins"] = false, -- First Aid (Hack for frFR local) - [GetSpellInfo(2108)] = false, -- Leatherworking + --[GetSpellInfo(2108)] = false, -- Leatherworking + [GetSpellInfo(51302)] = false, -- Leatherworking [GetSpellInfo(2575)] = false, -- Mining --[GetSpellInfo(2656)] = false, -- Smelting [GetSpellInfo(3908)] = false, -- Tailoring @@ -1759,8 +1763,10 @@ do SpecialtyTable = { [GetSpellInfo(2259)] = AlchemySpec, [GetSpellInfo(2018)] = BlacksmithSpec, - [GetSpellInfo(4036)] = EngineeringSpec, - [GetSpellInfo(2108)] = LeatherworkSpec, + --[GetSpellInfo(4036)] = EngineeringSpec, + [GetSpellInfo(51306)] = EngineeringSpec, + --[GetSpellInfo(2108)] = LeatherworkSpec, + [GetSpellInfo(51302)] = LeatherworkSpec, [GetSpellInfo(3908)] = TailorSpec, } -- 1.7.9.5