Jump to content
MakeWebGames

How can i decrease the brave gain/level?


rigla

Recommended Posts

  • 3 weeks later...

Re: How can i decrease the brave gain/level?

Lithium man..i dont think it works. I've set it to 1 but still, at level 8 i have 18 brave..i really dont understand..

i begin with 5 brave at lvl 1 and at level 8 shouldnt i have only 12 brave?

Heres the code modified to 1 brave/level...maybe you see something..please let me know and thanks!

$expu=$ir['exp']-$ir['exp_needed'];
$ir['level']+=1;
$ir['exp']=$expu;
$ir['energy']+=2;
$ir['brave']+=1;
$ir['maxenergy']+=2;
$ir['maxbrave']+=1;
$ir['hp']+=50;
$ir['maxhp']+=50;
$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);
$db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+1,maxenergy=maxenergy+2,maxbrave=maxbrave+1,
hp=hp+50,maxhp=maxhp+50 where userid=$userid");
Link to comment
Share on other sites

Re: How can i decrease the brave gain/level?

i didnt edit anything from the admin panel, in fact i have created the account after adding the brave mod to the game.. i really dont understand its frustrating like whoa :mrgreen:

Link to comment
Share on other sites

Re: How can i decrease the brave gain/level?

 

Lithium man..i dont think it works. I've set it to 1 but still, at level 8 i have 18 brave..i really dont understand..

i begin with 5 brave at lvl 1 and at level 8 shouldnt i have only 12 brave?

Heres the code modified to 1 brave/level...maybe you see something..please let me know and thanks!

$expu=$ir['exp']-$ir['exp_needed'];
$ir['level']+=1;
$ir['exp']=$expu;
$ir['energy']+=2;
$ir['brave']+=1;
$ir['maxenergy']+=2;
$ir['maxbrave']+=1;
$ir['hp']+=50;
$ir['maxhp']+=50;
$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);
$db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+1,maxenergy=maxenergy+2,maxbrave=maxbrave+1,
hp=hp+50,maxhp=maxhp+50 where userid=$userid");

 

there is nothing wrong with that code, this should increase 1 brave per level, as its not... your problem is somewhere else, check you haven't repeated the query somewhere else

Link to comment
Share on other sites

  • 1 month later...

Re: How can i decrease the brave gain/level?

ok still couldnt fix it..ive reset brave and users had brave 5+lvl but it keeps coming back to 5+2xlvl.

global_func.php has been changed to give 1 brave/level.

what else can i change to aquire that?

maybe the day cron?

$query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave<maxbrave ";
$query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave";

let me know if something here needs changed so the brave given is 1 per level and not 2.

thanks, this puzzles me cant fix it..

Link to comment
Share on other sites

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...