ID:159977
 
i want to add a delay to get back a mob when is kill

mob
proc
DeathCheck()
if(src.HP <= 0)
sleep(60)
src.Move(locate(2,8,1))
view() << "[src] was kill!"
src.HP = 30
usr.str += 25
usr.def += 1
<dm>
if i use the command like that i kill the mob but the mob keep in that place untill the time get to the X time on the sleep
Judging by what little I understand from your disgraceful use of the english language, you need to look up order of operations for the DM language. The compiler reads from left to write; top to bottum (basic english skills right?). So your coding will be initiated in whatever order you have it coded. The Dream Maker isn't psychic.
In response to Mizukouken Ketsu
the command works but when i kill the mob it keep in the same place untill the time of the sleep command finish up.... and yes im wrote on spanish :(
In response to AntiAnti
I hate repeating myself...

Mizukouken Ketsu wrote:
Judging by what little I understand from your disgraceful use of the english language, you need to look up order of operations for the DM language. The compiler reads from left to write; top to bottum (basic english skills right?). So your coding will be initiated in whatever order you have it coded. The Dream Maker isn't psychic.
In response to Mizukouken Ketsu
Mizukouken Ketsu wrote:
I hate repeating myself...

Mizukouken Ketsu wrote:
Judging by what little I understand from your disgraceful use of the english language, you need to look up order of operations for the DM language. The compiler reads from left to write; top to bottum (basic english skills right?). So your coding will be initiated in whatever order you have it coded. The Dream Maker isn't psychic.

Then stop. He obviously didn't get it.

Try moving the sleep(60) to the bottom of the code. What sleep does, is it sets a timer essentially. When the time is up, it will continue with whatever proc it was doing.
You have sleep(60) at the beginning of the proc, so it's going to wait 6 seconds before it continues.

edit: actually, I don't see a purpose in having sleep() there, at all. You'd probably be best off removing it.