Exp Calculations

01/16/2013 13:15 sKyLeR#1
I'm trying to calculate Experience per hit/kill here. I'm having a bit of trouble. I'm using something similar to this.

Code:
if (damage >= maxhp)
exp = maxhp;
else if (damage < maxhp)
exp = damage;
From what I remember this is sort of how it used to work before potency, etc...

But this is not coming out correctly at all. It seems when I hit a mob for 8k, i get 28k exp.

Any tips?
01/16/2013 19:37 pro4never#2
Something like that will let you calculate the base exp. Once that's done you can perform any extra operations on it. Be sure to step through and make sure it works properly every stage of the calculation.


ifdamage >= currentHP)
exp = currentHP
else
exp = damage

then perform level modification, rainbow gems and bonus exp for killing mob. It's all in public sources already
01/17/2013 23:37 sKyLeR#3
I think I've got it figured out.

Thanks pro4never.
01/19/2013 17:31 JohnHeatz#4
As you got it resolved then I'd guess you wouldn't be mad if I close this thread ;)