From 986b82756077af4faac0c3875d078100acf7b98c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 16 Oct 2021 18:22:13 -0400 Subject: [PATCH] Oops forgot the file. --- Source/Game/Text/CreatureTextManager.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Source/Game/Text/CreatureTextManager.cs b/Source/Game/Text/CreatureTextManager.cs index bface75d3..c40e5aa7e 100644 --- a/Source/Game/Text/CreatureTextManager.cs +++ b/Source/Game/Text/CreatureTextManager.cs @@ -106,7 +106,7 @@ namespace Game } } - if (temp.TextRange > CreatureTextRange.World) + if (temp.TextRange > CreatureTextRange.Personal) { Log.outError(LogFilter.Sql, "CreatureTextMgr: Entry {0}, Group {1}, Id {2} in table `creature_text` has incorrect TextRange {3}.", temp.creatureId, temp.groupId, temp.id, temp.TextRange); temp.TextRange = CreatureTextRange.Normal; @@ -339,6 +339,12 @@ namespace Game } return; } + case CreatureTextRange.Personal: + if (whisperTarget == null || !whisperTarget.IsPlayer()) + return; + + whisperTarget.ToPlayer().SendPacket(data); + return; case CreatureTextRange.Normal: default: break; @@ -485,6 +491,12 @@ namespace Game } return; } + case CreatureTextRange.Personal: + if (whisperTarget == null || !whisperTarget.IsPlayer()) + return; + + localizer.Invoke(whisperTarget.ToPlayer()); + return; case CreatureTextRange.Normal: default: break; @@ -540,7 +552,8 @@ namespace Game Area = 1, Zone = 2, Map = 3, - World = 4 + World = 4, + Personal = 5 } public class CreatureTextLocalizer : IDoWork