ok, i've been tryin to mess with the doors on my smaug to show up. i've tried a messin with the code, but i'm still messin it up somewhere. here is the code.
the commented out part is what i tried. i also had the
&& !IS_SET(pexit->exit_info, EX_CLOSED) and
|| IS_SET(pexit->exit_info, EX_ISDOOR))
commented out. when it came up on the mud, it would show:
North #North South #South so i have the idea of what i need, just not know how to do it. any helps would be great.
Thanks,
Ithildin
void do_exits( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
EXIT_DATA *pexit;
bool found;
bool fAuto;
set_char_color( AT_EXITS, ch );
buf[0] = '\0';
fAuto = !str_cmp( argument, "auto" );
if ( !check_blind(ch) )
return;
strcpy( buf, fAuto ? "Exits:" : "Obvious exits:\n\r" );
found = FALSE;
for ( pexit = ch->in_room->first_exit; pexit; pexit = pexit->next )
{
if ( pexit->to_room
&& !IS_SET(pexit->exit_info, EX_CLOSED)
&& (!IS_SET(pexit->exit_info, EX_WINDOW)
|| IS_SET(pexit->exit_info, EX_ISDOOR))
&& !IS_SET(pexit->exit_info, EX_HIDDEN) )
{
found = TRUE;
if ( fAuto )
{
strcat( buf, " " );
strcat( buf, dir_name[pexit->vdir] );
/* if ( fAuto )
{(pexit->exit_info, EX_CLOSED);
strcat( buf, " #" );
strcat(buf, dir_name[pexit->vdir]);
}
else
{ strcat( buf, " " );
strcat( buf, dir_name[pexit->vdir] );
}*/
}
else
{
sprintf( buf + strlen(buf), "%-5s - %s\n\r",
capitalize( dir_name[pexit->vdir] ),
room_is_dark( pexit->to_room )
? "Too dark to tell"
: pexit->to_room->name
);
}
}
}
if ( !found )
strcat( buf, fAuto ? " none.\n\r" : "None.\n\r" );
else
if ( fAuto )
strcat( buf, ".\n\r" );
send_to_char( buf, ch );
return;
}the commented out part is what i tried. i also had the
&& !IS_SET(pexit->exit_info, EX_CLOSED) and
|| IS_SET(pexit->exit_info, EX_ISDOOR))
commented out. when it came up on the mud, it would show:
North #North South #South so i have the idea of what i need, just not know how to do it. any helps would be great.
Thanks,
Ithildin