hondacrx
2024-02-02 21:49:02 -05:00
parent 75201f56ce
commit 4b669cfb5d
45 changed files with 1742 additions and 1273 deletions
+5 -1
View File
@@ -1899,9 +1899,13 @@ namespace Game
public void SendServerMessage(ServerMessageType messageID, string stringParam = "", Player player = null)
{
ServerMessagesRecord serverMessage = CliDB.ServerMessagesStorage.LookupByKey(messageID);
if (serverMessage == null)
return;
ChatServerMessage packet = new();
packet.MessageID = (int)messageID;
if (messageID <= ServerMessageType.String)
if (serverMessage.Text[player != null ? player.GetSession().GetSessionDbcLocale() : GetDefaultDbcLocale()].Contains("%s"))
packet.StringParam = stringParam;
if (player != null)