I've rearranged the do_score command to check for num_punct to add punctuation to each part of a characters score. I ran into something wierd I don't understand.
When I log in as a newbie, it shows this:
XP : 0 MANA: 100 of 100 MKILLS: 00000
And at Level 54, Max level, it shows this:
XP : 93,048,125 MANA: 30,000 of 30,000 MKILLS: 00045
Here's the code from player.c
Now if the code applies to both both of the character's files, why does it move the MANA over 1 space? Is there anyway I can set this up so the space stays at a maximum length, without moving one way or another, no matter what the character's exp is at? Because I notice that it seems to move based on how much exp a character has. And can someone explain to me why it does that?
-Toy has been beating this one all day with a stick trying to get it to work right...
When I log in as a newbie, it shows this:
XP : 0 MANA: 100 of 100 MKILLS: 00000
And at Level 54, Max level, it shows this:
XP : 93,048,125 MANA: 30,000 of 30,000 MKILLS: 00045
Here's the code from player.c
pager_printf(ch, "&CXP : &W%-9s ", num_punct(ch->exp) );
pager_printf(ch, "&CMANA: &B%-5s&C ", num_punct(ch->mana) );
pager_printf(ch, "of &b%5s ", num_punct(ch->max_mana) );
pager_printf(ch, "&CMKILLS: &W%-5.5d ", ch->pcdata->mkills );Now if the code applies to both both of the character's files, why does it move the MANA over 1 space? Is there anyway I can set this up so the space stays at a maximum length, without moving one way or another, no matter what the character's exp is at? Because I notice that it seems to move based on how much exp a character has. And can someone explain to me why it does that?
-Toy has been beating this one all day with a stick trying to get it to work right...