Worlf of Warcraft library of important emenies from instances.
localLibMobs=LibStub("LibMobs")
assert(LibMobs, "Addon requires LibMobs")
localframe=CreateFrame("Frame")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:SetScript("OnEvent", function (self, event, ...)
ifevent=="PLAYER_TARGET_CHANGED" thenlocalunit="target"localguid=UnitGUID(guid)
localguidInfo=LibMobs:ParseCreatureGUID(guid)
ifguidInfothenprint(guidInfo.instanceId, guidInfo.zoneID)
endendend)