Lithium Posted July 14, 2008 Posted July 14, 2008 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? Quote
Isomerizer Posted July 14, 2008 Posted July 14, 2008 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... Quote
Lithium Posted July 14, 2008 Author Posted July 14, 2008 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 :| Quote
Isomerizer Posted July 14, 2008 Posted July 14, 2008 Re: a pointer or two Ah ok, maybe $ir['exp_needed'] is defined in another script, try looking in header or global funcs. Quote
Lithium Posted July 14, 2008 Author Posted July 14, 2008 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 :) Quote
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.