unstable whisper, now you can dm your friend(if you have any lol)

This commit is contained in:
rafi1212122
2023-06-08 09:37:50 +07:00
parent cd2087f6cb
commit 115fc0951b
8 changed files with 181 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using Common.Resources.Proto;
using Common.Database;
using Common.Resources.Proto;
using PemukulPaku.GameServer.Game.Chatrooms;
namespace PemukulPaku.GameServer.Handlers
@@ -11,6 +12,8 @@ namespace PemukulPaku.GameServer.Handlers
SendChatMsgNotify Data = packet.GetDecodedBody<SendChatMsgNotify>();
if (Data.ChatMsg.Channel == ChatMsg.MsgChannel.World)
WorldChatroom.GetInstance().GetChatroom(session).OnSendChat(session, Data.ChatMsg);
else if (Data.ChatMsg.Channel == ChatMsg.MsgChannel.Private)
PrivateChatManager.OnSendChatMsg(session, Data);
}
}
}