Jump to content

ItemID addon.

By Zehlendorf
in General

Recommended Posts

GameTooltip:HookScript("OnTooltipSetSpell", function (self)
    local SpellName, SpellRank, SpellID = self:GetSpell()
    self:AddLine("|cffff8000ID:|cffFFFFFF " .. SpellID)
  end)

GameTooltip:HookScript("OnTooltipSetItem", function (self)
    local name, link = GameTooltip:GetItem()
    local _, _, itemID = link:find("|Hitem:(%d+):.*|h%[(.-)%]|h|r")
    self:AddLine("|cffff8000ID:|cffFFFFFF " .. itemID)
  end)

 

Link to comment
Share on other sites

Sheldon Im trying to add NpcID but this isnt working, help xD

 

GameTooltip:HookScript("OnTooltipSetUnit", function(self)
    local name, unit = self:GetUnit()
    local unitType, _, _, _, _, npcID = strsplit(':', UnitGUID(unit) or '')
            self:AddLine(unitType, npcID)
            self:Show()
end)

 

Link to comment
Share on other sites

  • 4 weeks later...

Did you make it work Zehlendorf ?

By modifying the IdTip addon ? It would be awesome to be able to see the factionID, the NPC ID and all sorts of IDs in one click or by hovering the mouse. I know that the newer versions of idTip have NPC IDs included but it's for MOP or WOD.

I think everybody has to deal with IDs at some point in game.

Link to comment
Share on other sites

×
×
  • Create New...