SMOKEY_TEK Posted May 2, 2012 Share Posted May 2, 2012 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 Quote Link to comment Share on other sites More sharing options...
Lithium Posted May 2, 2012 Share Posted May 2, 2012 changing $a += floor($x+1500*pow(4, ($x/7))); play around with those values! both in experience() and Get_Level() they have to be the exact same. Quote Link to comment Share on other sites More sharing options...
SMOKEY_TEK Posted May 3, 2012 Author Share Posted May 3, 2012 Thanks I'll give it a try in a little bit, and let you know ... Thanks again! Quote Link to comment Share on other sites More sharing options...
thebobby Posted May 3, 2012 Share Posted May 3, 2012 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.