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

            session.Send(ChatStickerPacket.UseSticker(stickerId, script));
        }
Exemplo n.º 2
0
        private static void HandleUseSticker(GameSession session, PacketReader packet)
        {
            int    stickerId = packet.ReadInt();
            string script    = packet.ReadUnicodeString();

            byte groupId = ChatStickerMetadataStorage.GetGroupId(stickerId);

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

            session.Send(ChatStickerPacket.UseSticker(stickerId, script));
        }