Add files via upload

This commit is contained in:
Dinkledork
2023-03-21 02:26:13 -06:00
committed by GitHub
parent 700c67a93f
commit 2b50ae9df0
57 changed files with 2884 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
local questIds = {9265, 9264, 9263, 9262, 9261, 9260}
local itemId = 22892
local itemCount = 3
local totalLooted = {}
local function OnLootItem(event, player, item, count)
if item:GetEntry() == itemId then
for _, questId in pairs(questIds) do
if player:HasQuest(questId) then
if not totalLooted[questId] then
totalLooted[questId] = 0
end
totalLooted[questId] = totalLooted[questId] + count
if totalLooted[questId] >= itemCount then
player:CompleteQuest(questId)
end
end
end
end
end
RegisterPlayerEvent(32, OnLootItem)