Это для кого как.
Отображение ID мобов и GUID игроков
PHP код:
local function idnps(npsID, ...)
local sName, iUnit = npsID:GetUnit()
local isPlayer = UnitIsPlayer("mouseover")
if (iUnit == "mouseover") then
if isPlayer == nil then
npsID:AddLine("ID: " .. tonumber(string.sub(UnitGUID("mouseover"), 9, 12), 16))
end
end
end
GameTooltip:HookScript("OnTooltipSetUnit", idnps)
local function GUIDPlayer(PlayerGUID, ...)
local sName, iUnit = PlayerGUID:GetUnit()
local isPlayer = UnitIsPlayer("mouseover")
if (iUnit == "mouseover") then
if isPlayer == 1 then
PlayerGUID:AddLine("GUID: " .. tonumber(string.sub(UnitGUID("mouseover"), 9, 18), 16))
end
end
end
GameTooltip:HookScript("OnTooltipSetUnit", GUIDPlayer)