diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ForestOfTheDead/EilhalderVonHellmann.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ForestOfTheDead/EilhalderVonHellmann.java deleted file mode 100644 index 2c919d24a5..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ForestOfTheDead/EilhalderVonHellmann.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 ai.areas.ForestOfTheDead; - -import org.l2jmobius.gameserver.model.Location; -import org.l2jmobius.gameserver.model.actor.Npc; -import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; -import org.l2jmobius.gameserver.model.events.EventType; -import org.l2jmobius.gameserver.model.events.ListenerRegisterType; -import org.l2jmobius.gameserver.model.events.annotations.RegisterEvent; -import org.l2jmobius.gameserver.model.events.annotations.RegisterType; -import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange; - -import ai.AbstractNpcAI; - -/** - * @author Mobius - */ -public class EilhalderVonHellmann extends AbstractNpcAI -{ - private static final int EILHALDER_VON_HELLMANN = 25328; - private static final Location SPAWN_LOCATION = new Location(59090, -42188, -3003); - private static Npc npcInstance; - - private EilhalderVonHellmann() - { - } - - @Override - public String onAdvEvent(String event, Npc npc, PlayerInstance player) - { - if (npc != null) - { - if (npc.isInCombat()) - { - startQuestTimer("despawn", 30000, npcInstance, null); - } - else - { - npc.deleteMe(); - } - } - return super.onAdvEvent(event, npc, player); - } - - @RegisterEvent(EventType.ON_DAY_NIGHT_CHANGE) - @RegisterType(ListenerRegisterType.GLOBAL) - public void onDayNightChange(OnDayNightChange event) - { - if (!event.isNight() && (npcInstance != null) && !npcInstance.isDead()) - { - if (!npcInstance.isInCombat()) - { - npcInstance.deleteMe(); - } - else - { - startQuestTimer("despawn", 30000, npcInstance, null); - } - } - else if ((npcInstance == null) || npcInstance.isDead()) - { - npcInstance = addSpawn(EILHALDER_VON_HELLMANN, SPAWN_LOCATION); - } - } - - public static void main(String[] args) - { - new EilhalderVonHellmann(); - } -}