From 2e7852ee8f42b96a807a14a6baf16e84dcf1ced7 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 6 Jan 2017 10:29:28 +0000 Subject: [PATCH] Quest Deep Inside Atelia Fortress (10841). Contributed by gigilo1968. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../34051-00.html | 4 + .../34051-01.html | 4 + .../34051-02.html | 3 + .../34057-00.htm | 4 + .../34057-01.htm | 5 + .../34057-02.htm | 5 + .../34057-03.htm | 5 + .../34057-04.htm | 5 + .../34057-05.htm | 5 + .../34057-06.html | 4 + .../34057-07.html | 5 + .../Q10841_DeepInsideAteliaFortress.java | 163 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 4 +- 14 files changed, 215 insertions(+), 2 deletions(-) create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-00.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-01.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-02.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-00.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-01.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-02.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-03.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-04.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-05.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-06.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-07.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/Q10841_DeepInsideAteliaFortress.java diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt index 2a2625e3e1..07966bc75c 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt @@ -122,7 +122,6 @@ 10806 The Dimensional Warp, Part 6 10807 The Dimensional Warp, Part 7 10809 The Hero's Journey: Blazing Swamp -10841 Deep Inside Atelia Fortress 10843 Anomaly in the Enchanted Valley 10844 Bloody Battle - Seizing Supplies 10845 Bloody Battle - Rescue the Smiths diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-00.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-00.html new file mode 100644 index 0000000000..921cef3277 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-00.html @@ -0,0 +1,4 @@ +Shadai's Disciple Kaysia:
+I'm grateful you want to help, but you will need to get a little stronger to help me.
+(This quest is for characters Lv. 101 and higher who have completed the "Deep Inside Atelia Fortress" quest.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-01.html new file mode 100644 index 0000000000..03f23d606e --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-01.html @@ -0,0 +1,4 @@ +Shadai's Disciple Kaysia:
+//@TODO Need retail HTML dialog (Gigi).
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-02.html new file mode 100644 index 0000000000..8b856bdee2 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34051-02.html @@ -0,0 +1,3 @@ +Shadai's Disciple Kaysia:
+//@TODO Need retail HTML dialog (Gigi).
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-00.htm new file mode 100644 index 0000000000..43764cf1fa --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-00.htm @@ -0,0 +1,4 @@ +Verdure Elder Elikia:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(Only characters above Lv. 101.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-01.htm new file mode 100644 index 0000000000..9dafee979f --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-01.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+Good timing. I had something to tell you.
+Did you know that there's a very suspicious place inside the Atelia Fortress? It's hard to reach since it's so deep inside...
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-02.htm new file mode 100644 index 0000000000..76503ce5a5 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-02.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+The Atelia Fortress is just very suspicious in general, so it wouldn't be strange if there's something else.
+We call it the Atelia Castle. A high officer of the Embryo is there.
His name is Kelbim.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-03.htm new file mode 100644 index 0000000000..216d59ba70 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-03.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+Kelbim is a high officer of the Embryo. He isn't inside the Atelia Fortress all the time, but he does come from time to time to manage it. There are many obstacles you must go through to get to the castle.
First, you must defeat the Atelia Trial Guardian Captain who guards the gate to where Kelbim is. That's how you'll be able to open the gate. This isn't the end.
+That place makes people who know each other fight. It might be because of the Atelia's effect. Anyway, you have to be wary of everyone inside. There's more to that, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-04.htm new file mode 100644 index 0000000000..28c51e46be --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-04.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+From what I heard, Kelbim has received the Seal of Calamity. That, combined with the power of the Atelia is causing constant change.
+I know you what you are capable of, but Kelbim won't be an easy opponent. Are you sure you want to go find Kelbim?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-05.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-05.htm new file mode 100644 index 0000000000..9698a5c70f --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-05.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+Alright, once you infiltrate the Atelia Castle, you'll be able to meet Kelbim.
+Once you defeat him, you'll be able to get Kelbim's Armor Piece. There's someone who needs that item, so go find her.
+Her name is in Kaysia, and she's in the forge in the Town of Oren. She was eyeing Kelbim's Armor Piece, so take it to her once you have it. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-06.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-06.html new file mode 100644 index 0000000000..5fba442742 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-06.html @@ -0,0 +1,4 @@ +Verdure Elder Elikia:
+You are still here? Once you get to the Atelia Castle, you'll be able to meet Kelbim.
+Defeat him and collect Kelbim's Armor Piece. After that, go find Shadai's Disciple Kaysia in the Town of Oren. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-07.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-07.html new file mode 100644 index 0000000000..0e09a8277a --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/34057-07.html @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+It looks like you've defeated Kelbim.
+You should go find the Ertheia Blacksmith Shadai's Disciple Kaysia in the Town of Oren.
+She was visiting a while back. You should go now. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/Q10841_DeepInsideAteliaFortress.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/Q10841_DeepInsideAteliaFortress.java new file mode 100644 index 0000000000..b84da95e2a --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10841_DeepInsideAteliaFortress/Q10841_DeepInsideAteliaFortress.java @@ -0,0 +1,163 @@ +/* + * 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 quests.Q10841_DeepInsideAteliaFortress; + +import com.l2jmobius.Config; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; + +/** + * Deep Inside Atelia Fortress (10841) + * @URL https://l2wiki.com/Deep_Inside_Atelia_Fortress + * @author Gigi + */ +public final class Q10841_DeepInsideAteliaFortress extends Quest +{ + // NPCs + private static final int ELIKIA = 34057; + private static final int KAYSIA = 34051; + // Boss + private static final int KELBIM = 26124; + // Items + private static final int KELBIM_ARMOR_PIECE = 46144; + private static final int SPIRIT_STONE_HAIR_ACCESSORY = 45937; + private static final int SUPERIOR_GIANTS_CODEX = 46151; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10841_DeepInsideAteliaFortress() + { + super(10841); + addStartNpc(ELIKIA); + addTalkId(ELIKIA, KAYSIA); + addKillId(KELBIM); + registerQuestItems(KELBIM_ARMOR_PIECE); + addCondMinLevel(MIN_LEVEL, "34057-00.htm"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34057-02.htm": + case "34057-03.htm": + case "34057-04.htm": + { + htmltext = event; + break; + } + case "34057-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34051-02.html": + { + giveItems(player, SPIRIT_STONE_HAIR_ACCESSORY, 1); + giveItems(player, SUPERIOR_GIANTS_CODEX, 1); + addExpAndSp(player, 7262301690L, 17429400); + qs.exitQuest(false, true); + htmltext = event; + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + + switch (qs.getState()) + { + case State.CREATED: + { + htmltext = "34057-01.htm"; + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case ELIKIA: + { + if (qs.isCond(1)) + { + htmltext = "34057-06.html"; + } + else if (qs.isCond(2)) + { + htmltext = "34057-07.html"; + } + break; + } + case KAYSIA: + { + if (qs.isCond(1)) + { + htmltext = "34051-00.html"; + } + else if (qs.isCond(2) && hasQuestItems(player, KELBIM_ARMOR_PIECE)) + { + htmltext = "34051-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && player.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, true)) + { + giveItems(player, KELBIM_ARMOR_PIECE, 1); + qs.setCond(2, true); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java index 6fb8b305c1..fe9596d9df 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -418,6 +418,7 @@ import quests.Q10837_LookingForTheBlackbirdClanMember.Q10837_LookingForTheBlackb import quests.Q10838_TheReasonForNotBeingAbleToGetOut.Q10838_TheReasonForNotBeingAbleToGetOut; import quests.Q10839_BlackbirdsNameValue.Q10839_BlackbirdsNameValue; import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; +import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; /** * @author NosBit @@ -826,7 +827,8 @@ public class QuestMasterHandler Q10837_LookingForTheBlackbirdClanMember.class, Q10838_TheReasonForNotBeingAbleToGetOut.class, Q10839_BlackbirdsNameValue.class, - Q10840_TimeToRecover.class + Q10840_TimeToRecover.class, + Q10841_DeepInsideAteliaFortress.class }; public static void main(String[] args)