ID:144033
 
Code:
mob
proc
Age(mob/M as mob)
for() //loop this action
M.age += 1 // add 1 to the age of M
usr<<"<b><font color=red>Event</font></b>: You are now older and wiser."
sleep(1)//wait for 3 seconds
if(M.age>=100)
M.maxhealth+=100000
world<<"<b><font color=red>World event</font></b>:[M] have found sense in his life."
return


Problem description:
LoL i think there should be special account for guys like me, im really often here if you know what i mean.
OK the problem is, i dont know how to set a limit for age...this i made now make a really annoying bug, everytime mob login he get 100k hp xD
That's because the loop is stopped when the bonus happens but if it is called again, it'll give the hp boost and stop again.

You can stop this by two ways:

1) Check if the age is in limits. If it equals to pass the level, don't make it call
2) Change for() to while(src.age<=[whatever you want max to be])

E.g. for choice #1:
for()
if(age>=101)return
...
or
if(age<100) Age()//calls the Age() proc


- GhostAnime
In response to GhostAnime
ok, thx...hmm, i wonder... how long you are coding?
In response to Duni
I was programming in DM since... uh... lemme check my creation date *checks* since June 9, 2003

But by programming standards, I am in the range of an advanced beginner or a lower intermediate.

- GhostAnime