Login
User Name:

Password:



Register

Forgot your password?
do_advance
Jun 27, 2026 10:32 am
By Remcon
Time spamming LOP1.6
Jun 17, 2026 4:03 pm
By Remcon
A Bash Startup Script
Feb 7, 2026 3:49 pm
By eldhamud
Force Skills
Jan 1, 2026 3:58 pm
By Elwood
Overland with Bitmaps
Jul 4, 2025 11:57 pm
By Samson
SillyMUD 1.2a
Author: J. Brothers, J. Sievert, et al
Submitted by: Samson
SillyMUD 1.1b
Author: J. Brothers, J. Sievert, et al
Submitted by: Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
Users Online
Anthropic, DotBot, Baiduspider, Amazonbot

Members: 0
Guests: 98
Stats
Files
Topics
Posts
Members
Newest Member
512
3,813
19,727
594
RosaFunk74

» SmaugMuds » Codebases » LoP Codebase » Time spamming LOP1.6
Forum Rules | Mark all | Recent Posts

Time spamming LOP1.6
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 17, 2026 4:03 pm   Last edited Jun 17, 2026 4:05 pm by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,991
JoinedJul 26, 2005

 
timeinfo.c
around line 528 find
   for( pArea = first_area; pArea; pArea = ( pArea == last_area ) ? first_build : pArea->next )
   {
      get_time_echo( pArea, pArea->weather );

      switch( pArea->current_time.hour )
      {
         case 5:
         case 6:
         case 12:
         case 19:
         case 20:
            for( d = first_descriptor; d; d = d->next )
            {
               if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
                  continue;
               if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
                  continue;

               weath = d->character->in_room->area->weather;
               if( !weath->echo )
                  continue;
               set_char_color( weath->echo_color, d->character );
               send_to_char( weath->echo, d->character );
            }
            break;

         case 24:
            if( ( hmessage = show_holiday( ) ) )
            {
               for( d = first_descriptor; d; d = d->next )
               {
                  if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
                     continue;
                  if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
                     continue;

                  ch_printf( d->character, "%s\r\n", hmessage );
               }
            }
            break;
      }
   }

change it to
   for( pArea = first_area; pArea; pArea = ( pArea == last_area ) ? first_build : pArea->next )
   {
      get_time_echo( pArea, pArea->weather );

      switch( pArea->current_time.hour )
      {
         case 5:
         case 6:
         case 12:
         case 19:
         case 20:
            for( d = first_descriptor; d; d = d->next )
            {
               if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
                  continue;
               if( d->character->in_room->area != pArea )
                  continue;
               if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
                  continue;

               weath = d->character->in_room->area->weather;
               if( !weath->echo )
                  continue;
               set_char_color( weath->echo_color, d->character );
               send_to_char( weath->echo, d->character );
            }
            break;

         case 24:
            if( ( hmessage = show_holiday( ) ) )
            {
               for( d = first_descriptor; d; d = d->next )
               {
                  if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
                     continue;
                  if( d->character->in_room->area != pArea )
                     continue;
                  if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
                     continue;

                  ch_printf( d->character, "%s\r\n", hmessage );
               }
            }
            break;
      }
   }

Pages:<< prev 1 next >>