Jump to content
MakeWebGames

Recommended Posts

Posted

Does anyone know how I could change the way the experience is set up in the GRPG script? What I mean is, as of right now when your like level 45 you have 12 million exp, and it doesn't seem right to me.. I would like it to be lower way lower than it is now.

Here's the experience and level code:

 

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;
}
}
}

 

Thanks,

James

Posted

this is where u look under grpgusers in that file

$this->maxexp = $worked['level'] * 873;

$this->exppercent = ($this->exp == 0) ? 0 : floor(($this->exp / $this->maxexp) * 100);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...