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
ID:159977
Dec 9 2008, 3:21 pm
|
|
i want to add a delay to get back a mob when is kill
|
Dec 9 2008, 3:23 pm
|
|
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... Then stop. He obviously didn't get it. 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. |