diff --git a/trunk/dist/db_installer/sql/game/spawnlist.sql b/trunk/dist/db_installer/sql/game/spawnlist.sql index 4853d9fb09..1c814da65b 100644 --- a/trunk/dist/db_installer/sql/game/spawnlist.sql +++ b/trunk/dist/db_installer/sql/game/spawnlist.sql @@ -17813,24 +17813,6 @@ INSERT INTO `spawnlist` VALUES -- Asher ("Primeval Isle", 1, 32714, 11504, -23344, -3644, 0, 0, 39000, 60, 0, 0, 0), --- [20_18] - --- Gremlin -("Dark Elf Village", 1, 18342, 28249, 11122, -4232, 0, 0, 44107, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 27834, 10517, -4232, 0, 0, 16383, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 27955, 11534, -4232, 0, 0, 24797, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28285, 10771, -4232, 0, 0, 37219, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28173, 11588, -4232, 0, 0, 21290, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28514, 11638, -4232, 0, 0, 2538, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28167, 11282, -4232, 0, 0, 51165, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28660, 11630, -4232, 0, 0, 38869, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 27828, 10465, -4232, 0, 0, 17818, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28800, 11173, -4232, 0, 0, 18651, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28604, 10683, -4232, 0, 0, 1592, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28958, 10876, -4232, 0, 0, 56673, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28990, 11241, -4232, 0, 0, 58793, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28762, 11570, -4232, 0, 0, 23446, 60, 0, 0, 0), -("Dark Elf Village", 1, 18342, 28800, 11276, -4232, 0, 0, 54830, 60, 0, 0, 0), -- Goblin ("Dark Elf Village", 1, 20003, 30746, 12664, -3712, 0, 0, 12215, 15, 0, 0, 0), ("Dark Elf Village", 1, 20003, 30748, 13185, -3720, 0, 0, 52023, 15, 0, 0, 0), @@ -17930,12 +17912,9 @@ INSERT INTO `spawnlist` VALUES ("Altar of Evil", 1, 23179, 785, 6649, -3224, 0, 0, 3747, 60, 0, 0, 0), ("Altar of Evil", 1, 23179, 344, 6000, -3255, 0, 0, 51646, 60, 0, 0, 0), ("Altar of Evil", 1, 23179, 334, 6933, -3230, 0, 0, 26225, 60, 0, 0, 0), --- Mitraell -("Dark_Elf_Village_Npc", 1, 30129, 28384, 11008, -4232, 0, 0, 32000, 60, 0, 0, 0), + -- Undrias ("Dark_Elf_Village_Npc", 1, 30130, 25856, 10832, -3720, 0, 0, 24576, 60, 0, 0, 0), --- Newbie Helper -("Dark_Elf_Village_Npc", 1, 30131, 28384, 11056, -4232, 0, 0, 32000, 60, 0, 0, 0), -- Cecktinon ("Dark_Elf_Village_Npc", 1, 30132, 28225, 12998, -3720, 0, 0, 16500, 60, 0, 0, 0), -- Kartia @@ -49693,3 +49672,9 @@ INSERT INTO `spawnlist` VALUES ('Cruma Tower', 1, 33990, 22736, 118320, -12090, 0, 0, 60821, 60, 0, 0, 0), -- Hidden Crusher ('Cruma Tower', 1, 33990, 22736, 118936, -12090, 0, 0, 33417, 60, 0, 0, 0), -- Hidden Crusher ('Cruma Tower', 1, 33990, 22736, 119586, -12090, 0, 0, 33333, 60, 0, 0, 0); -- Hidden Crusher + +-- Hardin +INSERT INTO `spawnlist` VALUES +("YeSagiraRuins", 1, 33870, -114075, 227874, -2864, 0, 0, 45119, 60, 0, 0, 0), +-- Monk of Chaos +("YeSagiraRuins", 1, 33880, -114008, 227900, -2864, 0, 0, 45119, 60, 0, 0, 0); diff --git a/trunk/dist/game/data/scripts.cfg b/trunk/dist/game/data/scripts.cfg index 5c84283516..412ffe14eb 100644 --- a/trunk/dist/game/data/scripts.cfg +++ b/trunk/dist/game/data/scripts.cfg @@ -40,6 +40,7 @@ ai/npc/ForgeOfTheGods/Rooney.java ai/npc/FortressArcherCaptain/FortressArcherCaptain.java ai/npc/FortressSiegeManager/FortressSiegeManager.java ai/npc/FreyasSteward/FreyasSteward.java +ai/npc/Hardin/Hardin.java ai/npc/Jinia/Jinia.java ai/npc/KetraOrcSupport/KetraOrcSupport.java ai/npc/LaVieEnRose/LaVieEnRose.java diff --git a/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-1.html b/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-1.html new file mode 100644 index 0000000000..9f59b69ebd --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-1.html @@ -0,0 +1,6 @@ +Hardin:

+I sense there is little Power of God in you.
+I'm afraid you don't qualify to receive the Power of God.
+You'll have to go back.
+(Awakening specialization is possible for the 3rd class through the Stone Statue of the Giant. You can use Fragments of Chaos after using all your Chaos Essence.)
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-2.html b/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-2.html new file mode 100644 index 0000000000..33b5c00d98 --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-2.html @@ -0,0 +1,5 @@ +Hardin:

+You've already obtained all the powers.
+You don't even have any Chaos Essence for any class. You'll have to go back.
+(Only characters who have the Chaos Essence appropriate for their class can select the Power of Chaos. Only after using all the Chaos Essence for your main class, can you change your dual class.)
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-3.html b/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-3.html new file mode 100644 index 0000000000..8de8b2c41a --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Hardin/33870-3.html @@ -0,0 +1,4 @@ +Hardin the Agent of Chaos:
+This place is a tomb for your soul. The strength of the giants sleep here.
+Why has an Ertheia of the Wind race come here?
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/ai/npc/Hardin/Hardin.java b/trunk/dist/game/data/scripts/ai/npc/Hardin/Hardin.java new file mode 100644 index 0000000000..75d13955fd --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Hardin/Hardin.java @@ -0,0 +1,75 @@ +/* + * 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.npc.Hardin; + +import com.l2jmobius.gameserver.data.xml.impl.CategoryData; +import com.l2jmobius.gameserver.enums.CategoryType; +import com.l2jmobius.gameserver.enums.Race; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; + +import ai.npc.AbstractNpcAI; + +/** + * Hardin AI. + * @author Stayway + */ +final class Hardin extends AbstractNpcAI +{ + // NPC + private static final int HARDIN = 33870; + // Misc + private static final int MIN_LEVEL = 85; + + private Hardin() + { + super(Hardin.class.getSimpleName(), "ai/npc"); + addFirstTalkId(HARDIN); + addCondRace(Race.ERTHEIA, "no_race.html"); // TODO: Find proper HTML + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = null; + switch (npc.getId()) + { + case HARDIN: + { + if ((player.getRace() != Race.ERTHEIA) && (player.getLevel() < MIN_LEVEL)) + { + htmltext = "33870-01.html"; + } + else if ((player.getRace() != Race.ERTHEIA) && (CategoryData.getInstance().isInCategory(CategoryType.AWAKEN_GROUP, player.getBaseClassId()))) + { + htmltext = "33870-02.html"; + } + else if ((player.getRace() == Race.ERTHEIA) && (player.getLevel() >= MIN_LEVEL)) + { + htmltext = "33870-03.html"; + } + break; + } + } + return htmltext; + } + + public static void main(String[] args) + { + new Hardin(); + } +} \ No newline at end of file