예제 #1
0
 public static bool isCrystals(HWallItem item)
 {
     if (Bobba_LimiteEditionMayWall.Contains(item.TypeId))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public static void HandleRemovedFurni(HWallItem item)
 {
     if (Furni.Contains(item))
     {
         Furni.Remove(item);
     }
     if (!RemFurni.Contains(item))
     {
         RemFurni.Add(item);
     }
 }
예제 #3
0
 public static bool isRareFurni(HWallItem item)
 {
     if (Bobba_RariMaggioHabbo.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_RariLPTPOK.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_RariSTAFF.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_LimitedScaduti.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_QuadriLimited.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_TestBug.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FurniCalippo.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Promozioni.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Rari.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_System.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Utility.Contains(item.TypeId))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #4
0
        public static List <HWallItem> BobbaParser(HMessage packet)
        {
            int ownersCount = packet.ReadInteger();

            for (int i = 0; i < ownersCount; i++)
            {
                packet.ReadInteger();
                packet.ReadString();
            }

            var wallItems = new HWallItem[packet.ReadInteger()];

            for (int i = 0; i < wallItems.Length; i++)
            {
                wallItems[i] = new HWallItem(packet);
            }
            return(wallItems.ToList());
        }
예제 #5
0
        private async void OnItems(DataInterceptedEventArgs e)
        {
            e.Continue();

            IEnumerable <HWallItem> items = HWallItem.Parse(e.Packet)
                                            .Where(i => i.TypeId == 3 && !Photos.ContainsKey(i.Id) &&
                                                   !_roomPhotoQueue.Contains(i.Id));

            IEnumerable <int> unknownIds = await Api.BatchCheckExistingIdsAsync(items.Select(i => i.Id), Hotel).ConfigureAwait(false);

            int itemCount    = items.Count();
            int unknownCount = unknownIds.Count();

            string alertMessage = (itemCount == 0 ? Constants.SCANNING_EMPTY : itemCount.ToString())
                                  + (itemCount == 0 || itemCount > 1 ? Constants.SCANNING_MULTI : Constants.SCANNING_SINGLE)
                                  + Constants.SCANNING_WALLITEMS_DONE;

            if (unknownCount > 0)
            {
                alertMessage += " " + unknownCount + Constants.SCANNING_WALLITEMS_UNDISC;
            }

            HabboAlert alert = AlertBuilder.CreateAlert(HabboAlertType.Bubble, alertMessage)
                               .WithImageUrl(Constants.BASE_URL + Constants.BUBBLE_ICON_URL);

            await Connection.SendToClientAsync(alert.ToPacket(In.NotificationDialog)).ConfigureAwait(false);

            _isProcessingItems = true;

            foreach (HWallItem item in items)
            {
                if (unknownIds.Contains(item.Id))
                {
                    _roomPhotoQueue.Enqueue(item.Id);
                    _roomPhotoItems.TryAdd(item.Id, item);
                }
                else
                {
                    //TODO: Another pipeline.
                    await GetKnownPhotoByIdAsync(item.Id);
                }
            }
        }
예제 #6
0
 public static void HandleAddedFurni(HWallItem item)
 {
     if (SnapshotRemovedWallItems.Contains(item))
     {
         SnapshotRemovedWallItems.Remove(item);
     }
     if (RemovedIrregularWallFurnis.Contains(item))
     {
         RemovedIrregularWallFurnis.Remove(item);
     }
     if (SnapshotRemovedIrregularWallFurnis.Contains(item))
     {
         SnapshotRemovedIrregularWallFurnis.Remove(item);
     }
     if (SnapshotRemovedRegularWallFurnis.Contains(item))
     {
         SnapshotRemovedRegularWallFurnis.Remove(item);
     }
 }
예제 #7
0
 private void HandleGameObjects(HPacket packet, bool isOutgoing)
 {
     packet.Position = 0;
     if (!isOutgoing)
     {
         if (packet.Id == In.Users)
         {
             HEntity[] entities = HEntity.Parse(packet);
             foreach (HEntity entity in entities)
             {
                 _entities[entity.Index] = entity;
             }
             _container.OnEntitiesLoaded(entities.Length);
         }
         else if (packet.Id == In.Items)
         {
             HWallItem[] wallItems = HWallItem.Parse(packet);
             foreach (HWallItem wallItem in wallItems)
             {
                 _wallItems[wallItem.Id] = wallItem;
             }
             _container.OnWallItemsLoaded(wallItems.Length);
         }
         else if (packet.Id == In.Objects)
         {
             HFloorItem[] floorItems = HFloorItem.Parse(packet);
             foreach (HFloorItem floorItem in floorItems)
             {
                 _floorItems[floorItem.Id] = floorItem;
             }
             _container.OnFloorItemsLoaded(floorItems.Length);
         }
         else if (packet.Id == In.FloorHeightMap)
         {
             _entities.Clear();
             _wallItems.Clear();
             _floorItems.Clear();
         }
     }
     packet.Position = 0;
 }
예제 #8
0
        private object[] CreateValues(DataInterceptedEventArgs args)
        {
            ParameterInfo[] parameters = Method.GetParameters();
            var             values     = new object[parameters.Length];

            int position = 0;

            for (int i = 0; i < values.Length; i++)
            {
                ParameterInfo parameter = parameters[i];
                switch (Type.GetTypeCode(parameter.ParameterType))
                {
                case TypeCode.UInt16:
                {
                    if (parameter.Name.Equals("id", StringComparison.OrdinalIgnoreCase))
                    {
                        values[i] = args.Packet.Id;
                    }
                    else
                    {
                        values[i] = args.Packet.ReadUInt16(ref position);
                    }
                    break;
                }

                case TypeCode.Int32:
                    values[i] = args.Packet.ReadInt32(ref position);
                    break;

                case TypeCode.Boolean:
                    values[i] = args.Packet.ReadBoolean(ref position);
                    break;

                case TypeCode.Byte:
                    values[i] = args.Packet.ReadByte(ref position);
                    break;

                case TypeCode.String:
                    values[i] = args.Packet.ReadUTF8(ref position);
                    break;

                case TypeCode.Double:
                    values[i] = args.Packet.ReadDouble(ref position);
                    break;

                case TypeCode.Object:
                {
                    if (parameter.ParameterType == typeof(DataInterceptedEventArgs))
                    {
                        values[i] = args;
                    }
                    else if (parameter.ParameterType == typeof(HPacket))
                    {
                        values[i] = args.Packet;
                    }
                    else if (parameter.ParameterType == typeof(HPoint))
                    {
                        values[i] = new HPoint(args.Packet.ReadInt32(ref position), args.Packet.ReadInt32(ref position));
                    }
                    else if (parameter.ParameterType == typeof(byte[]))
                    {
                        int length = args.Packet.ReadInt32(ref position);
                        values[i] = args.Packet.ReadBytes(length, ref position);
                    }
                    else if (typeof(IList <HEntity>).IsAssignableFrom(parameter.ParameterType))
                    {
                        args.Packet.Position = 0;
                        values[i]            = HEntity.Parse(args.Packet);
                    }
                    else if (typeof(IList <HFloorItem>).IsAssignableFrom(parameter.ParameterType))
                    {
                        args.Packet.Position = 0;
                        values[i]            = HFloorItem.Parse(args.Packet);
                    }
                    else if (typeof(IList <HWallItem>).IsAssignableFrom(parameter.ParameterType))
                    {
                        args.Packet.Position = 0;
                        values[i]            = HWallItem.Parse(args.Packet);
                    }
                    break;
                }
                }
            }
            return(values);
        }
예제 #9
0
        public static bool isRareFurni(HWallItem item)
        {
            if (Bobba_PagineStaff.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_BGWired.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariMaggioHabbo.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariFogliadiTe.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariVerdi.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_GameFLASH.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariLPTPOK.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariSTAFF.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_MiniTornei.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_CompetizioniEventi.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Foche.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Tartarughe.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Ricci.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Ippopotami.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Panda.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_DraghiStaff.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariMensili.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Arcadev_1220.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Raroniv_min_1250.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_UovaHabberge.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_TrofeiStaff.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_LimitedScaduti.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Habbo15Anni.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_ScaricatidaHabbo.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_TrofeiMarzo2020.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariHarryPotter.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Vari1.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariCelesti.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_QuadriLimited.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Bradipi.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_LibriHabbo.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariLTDdelmese.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Sacchidabox.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Carpe.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_GattiPeluche.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Macchinedelcaff.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_RariBordeaux.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_TappetiniZampa.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_LampadaPanciuta.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_TestBug.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_EdizioneLimitata.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_BamboleBoBBaWeen.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_BonusRari17.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_BonusRari18.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_FurniCalippo.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Promozioni.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Rari.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_System.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Trax.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_NuoviWired_s.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_Utility.Contains(item.TypeId))
            {
                return(true);
            }
            else if (Bobba_LimitedEditionNEW.Contains(item.TypeId))
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }
예제 #10
0
 public static void HandleRemovedFurni(HWallItem item)
 {
     if (IrregularWallFurni.Contains(item))
     {
         IrregularWallFurni.Remove(item); if (!RemovedIrregularWallFurnis.Contains(item))
         {
             RemovedIrregularWallFurnis.Add(item);
         }
     }
     if (RegularWallFurni.Contains(item))
     {
         RegularWallFurni.Remove(item); if (!RemovedRegularWallFurnis.Contains(item))
         {
             RemovedRegularWallFurnis.Add(item);
         }
     }
     if (WhitelistedWallFurni.Contains(item))
     {
         WhitelistedWallFurni.Remove(item);
     }
     if (HIDDEN_IRREGULAR_WALLFURNIS.Contains(item))
     {
         HIDDEN_IRREGULAR_WALLFURNIS.Remove(item);
     }
     if (HIDDEN_REGULAR_WALLFURNIS.Contains(item))
     {
         HIDDEN_REGULAR_WALLFURNIS.Remove(item);
     }
     if (WallRaresSnapshotCount.Contains(item))
     {
         WallRaresSnapshotCount.Remove(item);
     }
     if (SnapshotRegularWallItems.Contains(item))
     {
         SnapshotRegularWallItems.Remove(item);
     }
     if (SnapShotIrregularWallFurni.Contains(item))
     {
         SnapShotIrregularWallFurni.Remove(item);
     }
     if (CatalogueWallFurnis.Contains(item))
     {
         CatalogueWallFurnis.Remove(item);
     }
     if (RaresWallFurnis.Contains(item))
     {
         RaresWallFurnis.Remove(item);
     }
     if (RoomWallItemsSnapshot.Contains(item))
     {
         RoomWallItemsSnapshot.Remove(item);
     }
     if (SnapshotCatalogueWallItems.Contains(item))
     {
         SnapshotCatalogueWallItems.Remove(item);
     }
     if (CrystalsWallItems.Contains(item))
     {
         CrystalsWallItems.Remove(item);
     }
     if (SnapshotCrystalsWallFurnis.Contains(item))
     {
         SnapshotCrystalsWallFurnis.Remove(item);
     }
     if (UnknownWallItems.Contains(item))
     {
         UnknownWallItems.Remove(item);
     }
 }
예제 #11
0
 public static bool IsCatalogueFurni(HWallItem item)
 {
     if (Bobba_FurniClub.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FurniCavallo.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Studiodellartista.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_India.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Attico.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Celestiali.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Boutique.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Cameretta.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BoBBaStar.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BoBBaWood2007.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BoBBaWood2011.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BoBBaWood2013.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BoBBaWood2018.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Twilight.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Corallo.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CyberPunk.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Giungla.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Gotici2007.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Gotici2011.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Gotici2016.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_LostCity.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_LostTribe.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Militari.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_MTVStudio.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_MysticIlBene.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_MysticIlMale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Olimpiadi2012.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Palooza2014.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Relax.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_RitornoaScuola.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Romantici.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Runway.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Savana.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_SciFi2009.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_SteamPunk.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Ufficio.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Vanilla.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_WildWest.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CapodannoLed.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CapodannoCinese.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Carnevale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Amore.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Shalimar.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Bling.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_HotelCuoreSpezzato.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_GondoleeCanali.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CentroBenessere.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_AnticoGiappone.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FlowerPower.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_UovaTremolanti.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_LagoMorph.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Terradeidolciumi.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FattoriadiPasqua.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FairyTail.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Halloween.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CasaInfestata.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Voodoo.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_PartyHabboween.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Cacciaaimostri.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_IlGiornodeiMorti.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Habbocalypse.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_LaboratorioContaminato.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CongregadiStreghe.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Dragonidi.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Virus.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Pinguiniartici.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FreddoNatale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CittdiNatale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CabinaNatalizia.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CastellodiNatale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Bavarian.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_CittadellaNatalizia.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_FestivalInvernale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Tsunami.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Tiki.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_EspansioneTiki.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Africa.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Alhambra.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Asia.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Egitto.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Maya.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Giappone2008.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Giappone2015.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Parigi.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Vichinghi.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Accessori.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_EspansioneBagno.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Base.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Country.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Cubie.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Cucina2009.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Cucina2010.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Diner.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Giardino.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Grunge.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_HabboClub.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Neon.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Ospedale.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BoBBaSpecial.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_EstensionePura.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Rustici.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Universita.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Urban.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_USVA.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Finestre.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_LucieBuio.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_ParetieCo.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Poster.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Hogwarts.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Mall17.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_BattleBanzai.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Calcio.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_Snowboard.Contains(item.TypeId))
     {
         return(true);
     }
     else if (Bobba_camera.Contains(item.TypeId))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }