Merlot:
+Oh! Are you the one who Lionel has sent?
+What an honor! I'm Merlot.
+Mermoden is my master. I was entrusted with this by my master, but this is so nerve-wracking.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-02.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-02.html
new file mode 100644
index 0000000000..96533490be
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-02.html
@@ -0,0 +1,4 @@
+Merlot:
+I'm sorry. Going to another dimension is a very hard thing to do. I don't think you are ready for that.
+(Only characters above Lv. 100.)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-03.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-03.html
new file mode 100644
index 0000000000..4b56a46573
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-03.html
@@ -0,0 +1,4 @@
+Merlot:
+You must go talk to Lionel before coming to me.
+(Only characters who are performing the Exalted, One Who Shatters the Limit quest may take this quest.)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-04.htm b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-04.htm
new file mode 100644
index 0000000000..8f29f73bdd
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-04.htm
@@ -0,0 +1,7 @@
+Merlot:
+I heard that you'll be leading this world.
+Of course I trust your abilities, but since I was entrusted with this test, I must give it my all. Are you ready?
+Right! You know that you can go into another dimension with the help of a Dimensional Researcher, right? Mermoden is my master, and I'm also a Dimensional Researcher.
+Recently, a lot of monsters have been appearing in the other dimension, interrupting our research, so I've been looking for someone to get rid of them.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-05.htm b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-05.htm
new file mode 100644
index 0000000000..3577499456
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-05.htm
@@ -0,0 +1,6 @@
+Merlot:
+Why, yes. I doubted my own eyes when I first saw them. Well, it's not surprising that there are others who can teleport into another dimension just like my master and I.
+However, we have a lot of things to find out still. When we found out that those monsters are eyeing the other dimension, we decided we must stop them.
+That's why I've come here. I've come in search of adventurers who could help us. Fortunately, I met Lionel, and decided to take part in this test.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-06.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-06.html
new file mode 100644
index 0000000000..a10c628c14
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-06.html
@@ -0,0 +1,5 @@
+Merlot:
+I would like you to go into the other dimension and participate in the Dimensional Raid to defeat those monsters. I'm sure someone who can protect the world like that will go on to do greater things and acquire greater powers.
+When you defeat monsters in the other dimension, you'll get a Mark of Advance. Get 3 of these and bring them back to me. You need to keep in mind that each time you participate in the Dimensional Raid you will only get 1 Mark of Advance.
+Also, remember that I can only open the gate on certain days. I can send you there on Saturdays when there are no Dimensional Castle Sieges, between 19:00~22:00. Just come find me during those times.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-07.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-07.html
new file mode 100644
index 0000000000..5e21b0fc07
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-07.html
@@ -0,0 +1,4 @@
+Merlot:
+Please participate in the Dimensional Raid to prevent those monsters from influencing this place, and collect 3 Marks of Advance. You can only get 1 Mark each time you participate in the Dimensional Raid, so you must participate 3 times in order to pass my test.
+You may teleport to another dimension only on Saturdays when there are no Dimensional Sieges between 19:00-22:00. Don't forget this last part.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-08.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-08.html
new file mode 100644
index 0000000000..38596b1948
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-08.html
@@ -0,0 +1,5 @@
+Merlot:
+You've compelted it! Great!
+We won't need to worry about the monsters from the other dimension.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-09.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-09.html
new file mode 100644
index 0000000000..aee14c8600
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-09.html
@@ -0,0 +1,3 @@
+Merlot:
+Thank you. I'll give you a certificate now.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-10.html b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-10.html
new file mode 100644
index 0000000000..a4ea96b0e5
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/34019-10.html
@@ -0,0 +1,4 @@
+Merlot:
+Thank you. I'll give you a certificate now.
+It looks like you've completed all the other tests as well! You can go see Lionel now.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/Q10824_ConfrontingTheGreatestDanger.java b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/Q10824_ConfrontingTheGreatestDanger.java
new file mode 100644
index 0000000000..8a213a657e
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10824_ConfrontingTheGreatestDanger/Q10824_ConfrontingTheGreatestDanger.java
@@ -0,0 +1,143 @@
+/*
+ * 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.Q10824_ConfrontingTheGreatestDanger;
+
+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;
+
+import quests.Q10823_ExaltedOneWhoShattersTheLimit.Q10823_ExaltedOneWhoShattersTheLimit;
+
+/**
+ * Confronting the Greatest Danger (10824)
+ * @URL https://l2wiki.com/Confronting_the_Greatest_Danger
+ * @author Mobius
+ */
+public final class Q10824_ConfrontingTheGreatestDanger extends Quest
+{
+ // NPC
+ private static final int MERLOT = 34019;
+ // Items
+ private static final int MARK_OF_ADVANCE = 46058;
+ private static final int KURTIZ_CERTIFICATE = 46057;
+ private static final int MAMMON_CERTIFICATE = 45635;
+ private static final int GUSTAV_CERTIFICATE = 45636;
+ // Rewards
+ private static final int MERLOT_SERTIFICATE = 46056;
+ private static final int SPELLBOOK_BLESSING_OF_THE_EXALTED = 45926;
+ // Misc
+ private static final int MIN_LEVEL = 100;
+
+ public Q10824_ConfrontingTheGreatestDanger()
+ {
+ super(10824);
+ addStartNpc(MERLOT);
+ addTalkId(MERLOT);
+ addCondMinLevel(MIN_LEVEL, "34019-02.html");
+ addCondStartedQuest(Q10823_ExaltedOneWhoShattersTheLimit.class.getSimpleName(), "34019-03.html");
+ }
+
+ @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 "34019-04.htm":
+ case "34019-05.htm":
+ {
+ htmltext = event;
+ break;
+ }
+ case "34019-06.html":
+ {
+ qs.startQuest();
+ htmltext = event;
+ break;
+ }
+ case "34019-09.html":
+ {
+ if (qs.isCond(1) && (getQuestItemsCount(player, MARK_OF_ADVANCE) >= 3))
+ {
+ if ((player.getLevel() >= MIN_LEVEL))
+ {
+ if (hasQuestItems(player, KURTIZ_CERTIFICATE, MAMMON_CERTIFICATE, GUSTAV_CERTIFICATE))
+ {
+ htmltext = "34019-10.html";
+ }
+ else
+ {
+ htmltext = event;
+ }
+ takeItems(player, MARK_OF_ADVANCE, 3);
+ giveItems(player, MERLOT_SERTIFICATE, 1);
+ giveItems(player, SPELLBOOK_BLESSING_OF_THE_EXALTED, 1);
+ qs.exitQuest(false, true);
+ }
+ else
+ {
+ htmltext = getNoQuestLevelRewardMsg(player);
+ }
+ }
+ 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 = "34019-01.htm";
+ break;
+ }
+ case State.STARTED:
+ {
+ if (getQuestItemsCount(player, MARK_OF_ADVANCE) >= 3)
+ {
+ htmltext = "34019-08.html";
+ }
+ else
+ {
+ htmltext = "34019-07.html";
+ }
+ break;
+ }
+ case State.COMPLETED:
+ {
+ htmltext = getAlreadyCompletedMsg(player);
+ break;
+ }
+ }
+ return htmltext;
+ }
+}
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
index e12e2fc9e4..0abf02ba94 100644
--- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
+++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
@@ -361,6 +361,7 @@ import quests.Q10819_ForHonor.Q10819_ForHonor;
import quests.Q10820_RelationshipsBefittingOfTheStatus.Q10820_RelationshipsBefittingOfTheStatus;
import quests.Q10821_HelpingOthers.Q10821_HelpingOthers;
import quests.Q10823_ExaltedOneWhoShattersTheLimit.Q10823_ExaltedOneWhoShattersTheLimit;
+import quests.Q10824_ConfrontingTheGreatestDanger.Q10824_ConfrontingTheGreatestDanger;
/**
* @author NosBit
@@ -712,7 +713,8 @@ public class QuestMasterHandler
Q10819_ForHonor.class,
Q10820_RelationshipsBefittingOfTheStatus.class,
Q10821_HelpingOthers.class,
- Q10823_ExaltedOneWhoShattersTheLimit.class
+ Q10823_ExaltedOneWhoShattersTheLimit.class,
+ Q10824_ConfrontingTheGreatestDanger.class
};
public static void main(String[] args)