tmp2 cant be right cause its just the max group xp you can get. If you display tmp2 in the message and AddEXP() uses either tmp1 or tmp2, the text wont display the correct value in most situations. Only the highest level char in group may see the right amount of xp he/she gets. The others xp is scaled depending on the level range in group.
Btw, you need to change ALL calls to SetEXP() with your altered parameter add_exp, not just the one in line 187.
|