I don't think you looked well enough or paid attention to the url while navigating wowhead.
ie: Searching for 'Primordial Ruby' and clicking on the item brings up the url -> http://www.wowhead.com/item=76131
If you know how to compile an addon you can use the following code:
Code:
hooksecurefunc(GameTooltip, "SetUnitBuff", function(self,...)
local id = select(11,UnitBuff(...))
local cid = select(8,UnitBuff(...))
cid = cid==nil and "unknown" or cid=="player" and "You" or cid=="pet" and "Pet" or UnitName(cid)
if id then
self:AddLine("|cffdf7401ID: "..id.."|r (|cfffefefe"..cid.."|r)")
self:Show()
end
end)
hooksecurefunc(GameTooltip, "SetUnitDebuff", function(self,...)
local id = select(11,UnitDebuff(...))
if id then
self:AddDoubleLine("|cffdf7401ID: "..id.."|r")
self:Show()
end
end)
hooksecurefunc(GameTooltip, "SetUnitAura", function(self,...)
local id = select(11,UnitAura(...))
local cid = select(8,UnitBuff(...))
cid = cid==nil and "unknown" or cid=="player" and "You" or cid=="pet" and "Pet" or UnitName(cid)
if id then
self:AddLine("|cffdf7401ID: "..id.."|r (|cfffefefe"..cid.."|r)")
self:Show()
end
end)
hooksecurefunc("SetItemRef", function(link, text, button, chatFrame)
if string.find(link,"^spell:") then
local id = string.sub(link,7)
ItemRefTooltip:AddLine("|cffdf7401ID: "..id.."|r")
ItemRefTooltip:Show()
end
end)
GameTooltip:HookScript("OnTooltipSetSpell", function(self)
local id = select(3,self:GetSpell())
if id then
self:AddDoubleLine("|cffdf7401ID: "..id.."|r")
self:Show()
end
end)
This will give you the id for everything including auras. On auras it will also tell you who applied said aura.
edit In case you do not know how to compile an addon I whipped 1 up for you. removed file :P