I'm trying to make it so that leadrank, onerank, tworank show on do_who before the clan name. Ex: (I am the Leader of This Clan). While this seems like a relatively simple thing to do it has been giving me a headache for quite a while now.
What I've done so far:
Added the first mudstrlcat statement which should display the custom rank and:
Added the leadrank, onerank, tworank to the output. To me it looks like it should be working, but when typing who it displays as: Player. I am the Leader( of This Clan).
I'm pretty sure the problem lies in the bottom code with the leadrank, onerank, etc. but I have no idea what to do to fix this. Any help is appreciated.
What I've done so far:
else if( !str_cmp (wch->name, pclan->leader ) )
{
mudstrlcat( clan_leadrank, " ", MAX_INPUT_LENGTH );
mudstrlcat( clan_display, " of ", MAX_INPUT_LENGTH );
}
Added the first mudstrlcat statement which should display the custom rank and:
else
invis_str[0] = '\0';
snprintf( buf, MAX_STRING_LENGTH, "%*s&B[&W%-15s&B]&G%-2s%s%s%s%s%s%s%s.%s%s%s%s%s%s\r\n",
( fGroup ? whogr->indent : 0 ), "",
Class,
invis_str,
( wch->desc && wch->desc->connected ) ? "&R[&WWRITING&R]&G " : "",
xIS_SET( wch->act, PLR_AFK ) ? "&R[&BA&WF&YK&R]&G " : "",
xIS_SET( wch->act, PLR_ATTACKER ) ? "&R(&WATTACKER&R)&G " : "",
xIS_SET( wch->act, PLR_KILLER ) ? "&R(&WKILLER&R)&G " : "",
xIS_SET( wch->act, PLR_THIEF ) ? "&R(&WTHIEF&R)&G " : "",
char_name, wch->pcdata->title, extra_title, clan_leadrank, clan_onerank, clan_tworank , clan_display, council_name );
Added the leadrank, onerank, tworank to the output. To me it looks like it should be working, but when typing who it displays as: Player. I am the Leader( of This Clan).
I'm pretty sure the problem lies in the bottom code with the leadrank, onerank, etc. but I have no idea what to do to fix this. Any help is appreciated.