<long time lurker mode off>
Hi there,
you may very well be on to something, as your object code snippet looks
bout the same as the one in my MUD, does your function right after the
object bit have a little bout doors? like the following I mean
for ( door = 0; door <= 5; door++ )
{
EXIT_DATA *pexit;
if ( ( pexit = location->exit[door] ) != NULL )
{
sprintf( buf, "Door: %d. To: %d. Key: %d. Exit flags: %d.\n\rKeyword:
'%s'. Description: %s",
door,
(pexit->u1.to_room == NULL ? -1 : pexit->u1.to_room->vnum),
pexit->key,
pexit->exit_info,
pexit->keyword,
pexit->description[0] != '\0' ? pexit->description : "(none).\n\r" );
send_to_char( buf, ch );
}
}
check in yours if its trying to print whether or not there ARE doors..
I seem to remember something bout that being a bug WAAAAAY back in the day.
the reason that I say this I the fact that the "extra" stuff showing on your
screen
happens after that nice little send_to_char(".\n\r", ch);
so it is most likely that your problem lies _after_ than before :)
a judicious use of sprintf's/chprintf's/send_to_char's sprinkled throughout
your code
could solve this for you.. like so
send_to_char( "before door loop", ch );
for ( door = 0; door <= 5; door++ )
{
EXIT_DATA *pexit;
if ( ( pexit = location->exit[door] ) != NULL )
{
sprintf( buf, "Door: %d. To: %d. Key: %d. Exit flags: %d.\n\rKeyword:
'%s'. Description: %s",
door,
(pexit->u1.to_room == NULL ? -1 : pexit->u1.to_room->vnum),
pexit->key,
pexit->exit_info,
pexit->keyword,
pexit->description[0] != '\0' ? pexit->description : "(none).\n\r" );
send_to_char( buf, ch );
}
}
send_to_char( "after door loop", ch );
this would let you know if the garbage is before/in/after the loop(based on
where it shows)
Good luck,
TechnoHunter
<long time lurker mode on>
>Thank you for your suggestions. However, neither of them seem to solve my
>issue. This leads me to believe that my issue is either a) Above the block
>of code I showed you, or b) Below it.
>
>Would someone be kind enough to send me a private copy of their do_rstat
>function (or a stock version if they have it)? I'd like to compare mine to
>see if I've mucked something up elsewhere.
>
>Optionally, I can post my code to the list... Whichever is the majority
>preference.