From ec3e80d9fd0caf822d71db39904f0e1987c56d0e Mon Sep 17 00:00:00 2001 From: lure Date: Fri, 27 Jan 2012 12:47:38 +0400 Subject: [PATCH] fixed a bug for binary quest that prohibated to turn finished quest in --- AutoTurnIn.lua | 28 +++++++++++++--------------- AutoTurnIn.toc | 2 +- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/AutoTurnIn.lua b/AutoTurnIn.lua index b6a272a..d2753f6 100644 --- a/AutoTurnIn.lua +++ b/AutoTurnIn.lua @@ -76,21 +76,19 @@ function AutoTurnIn:GOSSIP_SHOW() for i=1, #gaq, 4 do if (gaq[i+3]) then - local quest = L.quests[gaq[i]] - if AutoTurnInCharacterDB.all or quest then - if quest then - if quest.amount then - local has = 0 - if quest.currency then - _, has = GetCurrencyInfo(quest.item) - else - has = GetItemCount(quest.item, nil, true) - end - if has > quest.amount then - SelectGossipActiveQuest(math.floor(i/4)+1) - return - end - end + local quest = L.quests[gaq[i]] + if AutoTurnInCharacterDB.all or quest then + if quest and quest.amount then + local has = 0 + if quest.currency then + _, has = GetCurrencyInfo(quest.item) + else + has = GetItemCount(quest.item, nil, true) + end + if has > quest.amount then + SelectGossipActiveQuest(math.floor(i/4)+1) + return + end else SelectGossipActiveQuest(math.floor(i/4)+1) return diff --git a/AutoTurnIn.toc b/AutoTurnIn.toc index 88365f9..0785f67 100644 --- a/AutoTurnIn.toc +++ b/AutoTurnIn.toc @@ -3,7 +3,7 @@ ## Version: 1.0 ## Author: Lur ## Notes: Auto accepting and autocomplete daily quests -## Notes-ruRU: Автоматический приниматель и сдаватель квестов. +## Notes-ruRU: Автоматически принимает и сдает ежедневные (либо все) задания ## OptionalDeps: Ace3 ## SavedVariables: AutoTurninDB ## SavedVariablesPerCharacter: AutoTurninCharacterDB -- 1.7.9.5