L2JMobius
Free Users => General Discussion => Topic started by: cykal on July 19, 2021, 06:49:45 PM
-
I need help to configure the TvT, rabbits and elpy events to run automatically
this is my configuration in "game\data\events"
TvT Schedule
<event name="Team Vs Team" class="org.l2jmobius.gameserver.instancemanager.events.TeamVsTeamManager">
<scheduler>
<!-- Schedule every day at 16:50 -->
<schedule name="start" hour="9" minute="50" dayOfMonth="*" month="*" dayOfWeek="*" repeat="true">
<event name="#startEvent" />
</schedule>
<schedule name="start2" hour="13" minute="50" dayOfMonth="*" month="*" dayOfWeek="*" repeat="true">
<event name="#startEvent" />
</schedule>
<schedule name="start3" hour="18" minute="50" dayOfMonth="*" month="*" dayOfWeek="*" repeat="true">
<event name="#startEvent" />
</schedule>
<!-- Attach condition to reset if server boots up after start and hasn't reset yet -->
<conditionalSchedule>
<run name="start" if="HASNT_RUN" />
<run name="start2" if="HASNT_RUN" />
<run name="start3" if="HASNT_RUN" />
</conditionalSchedule>
</scheduler>
</event>
Rabbits
<event name="Rabbits" class="org.l2jmobius.gameserver.instancemanager.events.RabbitsManager">
<scheduler>
<!-- Schedule every day at 16:50 -->
<schedule name="start" hour="16" minute="50" dayOfMonth="*" month="*" dayOfWeek="1" repeat="true">
<event name="#startEvent" />
</schedule>
<!-- Attach condition to reset if server boots up after start and hasn't reset yet -->
<conditionalSchedule>
<run name="start" if="HASNT_RUN" />
</conditionalSchedule>
</scheduler>
</event>
Elpy
<event name="Elpies" class="org.l2jmobius.gameserver.instancemanager.events.ElpiesManager">
<scheduler>
<!-- Schedule every day at 16:50 -->
<schedule name="start" hour="16" minute="50" dayOfMonth="*" month="*" dayOfWeek="1" repeat="true">
<event name="#startEvent" />
</schedule>
<!-- Attach condition to reset if server boots up after start and hasn't reset yet -->
<conditionalSchedule>
<run name="start" if="HASNT_RUN" />
</conditionalSchedule>
</scheduler>
</event>
And in the Db on the table event_schedulers, i create this items
1 Daily Reset save 2021-07-19 09:30:00
2 Daily Reset reset 2021-07-19 06:30:02
3 Daily Reset clanLeaderApply 2021-07-14 09:21:19
4 Team Vs Team start1 2021-07-13 12:06:52
5 Team Vs Team start2 2021-07-13 12:07:17
6 Team Vs Team start3 2021-07-13 12:07:23
7 Rabbits start 2021-07-13 12:07:52
8 Elpies start 2021-07-13 12:08:15
I would like help, what am I doing wrong or what is missing for the events to run automatically, because they are not doing it with my current configuration.
PS. thx you so much for you time and answer.
-
once you configure the xml, no need to add nothing on DB. the event run automaticlly once you set up the hrs and days
-
Previously I did it that way but still it does not run the events automatically ... could you tell me if the configuration made in the xml file of each event is well done?
-
obvious question , you change the extention file from .txt to xml?
-
oH... holy cow, why i wasn't think in that.... let me try i will feed back to you with the results... thx you!!!
----------------------
Edit:
OH its worked now.... thx you man, sometimes we have things in our noses and we do not realize it!