diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/31714-01.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/31714-01.html new file mode 100644 index 0000000000..0bf81277f9 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/31714-01.html @@ -0,0 +1,4 @@ +Ateld:
+Where is your Alliance? You are not seriously going into battle all by yourself, are you? Hahahaha!
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/31714.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/31714.html new file mode 100644 index 0000000000..861d973489 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/31714.html @@ -0,0 +1,6 @@ +Ateld:
+Have you heard? Antharas has awakened, and Baium has become even stronger! It is great opportunity for you to demonstrate your abilities to Balthus Knights. Do you have the courage to face Baium?
+Although our main target is Antharas, Baium must be defeated first. Kill him and receive Rash's supplies as a reward. Use them wisely!
+I can only teleport characters of level 70 and higher. I will teleport an alliance consisting of 27-300 members to any village of the leader's choice.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/Ateld.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/Ateld.java new file mode 100644 index 0000000000..32970b2d7d --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/Ateld/Ateld.java @@ -0,0 +1,71 @@ +/* + * 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.TowerOfInsolence.Ateld; + +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; + +import ai.AbstractNpcAI; + +/** + * @author Mobius + */ +public class Ateld extends AbstractNpcAI +{ + // NPC + private static final int ATELD = 31714; + // Location + private static final Location TELEPORT_LOC = new Location(115322, 16756, 9012); + + private Ateld() + { + addFirstTalkId(ATELD); + addTalkId(ATELD); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + if (event.equals("teleToBaium")) + { + if ((player.getCommandChannel() == null) || (player.getCommandChannel().getMemberCount() < 27) || (player.getCommandChannel().getMemberCount() > 300)) + { + return "31714-01.html"; + } + for (L2PcInstance member : player.getCommandChannel().getMembers()) + { + if ((member != null) && (member.getLevel() > 70)) + { + member.teleToLocation(TELEPORT_LOC); + } + } + } + return null; + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + return "31714.html"; + } + + public static void main(String[] args) + { + new Ateld(); + } +} diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/spawns/Aden/TowerOfInsolence.xml b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/spawns/Aden/TowerOfInsolence.xml index dce1a9ca08..25786feee5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/spawns/Aden/TowerOfInsolence.xml +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/spawns/Aden/TowerOfInsolence.xml @@ -1637,6 +1637,7 @@ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/npcs/31700-31799.xml b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/npcs/31700-31799.xml index 1c0da18aec..da9cb68344 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/npcs/31700-31799.xml +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/stats/npcs/31700-31799.xml @@ -1,5 +1,23 @@  + + HUMAN + FEMALE + + + + + + + + + + + + + + +