go into comm.c and find display_prompt
right after the case a break, put this:
case 'C': /* Tank */
//if ( !IS_IMMORTAL( ch ) ) break;
if ( !ch->fighting || ( victim = ch->fighting->who ) == NULL )
strcpy( pbuf, "N/A" );
else if(!victim->fighting||(victim = victim->fighting->who)==NULL)
strcpy( pbuf, "N/A" );
else {
if ( victim->max_hit > 0 )
percent = (100 * victim->hit) / victim->max_hit;
else
percent = -1;
if (percent >= 100)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &gPerfect Health", victim->name );
else if (percent >= 90)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &OSlightly Scratched", victim->name);
else if (percent >= 80)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &YFew Bruises", victim->name);
else if (percent >= 70)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &YSome Cuts", victim->name);
else if (percent >= 60)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &PSeveral Wounds", victim->name);
else if (percent >= 50)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &pNasty Wounds", victim->name);
else if (percent >= 40)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &pBleeding Freely", victim->name);
else if (percent >= 30)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &rCovered in Blood", victim->name);
else if (percent >= 20)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &rLeaking Guts", victim->name);
else if (percent >= 10)
sprintf (pbuf, "&g<&cT:&w%s &cTC: &RAlmost Dead", victim->name);
else
sprintf (pbuf, "&g<&cT:&w%s &cTC: &RDYING", victim->name);
}
break;
case 'c':
//if ( !IS_IMMORTAL( ch ) ) break;
if ( !ch->fighting || ( victim = ch->fighting->who ) == NULL )
strcpy( pbuf, "N/A" );
else {
if ( victim->max_hit > 0 )
percent = (100 * victim->hit) / victim->max_hit;
else
percent = -1;
if (percent >= 100)
sprintf (pbuf, "&cE:&w%s &cEC: &gPerfect Health&g>", victim->name);
else if (percent >= 90)
sprintf (pbuf, "&cE:&w%s &cEC: &OSlightly Scratched&g>", victim->name);
else if (percent >= 80)
sprintf (pbuf, "&cE:&w%s &cEC: &YFew Bruises&g>", victim->name);
else if (percent >= 70)
sprintf (pbuf, "&cE:&w%s &cEC: &YSome Cuts&g>", victim->name);
else if (percent >= 60)
sprintf (pbuf, "&cE:&w%s &cEC: &PSeveral Wounds&g>", victim->name);
else if (percent >= 50)
sprintf (pbuf, "&cE:&w%s &cEC: &pNasty Wounds&g>", victim->name);
else if (percent >= 40)
sprintf (pbuf, "&cE:&w%s &cEC: &pBleeding Freely&g>", victim->name);
else if (percent >= 30)
sprintf (pbuf, "&cE:&w%s &cEC: &rCovered in Blood&g>", victim->name);
else if (percent >= 20)
sprintf (pbuf, "&cE:&w%s &cEC: &rLeaking Guts&g>", victim->name);
else if (percent >= 10)
sprintf (pbuf, "&cE:&w%s &cEC: &RAlmost Dead&g>", victim->name);
else
sprintf (pbuf, "&cE:&w%s &cEC: &RDYING&g>", victim->name);
}
break;
And then modify it to your liking.
*****edit*****
You will also have to change your default_prompts. Find char *default_fprompt and char *default_prompt and put this in instead:
char *default_fprompt( CHAR_DATA *ch )
{
static char buf[60];
strcpy(buf, "<&g%hhp ");
if ( IS_VAMPIRE(ch) )
strcat(buf, "&R%bbp ");
else
strcat(buf, " &g%vmv> ");
if ( IS_NPC(ch) || IS_IMMORTAL(ch) )
strcat(buf, "%i%R");
strcat(buf, "\n\r%C %c ");
return buf;
}
char *default_prompt( CHAR_DATA *ch )
{
static char buf[60];
strcpy(buf, "&g<%hhp ");
if ( IS_VAMPIRE(ch) )
strcat(buf, "&R%bbp");
else
strcat(buf, " &g%vmv> ");
strcat(buf, "\n\r&g< > ");
return buf;
}
That should do the trick for you. |