From 61441706e69859b4bde1588ad1ca3e7d9b73ffe7 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 14 Feb 2018 11:19:09 +0000 Subject: [PATCH] Custom event schedule managers. --- .../dist/game/data/events/Elpies.txt | 16 +++++ .../dist/game/data/events/Rabbits.txt | 16 +++++ .../dist/game/data/events/Race.txt | 16 +++++ .../dist/game/data/events/TeamVsTeam.txt | 16 +++++ .../instancemanager/events/ElpiesManager.java | 58 +++++++++++++++++++ .../events/RabbitsManager.java | 58 +++++++++++++++++++ .../instancemanager/events/RaceManager.java | 58 +++++++++++++++++++ .../events/TeamVsTeamManager.java | 58 +++++++++++++++++++ .../dist/game/data/events/Elpies.txt | 16 +++++ .../dist/game/data/events/Rabbits.txt | 16 +++++ .../dist/game/data/events/Race.txt | 16 +++++ .../dist/game/data/events/TeamVsTeam.txt | 16 +++++ .../instancemanager/events/ElpiesManager.java | 58 +++++++++++++++++++ .../events/RabbitsManager.java | 58 +++++++++++++++++++ .../instancemanager/events/RaceManager.java | 58 +++++++++++++++++++ .../events/TeamVsTeamManager.java | 58 +++++++++++++++++++ .../dist/game/data/events/Elpies.txt | 16 +++++ .../dist/game/data/events/Rabbits.txt | 16 +++++ .../dist/game/data/events/Race.txt | 16 +++++ .../dist/game/data/events/TeamVsTeam.txt | 16 +++++ .../instancemanager/events/ElpiesManager.java | 58 +++++++++++++++++++ .../events/RabbitsManager.java | 58 +++++++++++++++++++ .../instancemanager/events/RaceManager.java | 58 +++++++++++++++++++ .../events/TeamVsTeamManager.java | 58 +++++++++++++++++++ .../dist/game/data/events/Elpies.txt | 16 +++++ .../dist/game/data/events/Rabbits.txt | 16 +++++ .../dist/game/data/events/Race.txt | 16 +++++ .../dist/game/data/events/TeamVsTeam.txt | 16 +++++ .../instancemanager/events/ElpiesManager.java | 58 +++++++++++++++++++ .../events/RabbitsManager.java | 58 +++++++++++++++++++ .../instancemanager/events/RaceManager.java | 58 +++++++++++++++++++ .../events/TeamVsTeamManager.java | 58 +++++++++++++++++++ .../dist/game/data/events/Elpies.txt | 16 +++++ .../dist/game/data/events/Rabbits.txt | 16 +++++ .../dist/game/data/events/Race.txt | 16 +++++ .../dist/game/data/events/TeamVsTeam.txt | 16 +++++ .../instancemanager/events/ElpiesManager.java | 58 +++++++++++++++++++ .../events/RabbitsManager.java | 58 +++++++++++++++++++ .../instancemanager/events/RaceManager.java | 58 +++++++++++++++++++ .../events/TeamVsTeamManager.java | 58 +++++++++++++++++++ 40 files changed, 1480 insertions(+) create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/events/Elpies.txt create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/events/Rabbits.txt create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/events/Race.txt create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/events/TeamVsTeam.txt create mode 100644 L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java create mode 100644 L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java create mode 100644 L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java create mode 100644 L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/events/Elpies.txt create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/events/Rabbits.txt create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/events/Race.txt create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/events/TeamVsTeam.txt create mode 100644 L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java create mode 100644 L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java create mode 100644 L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java create mode 100644 L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/events/Elpies.txt create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/events/Rabbits.txt create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/events/Race.txt create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/events/TeamVsTeam.txt create mode 100644 L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java create mode 100644 L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java create mode 100644 L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java create mode 100644 L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Elpies.txt create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Rabbits.txt create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Race.txt create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/TeamVsTeam.txt create mode 100644 L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Elpies.txt create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Rabbits.txt create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Race.txt create mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/TeamVsTeam.txt create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Elpies.txt b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Elpies.txt new file mode 100644 index 0000000000..5d8d23de72 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Elpies.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Rabbits.txt b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Rabbits.txt new file mode 100644 index 0000000000..edb47db099 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Rabbits.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Race.txt b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Race.txt new file mode 100644 index 0000000000..2b6242b9e9 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/Race.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/events/TeamVsTeam.txt b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/TeamVsTeam.txt new file mode 100644 index 0000000000..a2faaf05ad --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/events/TeamVsTeam.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java new file mode 100644 index 0000000000..9992c1efef --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java new file mode 100644 index 0000000000..5ad0a3ab70 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java new file mode 100644 index 0000000000..3e41ad9e17 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java new file mode 100644 index 0000000000..948ef0b762 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/events/Elpies.txt b/L2J_Mobius_2.5_Underground/dist/game/data/events/Elpies.txt new file mode 100644 index 0000000000..5d8d23de72 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/events/Elpies.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/events/Rabbits.txt b/L2J_Mobius_2.5_Underground/dist/game/data/events/Rabbits.txt new file mode 100644 index 0000000000..edb47db099 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/events/Rabbits.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/events/Race.txt b/L2J_Mobius_2.5_Underground/dist/game/data/events/Race.txt new file mode 100644 index 0000000000..2b6242b9e9 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/events/Race.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/events/TeamVsTeam.txt b/L2J_Mobius_2.5_Underground/dist/game/data/events/TeamVsTeam.txt new file mode 100644 index 0000000000..a2faaf05ad --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/events/TeamVsTeam.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java new file mode 100644 index 0000000000..9992c1efef --- /dev/null +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java new file mode 100644 index 0000000000..5ad0a3ab70 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java new file mode 100644 index 0000000000..3e41ad9e17 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java new file mode 100644 index 0000000000..948ef0b762 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/events/Elpies.txt b/L2J_Mobius_3.0_Helios/dist/game/data/events/Elpies.txt new file mode 100644 index 0000000000..5d8d23de72 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/events/Elpies.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/events/Rabbits.txt b/L2J_Mobius_3.0_Helios/dist/game/data/events/Rabbits.txt new file mode 100644 index 0000000000..edb47db099 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/events/Rabbits.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/events/Race.txt b/L2J_Mobius_3.0_Helios/dist/game/data/events/Race.txt new file mode 100644 index 0000000000..2b6242b9e9 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/events/Race.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/events/TeamVsTeam.txt b/L2J_Mobius_3.0_Helios/dist/game/data/events/TeamVsTeam.txt new file mode 100644 index 0000000000..a2faaf05ad --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/events/TeamVsTeam.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java new file mode 100644 index 0000000000..9992c1efef --- /dev/null +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java new file mode 100644 index 0000000000..5ad0a3ab70 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java new file mode 100644 index 0000000000..3e41ad9e17 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java new file mode 100644 index 0000000000..948ef0b762 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Elpies.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Elpies.txt new file mode 100644 index 0000000000..5d8d23de72 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Elpies.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Rabbits.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Rabbits.txt new file mode 100644 index 0000000000..edb47db099 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Rabbits.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Race.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Race.txt new file mode 100644 index 0000000000..2b6242b9e9 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/Race.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/TeamVsTeam.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/TeamVsTeam.txt new file mode 100644 index 0000000000..a2faaf05ad --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/events/TeamVsTeam.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java new file mode 100644 index 0000000000..9992c1efef --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java new file mode 100644 index 0000000000..5ad0a3ab70 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java new file mode 100644 index 0000000000..3e41ad9e17 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java new file mode 100644 index 0000000000..948ef0b762 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Elpies.txt b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Elpies.txt new file mode 100644 index 0000000000..5d8d23de72 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Elpies.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Rabbits.txt b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Rabbits.txt new file mode 100644 index 0000000000..edb47db099 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Rabbits.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Race.txt b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Race.txt new file mode 100644 index 0000000000..2b6242b9e9 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/Race.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/TeamVsTeam.txt b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/TeamVsTeam.txt new file mode 100644 index 0000000000..a2faaf05ad --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/events/TeamVsTeam.txt @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java new file mode 100644 index 0000000000..9992c1efef --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/ElpiesManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java new file mode 100644 index 0000000000..5ad0a3ab70 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RabbitsManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java new file mode 100644 index 0000000000..3e41ad9e17 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/RaceManager.java @@ -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 . + */ +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> +{ + 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(); + } +} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java new file mode 100644 index 0000000000..948ef0b762 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/instancemanager/events/TeamVsTeamManager.java @@ -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 . + */ +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> +{ + 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(); + } +}