From 60326bfc6f18ed5da9ff1cca78b609bfd6ffb6d0 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 31 Dec 2010 06:33:12 -0500 Subject: [PATCH 1/2] Added the ability to search for recipes by reputation name. --- Interface/Panel.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Interface/Panel.lua b/Interface/Panel.lua index 4997b73..ef9c80f 100644 --- a/Interface/Panel.lua +++ b/Interface/Panel.lua @@ -501,6 +501,7 @@ function private.InitializeFrame() do local acquire_names = private.acquire_names local location_list = private.location_list + local reputation_list = private.reputation_list local search_params = { "name", @@ -568,6 +569,28 @@ function private.InitializeFrame() end end end + + if not found then + for acquire_type, acquire_data in pairs(entry.acquire_data) do + if acquire_type == A.REPUTATION then + local breakout = false + + for id_num, info in pairs(acquire_data) do + local str = reputation_list[id_num].name:lower() + + if str and str:find(pattern) then + entry:AddState("RELEVANT") + breakout = true + break + end + end + end + + if breakout then + break + end + end + end end end -- if entry.profession end -- for -- 1.7.9.5 From eb105bdc7a3dcac254b32249f7f161757c1471b7 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 31 Dec 2010 06:41:11 -0500 Subject: [PATCH 2/2] Fixed the coordinates for Alurmi (Keepers of Time Quartermaster). --- Database/Vendor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Vendor.lua b/Database/Vendor.lua index 593fe32..1217805 100644 --- a/Database/Vendor.lua +++ b/Database/Vendor.lua @@ -346,7 +346,7 @@ function addon:InitVendor(DB) AddVendor(21432, L["Almaador"], BZ["Shattrath City"], 51.0, 41.9, NEUTRAL) AddVendor(21474, L["Coreiel"], BZ["Nagrand"], 42.8, 42.6, HORDE) AddVendor(21485, L["Aldraan"], BZ["Nagrand"], 42.9, 42.5, ALLIANCE) - AddVendor(21643, L["Alurmi"], BZ["Tanaris"], 63.6, 57.6, NEUTRAL) + AddVendor(21643, L["Alurmi"], BZ["Tanaris"], 62.99, 57.32, NEUTRAL) AddVendor(21655, L["Nakodu"], BZ["Shattrath City"], 62.1, 69.0, NEUTRAL) AddVendor(22208, L["Nasmara Moonsong"], BZ["Shattrath City"], 66.0, 69.0, NEUTRAL) AddVendor(22212, L["Andrion Darkspinner"], BZ["Shattrath City"], 66.0, 67.8, NEUTRAL) -- 1.7.9.5