ID:178741
 
Ok i'm trying to get people to Levelup but its not working, here is the part where it calls the Level up proc:

mob/proc

npcdeathcheck(mob/P as mob,mob/M as mob)
if (M.HP <= 0)
P << "\red Victory"
P.Exp += M.expadd
P<<"\red You gain [M.expadd] exp and [M.coinadd] money,"
P.Coins += M.coinadd
endbattle(P)
Levelup(P)
del (M)
else

npcattack1(P, M)
yet, the proc does not work.
mob
proc
Levelup()
if(src.Exp >= src.MaxExp)
src<<"you could have leveled up but i havent done it yet ;)"

Now, when im in the game i kill a monster and you gain EXP etc but the proc does not get called, anyone know why??
Try calling the level up proc before the end battle proc.

Also in your levelup proc, you should do <code><nobr>Levelup(mob/M as mob)</code></nobr>, then instead of using src in the levelup proc, use M.

If that doesn't work, I don't know what is wrong.

-Rcet
In response to Rcet
Thanks, finally i can move on and add in the other monsters ;)