private static void HandleUseSticker(GameSession session, PacketReader packet) { int stickerId = packet.ReadInt(); string script = packet.ReadUnicodeString(); session.Send(ChatStickerPacket.UseSticker(stickerId, script)); }
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)); }