src.hp = 5
src.maxhp = 5
the error stops. But when someone loads his saved character the hp and max hp is 5, instead of the char's loaded stats.
I tryed calling the stat proc ONLY when the mob has loaded/created a char, but the technique I used was with a simple var and was kinda buggy. So, could anyone give me help on this? Quite annoying being flooded with runtime errors when you login.
runtime error: Undefined operation
proc name: Stat (/mob/Stat)
source file: mobs.dm,179
usr: Mysame (/mob)
src: Mysame (/mob)
call stack:
Mysame (/mob): Stat()
Remember, less than 1 returns a false value :)