Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to get green part info of item

Featured Replies

HearthstoneID: 6948
Binds when picked up
Unique
Use: Returns you to <Inn>. Speak to an Innkeeper in a different place to change your home location.

 

Hi,Is there any way to get where my current home is from Hearthstone?

I don't known how to get the green color part of The item(Use: Returns you to <Inn>. Speak to an Innkeeper in a different place to change your home location.)

it's nothing about green info  in itemlink

ItemLink - Wowpedia - Your wiki guide to the World of Warcraft (fandom.com)

thank you .

 

 

 

 

local tooltip;

local function CreateToolTipFrame()
    tooltip = CreateFrame("GameTooltip", "MyTempTooltip", UIParent, "GameTooltipTemplate")
    tooltip:SetOwner(UIParent, "ANCHOR_NONE")
end

local function OnTooltipSetItemFromLink(itemLink)
    if itemLink then
        tooltip:SetHyperlink(itemLink)
        local numLines = tooltip:NumLines()
        if numLines > 0 then
            for i = 1, numLines do
                local line = _G[tooltip:GetName() .. "TextLeft" .. i]
                if line then
                    print(line:GetText())
                end
            end
        end
        tooltip:Hide()
    end
end

 

  • Author

thank you,  but is it  not work on 1.12? 

local tooltip;

local function CreateToolTipFrame()
    tooltip = CreateFrame("GameTooltip", "MyTempTooltip", UIParent, "GameTooltipTemplate")
    tooltip:SetOwner(UIParent, "ANCHOR_NONE")
end

local function OnTooltipSetItemFromLink(itemLink)
    if itemLink then
        tooltip:SetHyperlink(itemLink)
        local numLines = tooltip:NumLines()
        if numLines > 0 then
            for i = 1, numLines do
                local line = _G[tooltip:GetName() .. "TextLeft" .. i]
                if line then
                    print(line:GetText())
                end
            end
        end
        tooltip:Hide()
    end
end
-----------
local link = GetContainerItemLink(0,1) -- the hearthstone at 0,1
CreateToolTipFrame() -- create the frame
OnTooltipSetItemFromLink(link)  --then error says: [string "Areizogu.lua]:10 Unknown link type
 -- if i run it again error change to : Interface\FrameXML\MoneyFrame.lua:185: attempt to perform arithmetic on local `money'(a nil value)
On 2/27/2024 at 5:00 AM, Nax said:
local tooltip;

local function CreateToolTipFrame()
    tooltip = CreateFrame("GameTooltip", "MyTempTooltip", UIParent, "GameTooltipTemplate")
    tooltip:SetOwner(UIParent, "ANCHOR_NONE")
end

local function OnTooltipSetItemFromLink(itemLink)
    if itemLink then
        tooltip:SetHyperlink(itemLink)
        local numLines = tooltip:NumLines()
        if numLines > 0 then
            for i = 1, numLines do
                local line = _G[tooltip:GetName() .. "TextLeft" .. i]
                if line then
                    print(line:GetText())
                end
            end
        end
        tooltip:Hide()
    end
end

 

 

local tooltip

local function CreateToolTipFrame()
    tooltip = CreateFrame("GameTooltip", "MyTempTooltip", UIParent, "GameTooltipTemplate")
    tooltip:SetOwner(UIParent, "ANCHOR_NONE")
end

local function OnTooltipSetItemFromLink(itemLink)
    if itemLink then
        CreateToolTipFrame() -- Ensure tooltip is created
        tooltip:SetHyperlink(itemLink)
        local numLines = tooltip:NumLines()
        if numLines > 0 then
            for i = 1, numLines do
                local line = getglobal(tooltip:GetName() .. "TextLeft" .. i)
                if line then
                    DEFAULT_CHAT_FRAME:AddMessage(line:GetText())
                end
            end
        end
        tooltip:Hide()
    end
end

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.