08 Feb, 2009, newcoder wrote in the 1st comment:
Votes: 0
I'm interrested in knowing how to make your exp/level increase as you advance through the levels (51) on a ROM 2.4 MUD.
Thanks
09 Feb, 2009, Sandi wrote in the 2nd comment:
Votes: 0
I did it with a table:


merc.h:

struct xp_type
{
int tnl; /* to next level */
int rfl; /* required for level */
};


const.c:

const struct xp_type xp_table[37] =
{
{ 1000, 0 }, /* 0 */
{ 1050, 1000 }, /* 1 */
{ 1100, 2050 },
{ 1150, 3150 }, /* 3 */
{ 1200, 4300 },
{ 1250, 5500 }, /* 5 */
{ 1300, 6750 },
{ 1350, 8050 },
{ 1400, 9400 },
{ 1450, 10800 },
{ 1500, 12250 }, /* 10 */
…etc.


and this in gain_exp (update.c)

if( ch->exp >= xp_table[ch->level + 1].rfl )



Hope this helps.
0.0/2