Fix npc chat? ???

This commit is contained in:
SilicaAndPina 2022-04-18 10:08:44 +12:00
parent dbbf913719
commit ea544dcbe1
7 changed files with 43 additions and 22 deletions

View file

@ -2559,17 +2559,15 @@ namespace HISP.Game
if (result.GotoChatpoint != -1)
chatpoint = Npc.GetNpcChatpoint(npc, result.GotoChatpoint);
if (chatpoint.ChatText.Trim() == "")
if (result.NpcChat != null)
if(result.NpcChat.Trim() != "")
chatpoint.ChatText = result.NpcChat;
if (result.NpcChat != null && result.NpcChat.Trim() != "")
chatpoint.ChatText = result.NpcChat;
}
else
{
if (result.GotoChatpoint != -1)
chatpoint = Npc.GetNpcChatpoint(npc, result.GotoChatpoint);
if (result.NpcChat != null)
if (result.NpcChat != null && result.NpcChat.Trim() != "")
chatpoint.ChatText = result.NpcChat;
if (result.HideRepliesOnFail)