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;
what value do i have to change and what do i change to decrease the exp for a level.
with this code it is 68,452 / 71,697 for level 18.
i want to do like 2k exp for level 18.
so pretty much decrease the exp and increase the level = exp.