Skip to content

Commit

Permalink
Add questID to BuyMerchant
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed May 8, 2024
1 parent 56d4b0a commit 4264dde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4264dde

Please sign in to comment.