Re: [SMAUG] You hear some squeaking sounds...

Re: [SMAUG] You hear some squeaking sounds...



On Sun, 19 Dec 2004 22:53:14 -0800 (PST), andrew cardin
<mcloud313@yahoo.com> wrote:
> Does anyone know how I get rid of this automated
> message?  For an RP community it makes no sense and
> kind of ruins the enviroment I'd like to just take it
> out of the game.  I'd be gratefull for any help.

It's the default zone reset message.     

I suppose it has something to do with at least showing the user another prompt
when mobs/objects suddenly start appearing in the room.

Btw, I don't much care for the message either.
To disable the default zone reset message, you need to
edit the source code, head over to src/db.c:

look for the line that says

              strcpy( buf, "You hear some squeaking sounds...\n\r" ); 

Now change that one line into these two lines:

           /*  strcpy( buf, "You hear some squeaking sounds...\n\r" );  */
            buf[0] = '\0';

Head down a little further to

                    set_char_color( AT_RESET, pch );
                    send_to_char( buf, pch );

Change it to

                    if (buf[0] != '\0') {
                        set_char_color( AT_RESET, pch );
                        send_to_char( buf, pch );
                   }

If in doubt, back it up first.

Now recompile your mud, restart, etc, and they should be gone.

And yet you retain the option of using zone reset messages sometime
down the road if you really want to some day.

-- 
-Mysid