Code:
mob
proc
LevelUp()
if (usr.Exp <= MaxExp)
usr.level += 1
// usr.MaxExp
usr << output("You have leveled!","world")
DeathCheck()
if (Hp<= 0)
world << output("[M] killed [src]!","world")
usr << output("You gained [src.Exp] Exp!","world")
usr.Exp += src.Exp
del(src)
im beginning to learn how to code,but im having trouble with my leveling sys,every time i kill a mob i gain exp....once the MaxExp reached it doesn't run lvl proc,also
how do i make MaxExp increase help(i want it to multiply by 1.5 every lvl),Did i code this wrong?
Now for multiplying the experienced needed? I'll let you look at this code.