ID:147466
 
This is what i have down as my leveling system...

mob/proc/Levelup() // Level Up Proc.
if(usr.exp >= usr.maxexp) //usr.exp = maxexp * exp
usr.exp-=src.exp
usr << "You Gained A Level!"
usr.maxexp+=25
usr.maxmana += 5

usr.HP+=10
usr.maxHP+=10
usr.Level +=1
usr.str+=3
usr.defense+=3

but,when I go to battle the exp aways goes over the max exp and then the player eventually leves up....whats wrong??
Don't use usr in procs.
In response to Garthor
Garthor wrote:
Don't use usr in procs.

That's exactly what I was about to say until I saw your reply. I've never head of the word "adventualy" either.