Custom event schedule managers.
This commit is contained in:
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/Elpies.txt
vendored
Normal file
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/Elpies.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Elpies" class="com.l2jmobius.gameserver.instancemanager.events.ElpiesManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/Rabbits.txt
vendored
Normal file
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/Rabbits.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Rabbits" class="com.l2jmobius.gameserver.instancemanager.events.RabbitsManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/Race.txt
vendored
Normal file
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/Race.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Race" class="com.l2jmobius.gameserver.instancemanager.events.RaceManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
16
L2J_Mobius_1.0_Ertheia/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Team Vs Team" class="com.l2jmobius.gameserver.instancemanager.events.TeamVsTeamManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ElpiesManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected ElpiesManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Elpies");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static ElpiesManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ElpiesManager INSTANCE = new ElpiesManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RabbitsManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RabbitsManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Rabbits");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RabbitsManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RabbitsManager INSTANCE = new RabbitsManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RaceManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RaceManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Race");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RaceManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RaceManager INSTANCE = new RaceManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class TeamVsTeamManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected TeamVsTeamManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("TvT");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static TeamVsTeamManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final TeamVsTeamManager INSTANCE = new TeamVsTeamManager();
|
||||
}
|
||||
}
|
16
L2J_Mobius_2.5_Underground/dist/game/data/events/Elpies.txt
vendored
Normal file
16
L2J_Mobius_2.5_Underground/dist/game/data/events/Elpies.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Elpies" class="com.l2jmobius.gameserver.instancemanager.events.ElpiesManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_2.5_Underground/dist/game/data/events/Rabbits.txt
vendored
Normal file
16
L2J_Mobius_2.5_Underground/dist/game/data/events/Rabbits.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Rabbits" class="com.l2jmobius.gameserver.instancemanager.events.RabbitsManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_2.5_Underground/dist/game/data/events/Race.txt
vendored
Normal file
16
L2J_Mobius_2.5_Underground/dist/game/data/events/Race.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Race" class="com.l2jmobius.gameserver.instancemanager.events.RaceManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_2.5_Underground/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
16
L2J_Mobius_2.5_Underground/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Team Vs Team" class="com.l2jmobius.gameserver.instancemanager.events.TeamVsTeamManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ElpiesManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected ElpiesManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Elpies");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static ElpiesManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ElpiesManager INSTANCE = new ElpiesManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RabbitsManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RabbitsManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Rabbits");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RabbitsManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RabbitsManager INSTANCE = new RabbitsManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RaceManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RaceManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Race");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RaceManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RaceManager INSTANCE = new RaceManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class TeamVsTeamManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected TeamVsTeamManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("TvT");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static TeamVsTeamManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final TeamVsTeamManager INSTANCE = new TeamVsTeamManager();
|
||||
}
|
||||
}
|
16
L2J_Mobius_3.0_Helios/dist/game/data/events/Elpies.txt
vendored
Normal file
16
L2J_Mobius_3.0_Helios/dist/game/data/events/Elpies.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Elpies" class="com.l2jmobius.gameserver.instancemanager.events.ElpiesManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_3.0_Helios/dist/game/data/events/Rabbits.txt
vendored
Normal file
16
L2J_Mobius_3.0_Helios/dist/game/data/events/Rabbits.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Rabbits" class="com.l2jmobius.gameserver.instancemanager.events.RabbitsManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_3.0_Helios/dist/game/data/events/Race.txt
vendored
Normal file
16
L2J_Mobius_3.0_Helios/dist/game/data/events/Race.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Race" class="com.l2jmobius.gameserver.instancemanager.events.RaceManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_3.0_Helios/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
16
L2J_Mobius_3.0_Helios/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Team Vs Team" class="com.l2jmobius.gameserver.instancemanager.events.TeamVsTeamManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ElpiesManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected ElpiesManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Elpies");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static ElpiesManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ElpiesManager INSTANCE = new ElpiesManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RabbitsManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RabbitsManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Rabbits");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RabbitsManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RabbitsManager INSTANCE = new RabbitsManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RaceManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RaceManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Race");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RaceManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RaceManager INSTANCE = new RaceManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class TeamVsTeamManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected TeamVsTeamManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("TvT");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static TeamVsTeamManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final TeamVsTeamManager INSTANCE = new TeamVsTeamManager();
|
||||
}
|
||||
}
|
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Elpies.txt
vendored
Normal file
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Elpies.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Elpies" class="com.l2jmobius.gameserver.instancemanager.events.ElpiesManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Rabbits.txt
vendored
Normal file
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Rabbits.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Rabbits" class="com.l2jmobius.gameserver.instancemanager.events.RabbitsManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Race.txt
vendored
Normal file
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Race.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Race" class="com.l2jmobius.gameserver.instancemanager.events.RaceManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
16
L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Team Vs Team" class="com.l2jmobius.gameserver.instancemanager.events.TeamVsTeamManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ElpiesManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected ElpiesManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Elpies");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static ElpiesManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ElpiesManager INSTANCE = new ElpiesManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RabbitsManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RabbitsManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Rabbits");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RabbitsManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RabbitsManager INSTANCE = new RabbitsManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RaceManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RaceManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Race");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RaceManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RaceManager INSTANCE = new RaceManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class TeamVsTeamManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected TeamVsTeamManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("TvT");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static TeamVsTeamManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final TeamVsTeamManager INSTANCE = new TeamVsTeamManager();
|
||||
}
|
||||
}
|
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Elpies.txt
vendored
Normal file
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Elpies.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Elpies" class="com.l2jmobius.gameserver.instancemanager.events.ElpiesManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Rabbits.txt
vendored
Normal file
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Rabbits.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Rabbits" class="com.l2jmobius.gameserver.instancemanager.events.RabbitsManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Race.txt
vendored
Normal file
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Race.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Race" class="com.l2jmobius.gameserver.instancemanager.events.RaceManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
16
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/TeamVsTeam.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/events.xsd">
|
||||
<event name="Team Vs Team" class="com.l2jmobius.gameserver.instancemanager.events.TeamVsTeamManager">
|
||||
<scheduler>
|
||||
<!-- Schedule every day at 16:50 -->
|
||||
<schedule name="start" hour="16" minute="50">
|
||||
<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>
|
||||
</list>
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ElpiesManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected ElpiesManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Elpies");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static ElpiesManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ElpiesManager INSTANCE = new ElpiesManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RabbitsManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RabbitsManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Rabbits");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RabbitsManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RabbitsManager INSTANCE = new RabbitsManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RaceManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected RaceManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("Race");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static RaceManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final RaceManager INSTANCE = new RaceManager();
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.instancemanager.events;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEvent;
|
||||
import com.l2jmobius.gameserver.model.eventengine.AbstractEventManager;
|
||||
import com.l2jmobius.gameserver.model.eventengine.ScheduleTarget;
|
||||
import com.l2jmobius.gameserver.model.quest.Event;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class TeamVsTeamManager extends AbstractEventManager<AbstractEvent<?>>
|
||||
{
|
||||
protected TeamVsTeamManager()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
@ScheduleTarget
|
||||
protected void startEvent()
|
||||
{
|
||||
final Event event = (Event) QuestManager.getInstance().getQuest("TvT");
|
||||
if (event != null)
|
||||
{
|
||||
event.eventStart(null);
|
||||
}
|
||||
}
|
||||
|
||||
public static TeamVsTeamManager getInstance()
|
||||
{
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final TeamVsTeamManager INSTANCE = new TeamVsTeamManager();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user