proc
DeathCheck()
if(Hp<=0)
world<<("[src] dies")
src.loc=locate(1,1,1)
usr.Exp+=src.ExpGive
if(usr.Exp>=MaxExp)
usr.MaxExp+=100
usr.Level+=1
usr<<"You gain a level"
if(usr.Class=="Bender")
if(usr.Style=="Aggressive")
usr.Str+=3
usr.MaxHp+=2
usr.Def+=1
usr.MaxChi+=1
Bonuspoint()
else
..()
Problem description:
At first the code works fine,, i kill four times then once my Exp is greater than my MaxExp,,, i gain a level,, but after this every kill gains me a level,,
I wrote the code so i gain MaxExp each time i level,, but it doesnt seem to work,, i still level up each time i gain the slightest bit of Exp.. i know its a pretty simp-le code but i cant figure out what is wrong.