Jump to content
MakeWebGames

Recommended Posts

Posted

Re: simple stupid question

guess and check your formula this will give you a general location where to look.

$qe=$r['level']*$r['level']*$r['level'];
$expgain=rand($qe/2,$qe);
$expperc=(float) ($expgain/$ir['exp_needed']*somenumber);
Posted

Re: simple stupid question

Or...

You can just add in percentage like I said here is an example:

Replace your old query with this and you will get 60% of your EXP needed.

 

$expgain=$ir['exp_needed']/100*60;
$db->query("UPDATE users SET exp=exp+{$expgain} WHERE userid=$userid");
Posted

Re: simple stupid question

 

No problem since I know that you've created some decent mods. :wink:. I was just giving you location so you could get it to where you wanted.

thanks for the comment on my mods also

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