private static void HandleGroupChatSticker(GameSession session, PacketReader packet)
        {
            int    stickerId     = packet.ReadInt();
            string groupChatName = packet.ReadUnicodeString();

            // TODO: Check if user has sticker

            session.Send(ChatStickerPacket.GroupChatSticker(stickerId, groupChatName));
        }
예제 #2
0
        private static void HandleGroupChatSticker(GameSession session, PacketReader packet)
        {
            int    stickerId     = packet.ReadInt();
            string groupChatName = packet.ReadUnicodeString();

            byte groupId = ChatStickerMetadataStorage.GetGroupId(stickerId);

            if (!session.Player.ChatSticker.Any(p => p.GroupId == groupId))
            {
                return;
            }

            session.Send(ChatStickerPacket.GroupChatSticker(stickerId, groupChatName));
        }