Jump to content
MakeWebGames

how do you make it so players cant level up quickly?


Nicholas

Recommended Posts

hi im wondering does anyone know how to make it so my players cant level up quickly?

Making it harder to level up?

doesnt help much lol. it only tells you where to change it, and not what to change it into...

 

function check_level()
{
global $db;
global $ir,$c,$userid;
$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);
if($ir['exp'] >= $ir['exp_needed'])
{
$expu=$ir['exp']-$ir['exp_needed'];
$ir['level']+=1;
$ir['exp']=$expu;
$ir['energy']+=2;
$ir['brave']+=2;
$ir['maxenergy']+=2;
$ir['maxbrave']+=2;
$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+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2,
hp=hp+50,maxhp=maxhp+50 where userid=$userid");
}
}

 

they say you have to change that function in global_func.php but what too?

anyone know what to change it to? to make it hard to level up? when you leave someone in battle?

Link to comment
Share on other sites

$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);

Looks like at level 10 a person would need 2928.2 to level.

a level 20 would need 20374.2 and so on.

Thats a pretty high amount of exp to achieve for a level 20, and it only gets worse. Are you giving out a ton of exp in your crimes and attacks? If so i would work on cutting them down. What kind of levels are they hitting in your game?

Link to comment
Share on other sites

well first od all make your query match the info. like if you want +1 to gain each lbl make it this:

 

function check_level()
{
global $db;
global $ir,$c,$userid;
$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);
if($ir['exp'] >= $ir['exp_needed'])
{
$expu=$ir['exp']-$ir['exp_needed'];
$ir['level']+=1;
$ir['exp']=$expu;
$ir['energy']+=1;
$ir['brave']+=1;
$ir['maxenergy']+=1;
$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+1,brave=brave+1,maxenergy=maxenergy+1,maxbrave=maxbrave+1,
hp=hp+50,maxhp=maxhp+50 where userid=$userid");
}
}

 

I made it so you gain 1 brave and energy so you dont gain 2 each lvl bc its way easier to level up if you gorw 2 brave per lvl and 2 energy

Hope this helps.

Link to comment
Share on other sites

$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);

Looks like at level 10 a person would need 2928.2 to level.

a level 20 would need 20374.2 and so on.

Thats a pretty high amount of exp to achieve for a level 20, and it only gets worse. Are you giving out a ton of exp in your crimes and attacks? If so i would work on cutting them down. What kind of levels are they hitting in your game?

2 months old nearly, and max level is 161 at moment.

also the crimes dont give much experience, in the box on staff panel for crimes the Crime EXP is 0 on all crimes.

and attacking if that level 161 lets them kill her, they will become around level 10-25.

Link to comment
Share on other sites

well first od all make your query match the info. like if you want +1 to gain each lbl make it this:

 

function check_level()
{
global $db;
global $ir,$c,$userid;
$ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);
if($ir['exp'] >= $ir['exp_needed'])
{
$expu=$ir['exp']-$ir['exp_needed'];
$ir['level']+=1;
$ir['exp']=$expu;
$ir['energy']+=1;
$ir['brave']+=1;
$ir['maxenergy']+=1;
$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+1,brave=brave+1,maxenergy=maxenergy+1,maxbrave=maxbrave+1,
hp=hp+50,maxhp=maxhp+50 where userid=$userid");
}
}

 

I made it so you gain 1 brave and energy so you dont gain 2 each lvl bc its way easier to level up if you gorw 2 brave per lvl and 2 energy

Hope this helps.

its not the energy and brave im fussed about its the leveing quickly when you attack players. since my crimes dont really give you EXP lol.

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