hi there :)
yes a challenge... in short...
Im a gal and play an onlinegame :) facts of the issue:
player stats
potence,agility,fortitude. all used when attacking other players, the higher they are the more chance of winning.
weapons:
2 can be slotted plus a bodyguard, also effective during attacks. available weapons and bodyguard range from small and cheap to expensive and tough, used to enhance the stats i presume ?
pretty straight forward it seems right? no
here are the issues:
1> player X, huge stats and big guns and bodyg attacks Y a lower level player in stats, guns ,bodyg and loses!
2> player Y unequips bodyg and with same stats and guns as before attacks player X and wins!
Also the stat levels are very high in some players ., billions per individual stat.
question:
could it be that the huge stats numbers mess up the coding ? thus making the above happen ?
needless to say both issues should not be possible. it is also not a one time occurrence.
I understand there is always a randomness factor included but this is a bit too much.
all i have for you guys is this: it isnt much but all and any advice is more than welcome.
$dam=(int) (($enweps[$weptouse]['weapon']*$odata['strength']/($youdata['guard']/1.5))*(rand(8000,12000)/10000));
im trying to help out a friend who claims this is all * normal in the game *
I dont think so!
please shed some light on this, I would be so grateful...
thank you for your time,
Clueless