Login
User Name:

Password:



Register

Forgot your password?
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
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
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
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, Sogou, Baiduspider

Members: 0
Guests: 57
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,725
595
JoannDesim

» 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,990
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 >>