2010-08-01, 08:19 AM
It looks something like this:
Code:
[calculate hit rate - which I'm still figuring out]
if(hitRate > 100)
hitRate = 100
if(hitRate < 0)
hitRate = 0
if(mobLevel > charLevel)
{
difference = 5 * (mobLevel - charLevel)
if(difference > hitRate)
hitRate = difference
hitRate -= difference
}
randomNumber = CRand::CalcRand32()
blah blah blah