From 4264ddefdbd449a942284b91876c9d3a98a1eff8 Mon Sep 17 00:00:00 2001 From: Aldric Ducreux Date: Wed, 8 May 2024 02:57:02 +0200 Subject: [PATCH] Add questID to BuyMerchant --- Event.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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