From 9de4d816df7621dda14bdc658ff4f7173d41c311 Mon Sep 17 00:00:00 2001 From: Spit <19otari98@gmail.com> Date: Tue, 8 Jul 2025 14:17:09 +0300 Subject: [PATCH] use GetAuctionItemLink and GetAuctionSellItemLink --- Core/Tooltip.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Tooltip.lua b/Core/Tooltip.lua index 7f5ee01..2a83cfb 100644 --- a/Core/Tooltip.lua +++ b/Core/Tooltip.lua @@ -284,8 +284,8 @@ local function HookTooltip(tooltip) insideHook = true original_SetAuctionItem(self, atype, index) insideHook = false - local itemName = GetAuctionItemInfo(atype, index) - self.itemID = GetItemIDByName(itemName) + local _, _, id = strfind(GetAuctionItemLink(atype, index) or "", "item:(%d+)") + self.itemID = tonumber(id) ExtendTooltip(self) end @@ -293,8 +293,8 @@ local function HookTooltip(tooltip) insideHook = true original_SetAuctionSellItem(self) insideHook = false - local itemName = GetAuctionSellItemInfo() - self.itemID = GetItemIDByName(itemName) + local _, _, id = strfind(GetAuctionSellItemLink() or "", "item:(%d+)") + self.itemID = tonumber(id) ExtendTooltip(self) end