private async Task <FoundPlayer> SearchPlayer(IPacketWriter writer, Scope scope, City city) { var cityDetail = await writer.RefreshCityAsync(scope.AreaId, scope.Id, city.Index); if (cityDetail == null) { return(null); } if (cityDetail.Merchants.Count == 0) { return(null); } return(new FoundPlayer(scope.AreaName, scope.Id, city.PlayerName, city.PlayerId, cityDetail.Merchants[0], cityDetail.AutoPass)); }