Quantcast
WoWInterface - View Single Post - Identify items on refund cooldown
View Single Post
04-20-20, 03:59 AM   #5
Walkerbo
A Cyclonian
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 44
Hi Kanegasi

Thanks for that, unfortunately GetRegions returns the same info.

My code;
Code:
local scantip = CreateFrame("GameTooltip", "MyScanningTooltip", nil, "GameTooltipTemplate")
scantip:SetOwner(UIParent, "ANCHOR_NONE")

local function MyGetItemStats(link)
   scantip:SetHyperlink(link)
   local regions={scantip:GetRegions()}
   for i=1,#regions do
       if regions[i].GetText and regions[i]:GetText() then
           print(i," - ",regions[i]:GetName(),":",regions[i]:GetText())
       end
   end
end

MyGetItemStats("|cffa335ee|Hitem:41656::::::::111:259::::::|h[Relentless Gladiator's Leather Legguards]|h|r")
My output;
  Reply With Quote