if (!IS_NPC(ch) && !IS_SET(ch->pcdata->plradd, PLRADD_NAMECOLOR))
{
sprintf(buf,"{C%s{w",ch->in_room->name);
}
if (!IS_NPC(ch) && IS_SET(ch->pcdata->plradd, PLRADD_NAMECOLOR))
{
sprintf(buf,"%s", ch->in_room->name);
strip_color(buf);
}
if ( !IS_NPC(ch) ) {
if( IS_SET(ch->pcdata->plradd, PLRADD_NAMECOLOR) )
{
sprintf(buf,"%s", ch->in_room->name);
strip_color(buf);
}
else
{
sprintf(buf,"{C%s{w",ch->in_room->name);
}
}
He has bad headaches and the colors mess with him, so instead of making color
completely off, he mainly wants to get rid of the room desc/name colors.
I tried using strip_color, which works but when you turn it off, first look gives
color, the second look is correct. This goes for every direction you go. After you've
saw the room, it'll stay removed.
I'm basically wanting a command that I can turn on and off at any given time to
turn color in descs off and on, same for room names. This means without it literally
removing the color codes from the descs/names.
Any help?
Just adding some stuff to this.
I have the commands basically: namecolor on or off, desccolor on or off.
When you turn the name or desc color back on, it doesn't show the original color. It keeps
it stripped.
if (!IS_NPC(ch) && !IS_SET(ch->pcdata->plradd, PLRADD_NAMECOLOR))
{
sprintf(buf,"{C%s{w",ch->in_room->name);
}
if (!IS_NPC(ch) && IS_SET(ch->pcdata->plradd, PLRADD_NAMECOLOR))
{
sprintf(buf,"%s", ch->in_room->name);
strip_color(buf);
}
send_to_char(buf,ch);