Well, i'm trying to change the way a character is created. Main thing right now is trying to add color. In some area's color works. But other areas color just doesn't seem to work. Here's one area where it doesn't work:
if( d->newstate == 0 )
{
/* No such player */
send_to_desc_color( "\n\r&RNo such player exists. Please check your spelling.\n\r", d );
send_to_desc_color( "\n\r&WEnter your character's name, or type new:", d );
d->connected = CON_GET_NAME;
d->character->desc = NULL;
free_char( d->character ); /* Big Memory Leak before --Shaddai */
d->character = NULL;
return;
}
sprintf( buf, "\n\r&zDid I get that right&R %s, &z(&RYes&z/&RNo&z) ? ", argument );
send_to_desc_color( buf, d);
d->connected = CON_CONFIRM_NEW_NAME;
return;
}
break;
I've changed sprintf to send_to_desc_color, and it still doesn't work. I'm not too sure. Altho, color does work in other functions like:
send_to_desc_color( "\n\r&zChoosing a name is one of the most important parts of this game..."
"\n\rMake sure to pick a name appropriate to the character you are going"
"\n\rto role play, and be sure that it suits a &RWARCRAFT Theme&z. If the name"
"\n\ryou select is not acceptable, you will be asked to choose another one."
"\n\r\n\rPlease choose a &RName&z for your character&W:&w\n\r", d);
There is also alot of areas including -- The game is wizlocked -- where color does not work also.
I'm using SMAUGFUSS 1.7. |