From cc7665aae240f610363d021126d1b9cc9ba60262 Mon Sep 17 00:00:00 2001 From: John Pasula Date: Thu, 4 Mar 2010 14:31:29 -0700 Subject: [PATCH] Add in support for dynamic faction changes. --- ARL.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ARL.lua b/ARL.lua index f2cc84a..30b3482 100644 --- a/ARL.lua +++ b/ARL.lua @@ -540,6 +540,8 @@ function addon:OnEnable() self:RegisterEvent("TRADE_SKILL_SHOW") -- Make addon respond to the tradeskill windows being shown self:RegisterEvent("TRADE_SKILL_CLOSE") -- Addon responds to tradeskill windows being closed. self:RegisterEvent("TRADE_SKILL_UPDATE") + -- http://wowprogramming.com/docs/events/UPDATE_FACTION + self:RegisterEvent("UPDATE_FACTION") -- Addon responds to faction changes by the player if addon.db.profile.scantrainers then self:RegisterEvent("TRAINER_SHOW") @@ -738,10 +740,16 @@ function addon:TRAINER_SHOW() self:ScanTrainerData(true) end +---Event used for datamining when a vendor is shown. function addon:MERCHANT_SHOW() addon:ScanVendor() end +---Event used to update the internal faction database when your faction changes. +function addon:UPDATE_FACTION() + Player:SetReputationLevels() +end + do local GetTradeSkillListLink = _G.GetTradeSkillListLink local UnitName = _G.UnitName -- 1.7.9.5