newgroup.txt
snippets · 610 B · 2010-03-30
New group command by Taemos of Swaying Balance: colored group status.
Download « Back to the snippets list
// New group command by Taemos of Swaying Balance
if (is_same_group (gch, ch))
{
sprintf (buf,
"{C[{c%s{C]{r %4d%% {xhp {g%4d{g%%{x mana {m%4d{m%%{x mv {y%5d{xtnl\n\r",
capitalize (PERS (gch, ch)),
gch->hit * 100 / gch->max_hit,
gch->mana * 100 / gch->max_mana,
gch->move * 100 / gch->max_move,
(ch->level + 1) * exp_per_level (ch, ch->pcdata->points) - ch->exp);
send_to_char (buf, ch);
}