Code:
static void do_stat_mortal(struct char_data *ch)
{
char buf1[MAX_STRING_LENGTH];
char buf2[MAX_STRING_LENGTH];
sprinttype(GET_SEX(ch), genders, buf1, sizeof(buf1));
sprinttype(ch->player.chclass, pc_class_types, buf2, sizeof(buf2));
send_to_char(ch, "You are known as %s %s, the level %2d %s %s\r\n",
GET_NAME(ch), ch->player.title ? ch->player.title : "the nobody", GET_LEVEL(ch), buf1, buf2);
send_to_char(ch, "Str: [%s%d/%d%s] Int: [%s%d%s] Wis: [%s%d%s] "
"Dex: [%s%d%s] Con: [%s%d%s] Cha: [%s%d%s]\r\n",
CCCYN(ch, C_NRM), GET_STR(ch), GET_ADD(ch), CCNRM(ch, C_NRM),
CCCYN(ch, C_NRM), GET_INT(ch), CCNRM(ch, C_NRM),
CCCYN(ch, C_NRM), GET_WIS(ch), CCNRM(ch, C_NRM),
CCCYN(ch, C_NRM), GET_DEX(ch), CCNRM(ch, C_NRM),
CCCYN(ch, C_NRM), GET_CON(ch), CCNRM(ch, C_NRM),
CCCYN(ch, C_NRM), GET_CHA(ch), CCNRM(ch, C_NRM));
send_to_char(ch, "AC: [%d%+d/10], Hitroll: [%2d], Damroll: [%2d]\r\n",
GET_AC(ch), dex_app[GET_DEX(ch)].defensive, ch->points.hitroll,
ch->points.damroll);
send_to_char(ch, "Gold: [%9d], Bank: [%9d] (Total: %d) \r\n",
GET_GOLD(ch), GET_BANK_GOLD(ch), GET_GOLD(ch) + GET_BANK_GOLD(ch));
sprintbitarray(AFF_FLAGS(ch), affected_bits, AF_ARRAY_MAX, buf1);
send_to_char(ch, "Affected by: %s%s%s\r\n", CCYEL(ch, C_NRM), buf1, CCNRM(ch, C_NRM));
}