ElvUI_UsefulNPCPlates
Keeps friendly NPC nameplates useful: it hides guards, passive civilians and other friendly NPCs you cannot interact with, while keeping merchants,
quest givers, dialogue NPCs and your current soft/interact target visible.
This is a clutter filter, not a performance addon. Hidden nameplates are still created by the game; the addon only hides their frames.
Unofficial companion addon. Not affiliated with the ElvUI team. Works with ElvUI nameplates and with Blizzard's default nameplates.
REQUIREMENTS
- Retail WoW 12.1.5 (Interface 120105)
- Friendly NPC nameplates must be enabled:
- ElvUI: Nameplates → Visibility → Friendly NPCs, and Nameplates → Units → FRIENDLY_NPC enabled
- Or Blizzard's own "Friendly NPC nameplates" option
HOW IT WORKS
A nameplate is hidden only when it is:
1. friendly
2. not a player
3. reported by the game as not interactable (UnitIsInteractable)
4. not the current soft/interact target
If the interactable API is unavailable or blocked (for example by secret values in instanced content), the addon leaves the nameplate alone instead
of guessing.
COMMANDS
/npcf or /unp — dump all nameplates and their state
/npcf watch — print the nameplate count once per second (diagnostics)
/npcf mouse — print the frame chain under the cursor
/npcf target — print details for target / mouseover / soft target
KNOWN LIMITATIONS
- Instanced content: secret values may block unit information, so filtering may not apply there.
- UnitIsInteractable is the game's own judgement. Some friendly NPCs may be flagged interactable even if they do not offer a vendor or quest, and
will remain visible.
- Other nameplate addons (Plater, KuiNameplates, etc.) may conflict.
- Hidden nameplates still exist and still cost engine time; this addon does not improve FPS.
CHANGELOG
1.0.0 — Initial release.
简体中文
ElvUI_UsefulNPCPlates 让友方 NPC 姓名版只保留有用的部分:隐藏卫兵、平民、站桩怪等不可互动的友方 NPC 姓名版;商人、任务 NPC、可对话 NPC
以及当前软目标/互动目标继续显示。
这是信息过滤插件,不是性能插件。被隐藏的姓名版仍由游戏创建,插件只隐藏框架,不会提升帧数。
非官方附属组件,与 ElvUI 团队无关。支持 ElvUI 姓名版和暴雪原生姓名版。
前置要求
- 正式服 12.1.5(Interface 120105)
- 必须开启友方 NPC 姓名版:ElvUI 姓名板 → 可见性 → 友方 NPC,并且 姓名板 → 单位 → FRIENDLY_NPC 启用;或使用暴雪自带的「友方 NPC 姓名版」选项
判定规则
友方 + 不是玩家 + 游戏判定不可互动 + 不是当前软目标/互动目标,同时满足才隐藏。如果互动判定 API 不存在或被 secret value
阻断,插件会选择保留,而不是猜测。
命令
/npcf 或 /unp — 打印所有姓名版及状态
/npcf watch — 每秒打印姓名版数量(诊断)
/npcf mouse — 打印鼠标下的框架链
/npcf target — 打印 target / mouseover / 软目标详情
已知限制
- 副本内 secret value 可能阻断单位信息,过滤可能不生效
- UnitIsInteractable 是游戏自己的判定,部分友方 NPC 即使没有商人/任务功能,也可能被标为可互动而保留
- 与其他姓名版插件(Plater、KuiNameplates 等)可能冲突
- 隐藏的姓名版仍然存在并消耗引擎开销,本插件不提升帧数
更新日志
1.0.0 — 首个版本

