permanently enchant items

This commit is contained in:
Salikh Gurgenidze
2026-01-23 23:35:26 +04:00
parent 122ee5992e
commit 9590bcd676
4 changed files with 154 additions and 16 deletions
+11
View File
@@ -36,6 +36,7 @@ function QuestItemBar:CheckQuestItemUsable(bagID, slotID)
local isQuestItem = false
local isQuestStarter = false
local isUsable = false
local isPermanentEnchant = false -- Track enchanting scrolls/vellums
for i = 1, tooltip:NumLines() do
local line = getglobal("Guda_QuestBarScanTooltipTextLeft" .. i)
@@ -57,10 +58,20 @@ function QuestItemBar:CheckQuestItemUsable(bagID, slotID)
if string.find(tl, "use:") or string.find(tl, "begins a quest") or string.find(tl, "starts a quest") then
isUsable = true
end
-- Check for permanent enchant items (should NOT be quest items)
-- Just check for "permanently" anywhere (green text doesn't have "Use:" prefix)
if string.find(tl, "permanently") then
isPermanentEnchant = true
end
end
end
end
-- Permanent enchant items are NOT quest items, even if categorized as Quest
if isPermanentEnchant then
return false, false, false
end
-- Fallback check for quest category if not detected from tooltip
local link = GetContainerItemLink(bagID, slotID)
local itemID