private void ExchangeAccepted(string data) { if (_client.Character.State != Character.CharacterState.OnExchange) { return; } var receiverCharacter = _client.Character.ExchangeWithCharacter; // TODO : other type of exchange here, maybe do a switch later... if (receiverCharacter == null) { return; } var receiverClient = GameServer.Clients.Find(x => x.Character == receiverCharacter); if (receiverClient == null) { return; } ExchangeManager.CreateExchangeSession(_client.Character, receiverClient.Character); receiverClient.SendPackets(string.Format("{0}{1}", Packet.ExchangeCreated, "1")); _client.SendPackets(string.Format("{0}{1}", Packet.ExchangeCreated, "1")); }