ID:178567
 
Repopulate works fine when I use it under my GM verbs. But when I tell it to do it automatically it never does it. What do you guys think is wrong?

if(src.HP <= 0)
usr.exp += src.exp_give
view() << "The enemy died!"
view() << "You get [src.exp_give] experience!"
src.HP += src.Max_HP
del(src)
repopulate()

repopulate()
world.Repop()
spawn(10)
repopulate()
Likwiddraino000 wrote:
Repopulate works fine when I use it under my GM verbs. But when I tell it to do it automatically it never does it. What do you guys think is wrong?

if(src.HP <= 0)
usr.exp += src.exp_give
view() << "The enemy died!"
view() << "You get [src.exp_give] experience!"
src.HP += src.Max_HP
del(src)
repopulate()

When that proc reaches the del(src) line, that halts execution of all procs attached to src, including that one. You might be interested in this post: [link]
In response to Shadowdarke