Проще скриптом.
PHP код:
----------------------------------------------------------------------------------------
--
SpellID
----------------------------------------------------------------------------------------
hooksecurefunc(GameTooltip"SetUnitBuff", function(self,...)
    
local id select(11,UnitBuff(...))
    if 
id then
        self
:AddDoubleLine("SpellID:",id)
        
self:Show()
    
end
end
)

hooksecurefunc(GameTooltip"SetUnitDebuff", function(self,...)
    
local id select(11,UnitDebuff(...))
    if 
id then
        self
:AddDoubleLine("SpellID:",id)
        
self:Show()
    
end
end
)

hooksecurefunc(GameTooltip"SetUnitAura", function(self,...)
    
local id select(11,UnitAura(...))
    if 
id then
        self
:AddDoubleLine("SpellID:",id)
        
self:Show()
    
end
end
)

hooksecurefunc("SetItemRef", function(linktextbuttonchatFrame)
    if 
string.find(link,"^spell:"then
        local id 
string.sub(link,7)
        
ItemRefTooltip:AddDoubleLine("SpellID:",id)
        
ItemRefTooltip:Show()
    
end
end
)

GameTooltip:HookScript("OnTooltipSetSpell", function(self)
    
local id select(3,self:GetSpell())
    if 
id then
        self
:AddDoubleLine("SpellID:",id)
        
self:Show()
    
end
end
)
-- 
ITEMCOUNT

GameTooltip
:HookScript("OnTooltipCleared", function(selfself.TukuiItemTooltip=nil end)
GameTooltip:HookScript("OnTooltipSetItem", function(self)
        
local itemlink self:GetItem()
        
local num GetItemCount(link)
        
local left ""
        
local right ""
        
        
if TukuiItemTooltip.id and link ~= nil then
            left 
"|cFFCA3C3CID|r "..link:match(":(%w+)")
        
end
        
        
if TukuiItemTooltip.count and num 1 then
            right 
"|cFFCA3C3C".."Count".."|r "..num
        end
                
        self
:AddLine(" ")
        
self:AddDoubleLine(leftright)
        
self.TukuiItemTooltip 1
end
)

local f CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(__name)
    if 
name ~= "DefUI" then return end
    f
:UnregisterEvent("ADDON_LOADED")
    
f:SetScript("OnEvent"nil)
    
TukuiItemTooltip TukuiItemTooltip or {count=true,id=true}
end
Едиственное - не показывает ид мобов, да и не встречался с таким, где нужно было бы ид моба.