From ad28daa403b6011356aa6a46d90ca5a8f2ff012c Mon Sep 17 00:00:00 2001 From: Alex Shubert Date: Tue, 14 Oct 2014 23:24:43 +0400 Subject: [PATCH] pre-wod fix --- AutoTurnIn.lua | 13 +++++++++---- loc/localization_RU.lua | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/AutoTurnIn.lua b/AutoTurnIn.lua index 57e5953..9c3b920 100644 --- a/AutoTurnIn.lua +++ b/AutoTurnIn.lua @@ -89,9 +89,11 @@ function AutoTurnIn:OnEnable() self:SetEnabled(DB.enabled) self:RegisterGossipEvents() - hooksecurefunc("QuestLog_Update", AutoTurnIn.ShowQuestLevelInLog) - hooksecurefunc(QuestLogScrollFrame, "update", AutoTurnIn.ShowQuestLevelInLog) - hooksecurefunc("WatchFrame_Update", AutoTurnIn.ShowQuestLevelInWatchFrame) + if select(4, GetBuildInfo()) < 60000 then + hooksecurefunc("QuestLog_Update", AutoTurnIn.ShowQuestLevelInLog) + hooksecurefunc(QuestLogScrollFrame, "update", AutoTurnIn.ShowQuestLevelInLog) + hooksecurefunc("WatchFrame_Update", AutoTurnIn.ShowQuestLevelInWatchFrame) + end end function AutoTurnIn:OnDisable() @@ -619,4 +621,7 @@ end -- gossip and quest interaction goes through a sequence of windows: gossip [shows a list of available quests] - quest[describes specified quest] -- sometimes some parts of this chain is skipped. For example, priest in Honor Hold show quest window directly. This is a trick to handle 'toggle key' -hooksecurefunc(QuestFrame, "Hide", function() AutoTurnIn.allowed = nil end) \ No newline at end of file +hooksecurefunc(QuestFrame, "Hide", function() AutoTurnIn.allowed = nil end) +-- if (GetItemCount(45724, false) > 0) then + -- UseItemByName(45724) +-- end \ No newline at end of file diff --git a/loc/localization_RU.lua b/loc/localization_RU.lua index 818e748..82392f5 100644 --- a/loc/localization_RU.lua +++ b/loc/localization_RU.lua @@ -164,7 +164,7 @@ privateTable.L.quests = { ["Угощение для Хаоханя"]={item="Жареный на углях стейк из тигриного мяса", amount=5, currency=false}, ["Угощение для старика Горной Лапы"]={item="Тушеное черепашье мясо", amount=5, currency=false}, ["Угощение для Шо"]={item="Рыба по-дольски", amount=5, currency=false}, -["Угощение длDZя Тины"]={item="Лосось духов огня", amount=5, currency=false}, +["Угощение для Тины"]={item="Лосось духов огня", amount=5, currency=false}, ["Поход за продуктами"]={item="Пакет с продуктами", amount=1, currency=false}, --MOP timeless Island ['Бок тяжелого яка']={item="Бок тяжелого яка", amount=1, currency=false}, -- 1.7.9.5