Jump to content
MakeWebGames

Recommended Posts

Posted

print "You beat {$r['username']} ";

$qe=$r['level']*$r['level']*$r['level'];

$expgain=rand($qe/2,$qe);

$expperc=(int) ($expgain/$ir['exp_needed']*100);

print "and gained $expperc% EXP!

 

How do i get % of exp lowered......?

Posted

Re: help...need to lower EXP

I use this.

$expwon = (25 * ($user_class['level'] - $attack_person['level']));

So if the attacking person is lvl 1 and defending is lvl 400 and a miracle happens and the lvl 1 wins

they get 9975 Exp.

Posted

Re: help...need to lower EXP

Give my way a go mate its very basic but works fine for me

$expwon = (25 * ($user_class['level'] - $attack_person['level']));

 

(25*(400-1) = 9975

just change the 25 to lower for lower Exp given

(10*(400-1) = 3990 Exp

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