Сервис "ниочень"
Доделал сам, всего нужно было вставить доп. проверку.
PHP код:
function idnps(npsID, ...)
local sName, iUnit = npsID:GetUnit()
local isPlayer = UnitIsPlayer("mouseover")
local PlayerIs = UnitIsPlayer("target")
if (iUnit == "mouseover") then
if isPlayer == nil then
npsID:AddLine("ID: "..tonumber(string.sub(UnitGUID("mouseover"), 9, 12), 16))
end
end
if (iUnit == "target") then
if PlayerIs == nil then
npsID:AddLine("ID: "..tonumber(string.sub(UnitGUID("target"), 9, 12), 16))
end
end
end
GameTooltip:HookScript("OnTooltipSetUnit", idnps)