How to add a siege launch time and subsequent siege start cycles

To set the desired date and time of the siege (for the first time), you can set the values yourself in the game by the admin - //admin > tab Residences

For automatic submission for the period of sieges you need - every 7 days or change the date, go to
gameserver\data\events\siege and as an example we take [1] gludio_castle.xml
In it we have the launch parameters and what they mean:
<parameter name="siege_schedule" value="0 16 +14:* * 7|0 20 +14:* * 7" />

0 16 +14:* * 7
(0 16) - 16:00
+14 - after how many days will the next siege be, in this example, after 14 days, i.e. 2 weeks. If you want, bet +7 once a week
:* * 7 - Day of the week. In our example, it will be on Sunday.

|0 20 +14:* * 7" second parameter carries in itself the same information BUT already for the siege on the second wave. As far as you know, some of the castles start sieges in different waves. There are two of them.

__________________________________________________________________________
How to make a siege every day

Code:
1. In order to make sure that the siege was every day, we change the following parameters in the file some_castle_castle.xml:
<parameter name="siege_schedule"
exactly

Of course, you can set the same wave time. But according to the office, the CL can change the time of the siege.
<parameter name="siege_schedule" value="0 16 +1:* * *|0 20 +1:* * *" /> Thus, we get the first wave at 16:00 and the second at 20:00.
If you want you to have a siege only in one wave and the CL cannot rearrange the time of the siege:
<parameter name="siege_schedule" value="0 16 +1:* * *" />

Also, you must change the parameter that is responsible for the delay to which the Clan leader has the right to select a wave, EVEN if it is one and this delay is 24 hours - 86400 seconds. Obviously, for a daily siege, we must reduce this delay by say one minute or more. In the example, I will specify a delay of 1 minute:
<parameter name="next_siege_date_set_delay" value="60" />

2. and in the field

<on time="-86400">
<stop name="registration" />
</on>
Here it is indicated how long before the siege it is possible to register - we must change this because ... by official server registration 24 hours before the siege. With default settings, we won't be able to launch a siege every day. So we change, let's say 30 minutes before the siege, registration is possible:
<on time="-1800">
<stop name="registration" />
</on>
 
Last edited:
Good morning, everyone.

I have a simple question regarding the cron configuration for sieges.
My server is already live with players, and now I want to adjust the siege duration.

For example, in Giran the configuration looks like this:
<parameter name="siege_schedule" value="0 20 +14:* * 7|0 16 +14:* * 7" />
  • Does 0 16 mean the start time of the siege?
  • Does 0 20 mean the end time of the siege?

I ask because in other castles it looks different, like in rune:
<parameter name="siege_schedule" value="0 16 +14:* * 7|0 20 +14:* * 7" />

Another question: after editing this setting, do I also need to update anything in the database, or will the system automatically follow the defined schedule when the programmed date arrives?


What I want is for the siege to take place from 16:00 to 17:00.
 
0 16 and 0 20 are not start/end times, but siege "waves" or a choise for the castle owner to change the siege time.
if you read the relevant guide for castles or sieges it describes this function.

there is another place to edit the overall siege time, dont remember rn
 
  • Like
Reactions: L2g
Back
Top