How to make a fixed spawn with a time reference aka Cron Tab

Deazer

Head Developer
Staff member
How to make a fixed spawn with time aka Cron Tab
Syntax spawn.dtd
Mechanics -
Pre example!

<spawn name = "[queenant_room]">
<npc id = "29001" count = "1" respawn_cron = "* * * * *" pos = "- 21610 181594 -5720 0" />
</spawn>


What you need to pay attention to - respawn_cron = "* * * * *" the fixed spawn format is presented in Cron - consists of MANDATORY five stars.
Every star is time. First - Minutes, Second - hours, Third week, Month, Fifth - day of the week (1-7). (ATTENTION! Completely remove respawn = "something here" respawn_rand = "something here" leave ONLY respawn_cron = "data ")
For example, I want to make Queen Ant aka Queen Ant ant every day at 19:00:
as it is in its original form -
<spawn name = "[queenant_room]">
<npc id = "29001" count = "1" respawn = "129600" respawn_rand = "61200" pos = "- 21610 181594 -5720 0" />
</spawn>


As it became after making changes to the current task -
<spawn name = "[queenant_room]">
<npc id = "29001" count = "1" respawn_cron = "0 19 * * *" pos = "- 21610 181594 -5720 0" />
</spawn>


Thus, I pointed to the second star - this is a watch, i.e. Every day, the AK will be respected at 19:00, even if she was killed at 18:59:59 - she will return at 19:00.
Similarly, the whole described method works with weeks and months, and so on.
 
If I make it like this >

<spawn name = "[queenant_room]">
<npc id = "29001" count = "1" respawn_cron = "0 20 6 * *" pos = "- 21610 181594 -5720 0" />
</spawn>

It will respawn every Saturday at 20:00 right?
 
one questions,if i need take to 20 + random only increases respawn_rand =1200 in te table ?

ex : <npc id="29014" count="1" respawn_cron = "0 21 * * 1,4" respawn_rand="1200" pos="55024 17368 -5412 0" />
 
one questions,if i need take to 20 + random only increases respawn_rand =1200 in te table ?

ex : <npc id="29014" count="1" respawn_cron = "0 21 * * 1,4" respawn_rand="1200" pos="55024 17368 -5412 0" />
Incorrect, look guide about not fixed
 
Back
Top