Example #1
0
 def startHoliday(self, holidayId):
     if holidayId not in self.holidayIdList:
         self.notify.info("setHolidayId: Starting Holiday %s" % (holidayId))
         self.holidayIdList.append(holidayId)
         if holidayId in decorationHolidays:
             self.decorationHolidayIds.append(holidayId)
             if (hasattr(base.cr.playGame, 'dnaStore') and
                 hasattr(base.cr.playGame, 'hood') and
                 hasattr(base.cr.playGame.hood, 'loader')):
                 # Put up decorations
                 if holidayId == ToontownGlobals.HALLOWEEN_COSTUMES:
                     self.holidayDecorator = HalloweenHolidayDecorator.HalloweenHolidayDecorator()                        
                 elif holidayId == ToontownGlobals.CRASHED_LEADERBOARD:                    
                     self.holidayDecorator = CrashedLeaderBoardDecorator.CrashedLeaderBoardDecorator()
                 else:
                     self.holidayDecorator = HolidayDecorator.HolidayDecorator()
                 self.holidayDecorator.decorate()
                 messenger.send("decorator-holiday-%d-starting" % holidayId)
         elif holidayId in promotionalSpeedChatHolidays:
             if hasattr(base, 'TTSCPromotionalMenu'):
                 base.TTSCPromotionalMenu.startHoliday(holidayId)
         elif holidayId == ToontownGlobals.MORE_XP_HOLIDAY:
             self.setMoreXpHolidayStart()
         elif holidayId == ToontownGlobals.JELLYBEAN_DAY:
             self.setJellybeanDayStart()
         elif holidayId == ToontownGlobals.CIRCUIT_RACING_EVENT:
             self.setGrandPrixWeekendStart()
         elif holidayId == ToontownGlobals.HYDRANT_ZERO_HOLIDAY:
             self.setHydrantZeroHolidayStart()
         elif holidayId == ToontownGlobals.APRIL_FOOLS_COSTUMES:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addAprilToonsMenu()   
         elif holidayId == ToontownGlobals.WINTER_CAROLING:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addCarolMenu()
         elif holidayId == ToontownGlobals.VALENTINES_DAY:
             messenger.send('ValentinesDayStart')
             base.localAvatar.setSystemMessage(0, TTLocalizer.ValentinesDayStart)
         elif holidayId == ToontownGlobals.SILLY_CHATTER_ONE:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseOneMenu()
         elif holidayId == ToontownGlobals.SILLY_CHATTER_TWO:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseTwoMenu()
         elif holidayId == ToontownGlobals.SILLY_CHATTER_THREE:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseThreeMenu()
         elif holidayId == ToontownGlobals.SILLY_CHATTER_FOUR:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseFourMenu()
         elif holidayId == ToontownGlobals.SILLY_CHATTER_FIVE:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseFiveMenu()
         elif holidayId == ToontownGlobals.VICTORY_PARTY_HOLIDAY:
             if hasattr(base, 'localAvatar') and base.localAvatar and hasattr(base.localAvatar, 'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addVictoryPartiesMenu()
Example #2
0
 def endHoliday(self, holidayId):
     if holidayId in self.holidayIdList:
         self.notify.info('setHolidayId: Ending Holiday %s' % holidayId)
         self.holidayIdList.remove(holidayId)
         if holidayId in self.decorationHolidayIds:
             self.decorationHolidayIds.remove(holidayId)
             if holidayId == ToontownGlobals.HALLOWEEN_PROPS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.removeHalloweenMenu(
                     )
                     self.setHalloweenPropsHolidayEnd()
             elif holidayId == ToontownGlobals.SPOOKY_PROPS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.removeHalloweenMenu(
                     )
                     self.setSpookyPropsHolidayEnd()
             elif holidayId == ToontownGlobals.WINTER_DECORATIONS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.removeWinterMenu(
                     )
                     self.setWinterDecorationsEnd()
             elif holidayId == ToontownGlobals.WACKY_WINTER_DECORATIONS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.removeWinterMenu(
                     )
             if hasattr(base.cr.playGame, 'dnaStore') and hasattr(
                     base.cr.playGame, 'hood') and hasattr(
                         base.cr.playGame.hood, 'loader'):
                 if holidayId == ToontownGlobals.HALLOWEEN_COSTUMES or holidayId == ToontownGlobals.SPOOKY_COSTUMES:
                     self.holidayDecorator = HalloweenHolidayDecorator.HalloweenHolidayDecorator(
                     )
                 elif holidayId == ToontownGlobals.CRASHED_LEADERBOARD:
                     self.holidayDecorator = CrashedLeaderBoardDecorator.CrashedLeaderBoardDecorator(
                     )
                 else:
                     self.holidayDecorator = HolidayDecorator.HolidayDecorator(
                     )
                 self.holidayDecorator.undecorate()
                 messenger.send('decorator-holiday-%d-ending' % holidayId)
         elif holidayId in promotionalSpeedChatHolidays:
             if hasattr(base, 'TTSCPromotionalMenu'):
                 base.TTSCPromotionalMenu.endHoliday(holidayId)
         elif holidayId == ToontownGlobals.MORE_XP_HOLIDAY:
             self.setMoreXpHolidayEnd()
         elif holidayId == ToontownGlobals.JELLYBEAN_DAY:
             pass
         elif holidayId == ToontownGlobals.CIRCUIT_RACING_EVENT:
             self.setGrandPrixWeekendEnd()
         elif holidayId == ToontownGlobals.APRIL_FOOLS_COSTUMES:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeAprilToonsMenu(
                 )
         elif holidayId == ToontownGlobals.VALENTINES_DAY:
             messenger.send('ValentinesDayStop')
             base.localAvatar.setSystemMessage(0,
                                               TTLocalizer.ValentinesDayEnd)
         elif holidayId == ToontownGlobals.SILLY_CHATTER_ONE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSillyPhaseOneMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_TWO:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSillyPhaseTwoMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_THREE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSillyPhaseThreeMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_FOUR:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSillyPhaseFourMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_FIVE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSillyPhaseFiveMenu(
                 )
         elif holidayId == ToontownGlobals.VICTORY_PARTY_HOLIDAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeVictoryPartiesMenu(
                 )
         elif holidayId == ToontownGlobals.WINTER_CAROLING:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeCarolMenu(
                 )
         elif holidayId == ToontownGlobals.WACKY_WINTER_CAROLING:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeCarolMenu(
                 )
         elif holidayId == ToontownGlobals.SELLBOT_NERF_HOLIDAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setSellbotNerfHolidayEnd()
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSellbotNerfMenu(
                 )
         elif holidayId == ToontownGlobals.JELLYBEAN_TROLLEY_HOLIDAY or holidayId == ToontownGlobals.JELLYBEAN_TROLLEY_HOLIDAY_MONTH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeJellybeanJamMenu(
                 )
         elif holidayId == ToontownGlobals.JELLYBEAN_FISHING_HOLIDAY or holidayId == ToontownGlobals.JELLYBEAN_FISHING_HOLIDAY_MONTH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeJellybeanJamMenu(
                 )
         elif holidayId == ToontownGlobals.JELLYBEAN_PARTIES_HOLIDAY or holidayId == ToontownGlobals.JELLYBEAN_PARTIES_HOLIDAY_MONTH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setJellybeanPartiesHolidayEnd()
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeJellybeanJamMenu(
                 )
         elif holidayId == ToontownGlobals.BLACK_CAT_DAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setBlackCatHolidayEnd()
         elif holidayId == ToontownGlobals.SPOOKY_BLACK_CAT:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setSpookyBlackCatHolidayEnd()
         elif holidayId == ToontownGlobals.TOP_TOONS_MARATHON:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setTopToonsMarathonEnd()
         elif holidayId == ToontownGlobals.SELLBOT_INVASION:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSellbotInvasionMenu(
                 )
         elif holidayId == ToontownGlobals.SELLBOT_FIELD_OFFICE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeSellbotFieldOfficeMenu(
                 )
         elif holidayId == ToontownGlobals.IDES_OF_MARCH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.removeIdesOfMarchMenu(
                 )
Example #3
0
 def startHoliday(self, holidayId):
     if holidayId not in self.holidayIdList:
         self.notify.info('setHolidayId: Starting Holiday %s' % holidayId)
         self.holidayIdList.append(holidayId)
         if holidayId in decorationHolidays:
             self.decorationHolidayIds.append(holidayId)
             if holidayId == ToontownGlobals.HALLOWEEN_PROPS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.addHalloweenMenu(
                     )
                     self.setHalloweenPropsHolidayStart()
             elif holidayId == ToontownGlobals.SPOOKY_PROPS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.addHalloweenMenu(
                     )
                     self.setSpookyPropsHolidayStart()
             elif holidayId == ToontownGlobals.WINTER_DECORATIONS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.addWinterMenu(
                     )
                     self.setWinterDecorationsStart()
             elif holidayId == ToontownGlobals.WACKY_WINTER_DECORATIONS:
                 if hasattr(base,
                            'localAvatar') and base.localAvatar and hasattr(
                                base.localAvatar,
                                'chatMgr') and base.localAvatar.chatMgr:
                     base.localAvatar.chatMgr.chatInputSpeedChat.addWinterMenu(
                     )
                     self.setWackyWinterDecorationsStart()
             if hasattr(base.cr.playGame, 'dnaStore') and hasattr(
                     base.cr.playGame, 'hood') and hasattr(
                         base.cr.playGame.hood, 'loader'):
                 if holidayId == ToontownGlobals.HALLOWEEN_COSTUMES or holidayId == ToontownGlobals.SPOOKY_COSTUMES:
                     self.holidayDecorator = HalloweenHolidayDecorator.HalloweenHolidayDecorator(
                     )
                 elif holidayId == ToontownGlobals.CRASHED_LEADERBOARD:
                     self.holidayDecorator = CrashedLeaderBoardDecorator.CrashedLeaderBoardDecorator(
                     )
                 else:
                     self.holidayDecorator = HolidayDecorator.HolidayDecorator(
                     )
                 self.holidayDecorator.decorate()
                 messenger.send('decorator-holiday-%d-starting' % holidayId)
         elif holidayId in promotionalSpeedChatHolidays:
             if hasattr(base, 'TTSCPromotionalMenu'):
                 base.TTSCPromotionalMenu.startHoliday(holidayId)
         elif holidayId == ToontownGlobals.MORE_XP_HOLIDAY:
             self.setMoreXpHolidayStart()
         elif holidayId == ToontownGlobals.JELLYBEAN_DAY:
             pass
         elif holidayId == ToontownGlobals.CIRCUIT_RACING_EVENT:
             self.setGrandPrixWeekendStart()
         elif holidayId == ToontownGlobals.HYDRANT_ZERO_HOLIDAY:
             self.setHydrantZeroHolidayStart()
         elif holidayId == ToontownGlobals.APRIL_FOOLS_COSTUMES:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addAprilToonsMenu(
                 )
         elif holidayId == ToontownGlobals.WINTER_CAROLING:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addCarolMenu()
                 self.setWinterCarolingStart()
         elif holidayId == ToontownGlobals.WACKY_WINTER_CAROLING:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addCarolMenu()
         elif holidayId == ToontownGlobals.VALENTINES_DAY:
             messenger.send('ValentinesDayStart')
             base.localAvatar.setSystemMessage(
                 0, TTLocalizer.ValentinesDayStart)
         elif holidayId == ToontownGlobals.SILLY_CHATTER_ONE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseOneMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_TWO:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseTwoMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_THREE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseThreeMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_FOUR:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseFourMenu(
                 )
         elif holidayId == ToontownGlobals.SILLY_CHATTER_FIVE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSillyPhaseFiveMenu(
                 )
         elif holidayId == ToontownGlobals.VICTORY_PARTY_HOLIDAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addVictoryPartiesMenu(
                 )
         elif holidayId == ToontownGlobals.SELLBOT_NERF_HOLIDAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setSellbotNerfHolidayStart()
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSellbotNerfMenu(
                 )
         elif holidayId == ToontownGlobals.JELLYBEAN_TROLLEY_HOLIDAY or holidayId == ToontownGlobals.JELLYBEAN_TROLLEY_HOLIDAY_MONTH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addJellybeanJamMenu(
                     TTSCJellybeanJamMenu.JellybeanJamPhases.TROLLEY)
         elif holidayId == ToontownGlobals.JELLYBEAN_FISHING_HOLIDAY or holidayId == ToontownGlobals.JELLYBEAN_FISHING_HOLIDAY_MONTH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addJellybeanJamMenu(
                     TTSCJellybeanJamMenu.JellybeanJamPhases.FISHING)
         elif holidayId == ToontownGlobals.JELLYBEAN_PARTIES_HOLIDAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setJellybeanPartiesHolidayStart()
         elif holidayId == ToontownGlobals.JELLYBEAN_PARTIES_HOLIDAY_MONTH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setJellybeanMonthHolidayStart()
         elif holidayId == ToontownGlobals.BANK_UPGRADE_HOLIDAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setBankUpgradeHolidayStart()
         elif holidayId == ToontownGlobals.BLACK_CAT_DAY:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setBlackCatHolidayStart()
         elif holidayId == ToontownGlobals.SPOOKY_BLACK_CAT:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setSpookyBlackCatHolidayStart()
         elif holidayId == ToontownGlobals.TOP_TOONS_MARATHON:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setTopToonsMarathonStart()
         elif holidayId == ToontownGlobals.SELLBOT_INVASION:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSellbotInvasionMenu(
                 )
         elif holidayId == ToontownGlobals.SELLBOT_FIELD_OFFICE:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 base.localAvatar.chatMgr.chatInputSpeedChat.addSellbotFieldOfficeMenu(
                 )
         elif holidayId == ToontownGlobals.IDES_OF_MARCH:
             if hasattr(base,
                        'localAvatar') and base.localAvatar and hasattr(
                            base.localAvatar,
                            'chatMgr') and base.localAvatar.chatMgr:
                 self.setIdesOfMarchStart()
                 base.localAvatar.chatMgr.chatInputSpeedChat.addIdesOfMarchMenu(
                 )
         elif holidayId == ToontownGlobals.EXPANDED_CLOSETS:
             self.setExpandedClosetsStart()
         elif holidayId == ToontownGlobals.KARTING_TICKETS_HOLIDAY:
             self.setKartingTicketsHolidayStart()