diff --git a/Dalamud/Game/ClientState/Actors/Types/NonPlayer/Npc.cs b/Dalamud/Game/ClientState/Actors/Types/NonPlayer/Npc.cs index 2bd31b1e5..6f8681aab 100644 --- a/Dalamud/Game/ClientState/Actors/Types/NonPlayer/Npc.cs +++ b/Dalamud/Game/ClientState/Actors/Types/NonPlayer/Npc.cs @@ -14,5 +14,10 @@ namespace Dalamud.Game.ClientState.Actors.Types.NonPlayer { /// The data ID of the NPC linking to their respective game data. /// public int DataId => this.actorStruct.DataId; + + /// + /// The name ID of the NPC linking to their respective game data. + /// + public int NameId => this.actorStruct.NameId; } } diff --git a/Dalamud/Game/ClientState/Structs/Actor.cs b/Dalamud/Game/ClientState/Structs/Actor.cs index d3089f8dd..c24eef277 100644 --- a/Dalamud/Game/ClientState/Structs/Actor.cs +++ b/Dalamud/Game/ClientState/Structs/Actor.cs @@ -24,7 +24,8 @@ namespace Dalamud.Game.ClientState.Structs // This field can't be correctly aligned, so we have to cut it manually. [FieldOffset(0x17d0)] [MarshalAs(UnmanagedType.ByValArray, SizeConst = 7)] public byte[] CompanyTag; - + + [FieldOffset(0x1868)] public int NameId; [FieldOffset(0x1884)] public byte CurrentWorld; [FieldOffset(0x1886)] public byte HomeWorld; [FieldOffset(6328)] public int CurrentHp; diff --git a/Dalamud/Interface/DalamudDataWindow.cs b/Dalamud/Interface/DalamudDataWindow.cs index b98b4e242..cac5794af 100644 --- a/Dalamud/Interface/DalamudDataWindow.cs +++ b/Dalamud/Interface/DalamudDataWindow.cs @@ -90,7 +90,7 @@ namespace Dalamud.Interface $" -> {i} - {actor.Name} - {actor.Position.X} {actor.Position.Y} {actor.Position.Z}\n"; if (actor is Npc npc) - stateString += $" DataId: {npc.DataId}\n"; + stateString += $" DataId: {npc.DataId} NameId:{npc.NameId}\n"; if (actor is Chara chara) stateString +=