ID:140554
 
Code:
if(src.hp<=0)
del src
spawn(30) usr<<"A corpse decays"


Problem description:

I'm trying to implement this code where it notifies the player that the corpse of the mob they just killed has decayed, however, nothing is working after spawn(30). the text is never displayed. What is the problem?
Execution of a function (be it proc or verb) is (normally) terminated after the object owning the function is deleted (though there are special exceptions).
Or, in other words, everything after del src is left out, because there no longer is a 'src' around.