Nicholas Posted October 29, 2009 Share Posted October 29, 2009 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? Quote Link to comment Share on other sites More sharing options...
wolfe Posted October 29, 2009 Share Posted October 29, 2009 $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? Quote Link to comment Share on other sites More sharing options...
Gucci Mane Posted October 29, 2009 Share Posted October 29, 2009 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. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted October 29, 2009 Author Share Posted October 29, 2009 $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. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted October 29, 2009 Author Share Posted October 29, 2009 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. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted October 29, 2009 Share Posted October 29, 2009 Why give no crime exp?? whats the harm in that? not like they can lvl off it Quote Link to comment Share on other sites More sharing options...
Nicholas Posted October 30, 2009 Author Share Posted October 30, 2009 even knowing its on 0 on all, they still some reason get a little amount of EXP. but at moment im trying to figure out how to lower to experience given in attacking. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted October 30, 2009 Share Posted October 30, 2009 Check the code and see if its giving away exp 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.