Quest Confronting the Greatest Danger (10824).

This commit is contained in:
MobiusDev 2016-07-30 18:25:20 +00:00
parent af9f607172
commit af7d02e879
13 changed files with 194 additions and 2 deletions

View File

@ -163,7 +163,6 @@
10806 The Dimensional Warp, Part 6
10807 The Dimensional Warp, Part 7
10809 The Hero's Journey: Blazing Swamp
10824 Confronting the Greatest Danger
10825 For Victory
10826 Luck Befitting of the Status
10827 Step Up to Lead

View File

@ -0,0 +1,6 @@
<html><body>Merlot:<br>
Oh! Are you the one who Lionel has sent?<br>
What an honor! I'm Merlot.<br>
Mermoden is my master. I was entrusted with this by my master, but this is so nerve-wracking.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10824_ConfrontingTheGreatestDanger 34019-04.htm">"I can imagine."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Merlot:<br>
I'm sorry. Going to another dimension is a very hard thing to do. I don't think you are ready for that.<br>
(Only characters above Lv. 100.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Merlot:<br>
You must go talk to Lionel before coming to me.<br>
(Only characters who are performing the Exalted, One Who Shatters the Limit quest may take this quest.)
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Merlot:<br>
I heard that you'll be leading this world.<br>
Of course I trust your abilities, but since I was entrusted with this test, I must give it my all. Are you ready?<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10824_ConfrontingTheGreatestDanger 34019-05.htm">"There are monsters in the other dimension?"</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Merlot:<br>
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.<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10824_ConfrontingTheGreatestDanger 34019-06.html">"I see."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Merlot:<br>
I would like you to go into the other dimension and participate in the <font color="LEVEL">Dimensional Raid</font> 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.<br>
When you defeat monsters in the other dimension, you'll get a <font color="LEVEL">Mark of Advance</font>. Get <font color="LEVEL">3</font> of these and bring them back to me. You need to keep in mind that each time you participate in the <font color="LEVEL">Dimensional Raid</font> you will only get <font color="LEVEL">1 Mark of Advance</font>. <br> <br> <br>
Also, remember that I can only open the gate on certain days. I can send you there on <font color="LEVEL">Saturdays when there are no Dimensional Castle Sieges, between 19:00~22:00</font>. Just come find me during those times.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Merlot:<br>
Please participate in the <font color="LEVEL">Dimensional Raid</font> to prevent those monsters from influencing this place, and collect <font color="LEVEL">3 Marks of Advance</font>. 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.<br>
You may teleport to another dimension <font color="LEVEL">only on Saturdays when there are no Dimensional Sieges between 19:00-22:00</font>. Don't forget this last part.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Merlot:<br>
You've compelted it! Great!<br>
We won't need to worry about the monsters from the other dimension.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10824_ConfrontingTheGreatestDanger 34019-09.html">"No doubt about it."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Merlot:<br>
Thank you. I'll give you a certificate now.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Merlot:<br>
Thank you. I'll give you a certificate now.<br>
It looks like you've completed all the other tests as well! You can go see Lionel now.
</body></html>

View File

@ -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 <http://www.gnu.org/licenses/>.
*/
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;
}
}

View File

@ -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)