QUOTE(pendingkill @ 17 Jun, 2009 - 12:28 PM)

CODE
//level 2 - 500
//level 3 - 1500
//level 4 - 3500
//level 5 - 6000
function experience($L) {
$a=0;
$end=0;
for($x=1; $x<$L; $x++) {
$a += floor($x+1500*pow(4, ($x/7)));
}
return floor($a/4);
}
function Get_The_Level($exp) {
$a=0;
$end =0;
for($x=1; ($end==0 && $x<100); $x++) {
$a += floor($x+1500*pow(4, ($x/7)));
if ($exp >= floor($a/4)){
} else {
return $x;
$end=1;
}
}
}
function Get_Max_Exp($L){
$end=0;
if ($exp == 0){
return 457;
$end =1;
}
for($L=1;($L<100 && $end==0);$L++) {
$exp = experience($L);
//echo $exp;
if ($exp >= $user_class->exp){
return $exp;
$end=1;
}
}
}
Now for the questions... I have been beta testing this game to make sure all the kinks are out of the game however noticed it is impossible to change the exp needed to level. I have tried to change some the the code to get it to work and it did not.. What am I doing wrong here?
I have been trying to get help from my college professor as well and quite frankly im up shits creek I think..
Thanks in advance.
pK
Did you create this formula, or did you find it somewhere else? You could try changing the
1500 in both functions to a different value. The problem is you might not get
nice numbers like those above. You could try and write a new formula. I'll look into one that might help you.