Quest In Search of the Cause (10829).

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2017-01-06 09:54:05 +00:00
parent 558267aa9b
commit f82bdb881f
18 changed files with 240 additions and 2 deletions

View File

@@ -122,7 +122,6 @@
10806 The Dimensional Warp, Part 6
10807 The Dimensional Warp, Part 7
10809 The Hero's Journey: Blazing Swamp
10829 In Search of the Cause
10830 The Lost Garden of Spirits
10831 Unbelievable Sight
10832 Energy of Sadness and Anger

View File

@@ -0,0 +1,4 @@
<html><body>Cardinal Seresin:<br>
I praise your courage, but you are still not ready. Get some more experience. There's a time for everything. I'll give you this mission once I feel that you are ready for it.<br>
(Only characters above Lv. 100.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Cardinal Seresin:<br>
I can feel your power, but I wonder if you care enough about the safety of this world. So? Do you only care about your own safety? Or is the world important to you too?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10829_InSearchOfTheCause 30657-02.htm">"I'm part of this world."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Cardinal Seresin:<br>
Listen to my story. I'm sure you know, but this world was turned into chaos after Shilen's advent. The territory of the Dark Elves was especially hit hard with a plague, and it became the land of the dead.<br>
Time has passed, but those lands never recovered. Then one day, an explorer reported a strange phenomenon.<br>
Rumors spread, and a few Ertheia moved. I'm sure they know what's going on.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10829_InSearchOfTheCause 30657-03.htm">"I see."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Cardinal Seresin:<br>
After that, Leona Blackbird and her people followed. They built their base, and they investigated the area. But of course, they aren't able to do all that by themselves. That's why I was thinking that you could go and help them. <br>
That's my story. Now it's your turn to make a decision. Will you help them?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10829_InSearchOfTheCause 30657-04.htm">"Yes."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Cardinal Seresin:<br>
Alright. I'll tell you what to do. Leona Blackbird's followers are in the <font color="LEVEL">Blackbird Campsite</font>. In order to find out what happened there, go to that place and talk to the <font color="LEVEL">Ertheia</font> there.<br>You can get to the Blackbird Campsite through the gatekeeper here in Oren. I'll give you a report on that region, so refer to it.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Cardinal Seresin:<br>
You are still here? Go to the Blackbird Campsite and talk to the <font color="LEVEL">Ertheia there</font>. Help them if they need help.<br>
You can get to the Blackbird Campsite through the gatekeeper here in Oren.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
Oh, I've met you before at the Chamber of Prophecies... Well, that doesn't change anything. Even if you act like we are close, I don't care.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10829_InSearchOfTheCause 34054-02.html">"What do you mean?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
Who are you? Why are you talking to me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10829_InSearchOfTheCause 34054-03.html">"Seresin sent me."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
No! I said no! My dad said to not tell anyone about this. Especially people who I can't trust!<br>
I'm not talkng to you!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ferin:<br>
I'm not talking to you! You! Yes, you! Stop looking down at me!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Master Cyphona:<br>
Oh, I heard your conversation with Ferin. Do you need anything? My name is Cyphona.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Master Cyphona:<br>
Oh, I heard your conversation with Ferin. Do you need anything? My name is Cyphona.<br>
Just let me know if you need anything.<br><Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10829_InSearchOfTheCause 34055-03.html">"So Seresin said..."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Master Cyphona:<br>
Oh, that's why you are here! Ok. I'll talk to Ferin. Please wait.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Magister Belas:<br>
I don't see why you find the need to talk to me. The correct way to go about this is for you to talk to Master Cyphona first and build trust. Ferin is very hesitant about getting help from people we barely know.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Magister Belas:<br>
Hello, adventurer. Please talk to Master Cyphona. I'm next.
</body></html>

View File

@@ -0,0 +1,180 @@
/*
* 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.Q10829_InSearchOfTheCause;
import com.l2jmobius.gameserver.model.actor.L2Character;
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;
/**
* In Search of the Cause (10829)
* @URL https://l2wiki.com/In_Search_of_the_Cause
* @author Gigi
*/
public final class Q10829_InSearchOfTheCause extends Quest
{
// NPC
private static final int SERESIN = 30657;
private static final int BELAS = 34056;
private static final int FERIN = 34054;
private static final int CYPHONIA = 34055;
// Misc
private static final int MIN_LEVEL = 100;
private static final int SOE = 46158;
public Q10829_InSearchOfTheCause()
{
super(10829);
addStartNpc(SERESIN);
addTalkId(SERESIN, BELAS, FERIN, CYPHONIA);
addSeeCreatureId(BELAS);
addCondMinLevel(MIN_LEVEL, "30657-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 "30657-02.htm":
case "30657-03.htm":
case "34054-02.html":
{
htmltext = event;
break;
}
case "30657-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34054-03.html":
{
qs.setCond(2);
qs.setCond(4, true);
htmltext = event;
break;
}
case "34055-03.html":
{
giveItems(player, SOE, 1);
addExpAndSp(player, 55369440, 132885);
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:
{
if (npc.getId() == SERESIN)
{
htmltext = "30657-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case SERESIN:
{
if (qs.isCond(1))
{
htmltext = "30657-05.html";
break;
}
}
case BELAS:
{
if (qs.isCond(2))
{
htmltext = "34056-01.html";
}
else if (qs.getCond() > 2)
{
htmltext = "34056-02.html";
}
break;
}
case FERIN:
{
if (qs.isCond(2))
{
htmltext = "34054-01.html";
}
else if (qs.getCond() > 2)
{
htmltext = "34054-04.html";
}
break;
}
case CYPHONIA:
{
if ((qs.getCond() > 1) && (qs.getCond() < 4))
{
htmltext = "34055-01.html";
}
else if (qs.isCond(4))
{
htmltext = "34055-02.html";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public String onSeeCreature(L2Npc npc, L2Character creature, boolean isSummon)
{
final QuestState qs = getQuestState((L2PcInstance) creature, true);
if ((qs != null) && qs.isCond(1) && creature.isPlayer())
{
qs.setCond(2, true);
}
return super.onSeeCreature(npc, creature, isSummon);
}
}

View File

@@ -408,6 +408,7 @@ import quests.Q10824_ConfrontingTheGreatestDanger.Q10824_ConfrontingTheGreatestD
import quests.Q10825_ForVictory.Q10825_ForVictory;
import quests.Q10826_LuckBefittingOfTheStatus.Q10826_LuckBefittingOfTheStatus;
import quests.Q10827_StepUpToLead.Q10827_StepUpToLead;
import quests.Q10829_InSearchOfTheCause.Q10829_InSearchOfTheCause;
/**
* @author NosBit
@@ -806,7 +807,8 @@ public class QuestMasterHandler
Q10824_ConfrontingTheGreatestDanger.class,
Q10825_ForVictory.class,
Q10826_LuckBefittingOfTheStatus.class,
Q10827_StepUpToLead.class
Q10827_StepUpToLead.class,
Q10829_InSearchOfTheCause.class
};
public static void main(String[] args)