diff --git a/Event.lua b/Event.lua index e10363b..12e60ef 100644 --- a/Event.lua +++ b/Event.lua @@ -383,12 +383,13 @@ function AprRC.event.functions.buy(event, ...) end end if not found then - table.insert(currentStep.BuyMerchant, { itemID = itemID, quantity = 1 }) + table.insert(currentStep.BuyMerchant, + { itemID = itemID, quantity = 1, questID = AprRC:FindClosestIncompleteQuest() }) end return end - local step = { BuyMerchant = { { itemID = itemID, quantity = 1 } } } + local step = { BuyMerchant = { { itemID = itemID, quantity = 1, questID = AprRC:FindClosestIncompleteQuest() } } } AprRC:SetStepCoord(step) AprRC:NewStep(step) end