Jump to content
MakeWebGames

a pointer or two


Lithium

Recommended Posts

i am working around with a v1 file of attackwon.php and when the hit is successfull it displays the message plus the amount of experience gained. Experience that is never shown goes always in 0%, i tried to echo bit by bit to see where the issue was until i get to $expperc=(int) ($expgain/$ir['exp_needed']*100), a bit looking upper in the file, i can't find out where it lays exp_needed so, any tip or any work around to display the correct percentage?

Link to comment
Share on other sites

Re: a pointer or two

 

exp_gained is a column in the users table.

So your saying it always displays 0%?

You need to increase the formula...

 

i would agree with you... as it would be the obvious place to be... but there is not :| $ir['exp_needed'] returns always an empty query as it doesn't find the column on the table, and well, i compared a couple of db's, and none has that :|

Link to comment
Share on other sites

Re: a pointer or two

 

Ah ok, maybe $ir['exp_needed'] is defined in another script, try looking in header or global funcs.

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

very well "hidden" on global_func.php on the check_level() function!

thx :)

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