Add new code snippets

This commit is contained in:
2024-03-03 13:50:12 +01:00
commit 01b612a50b
409 changed files with 65292 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--QUEST_POI_UPDATE UPDATE_Q_ITEM
function()
if InCombatLockdown() ~= 1 then
for i = 0, 4 do
for j = 1, GetContainerNumSlots(i) do
local link = select(7, GetContainerItemInfo(i, j))
if link then
local type = select(6, GetItemInfo(link))
if type == "Quest" then
PickupContainerItem(i, j)
if CursorHasItem() then
PickupAction(22)
ClearCursor()
end
end
end
end
end
end
end