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 544d4175d1..3de41c2d51 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 -10829 In Search of the Cause 10830 The Lost Garden of Spirits 10831 Unbelievable Sight 10832 Energy of Sadness and Anger diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-00.htm new file mode 100644 index 0000000000..066777d5c4 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-00.htm @@ -0,0 +1,4 @@ +Cardinal Seresin:
+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.
+(Only characters above Lv. 100.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-01.htm new file mode 100644 index 0000000000..952f3c563f --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-01.htm @@ -0,0 +1,4 @@ +Cardinal Seresin:
+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?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-02.htm new file mode 100644 index 0000000000..f20a4be07d --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-02.htm @@ -0,0 +1,6 @@ +Cardinal Seresin:
+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.
+Time has passed, but those lands never recovered. Then one day, an explorer reported a strange phenomenon.
+Rumors spread, and a few Ertheia moved. I'm sure they know what's going on.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-03.htm new file mode 100644 index 0000000000..7f04a5d39e --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-03.htm @@ -0,0 +1,5 @@ +Cardinal Seresin:
+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.
+That's my story. Now it's your turn to make a decision. Will you help them?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-04.htm new file mode 100644 index 0000000000..485167791e --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-04.htm @@ -0,0 +1,3 @@ +Cardinal Seresin:
+Alright. I'll tell you what to do. Leona Blackbird's followers are in the Blackbird Campsite. In order to find out what happened there, go to that place and talk to the Ertheia there.
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. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-05.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-05.html new file mode 100644 index 0000000000..56b4e13812 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/30657-05.html @@ -0,0 +1,4 @@ +Cardinal Seresin:
+You are still here? Go to the Blackbird Campsite and talk to the Ertheia there. Help them if they need help.
+You can get to the Blackbird Campsite through the gatekeeper here in Oren. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-01.html new file mode 100644 index 0000000000..73cdcac811 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-01.html @@ -0,0 +1,4 @@ +Ferin:
+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.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-02.html new file mode 100644 index 0000000000..e868b306a3 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-02.html @@ -0,0 +1,4 @@ +Ferin:
+Who are you? Why are you talking to me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-03.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-03.html new file mode 100644 index 0000000000..5ba2d33b45 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-03.html @@ -0,0 +1,4 @@ +Ferin:
+No! I said no! My dad said to not tell anyone about this. Especially people who I can't trust!
+I'm not talkng to you! + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-04.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-04.html new file mode 100644 index 0000000000..6d4471aade --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34054-04.html @@ -0,0 +1,3 @@ +Ferin:
+I'm not talking to you! You! Yes, you! Stop looking down at me! + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-01.html new file mode 100644 index 0000000000..717e5c0d0f --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-01.html @@ -0,0 +1,3 @@ +Master Cyphona:
+Oh, I heard your conversation with Ferin. Do you need anything? My name is Cyphona. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-02.html new file mode 100644 index 0000000000..b997d65d8c --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-02.html @@ -0,0 +1,4 @@ +Master Cyphona:
+Oh, I heard your conversation with Ferin. Do you need anything? My name is Cyphona.
+Just let me know if you need anything.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-03.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-03.html new file mode 100644 index 0000000000..bc43567a2d --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34055-03.html @@ -0,0 +1,3 @@ +Master Cyphona:
+Oh, that's why you are here! Ok. I'll talk to Ferin. Please wait. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34056-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34056-01.html new file mode 100644 index 0000000000..5bc698549c --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34056-01.html @@ -0,0 +1,3 @@ +Magister Belas:
+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. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34056-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34056-02.html new file mode 100644 index 0000000000..3f751b67b3 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/34056-02.html @@ -0,0 +1,3 @@ +Magister Belas:
+Hello, adventurer. Please talk to Master Cyphona. I'm next. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/Q10829_InSearchOfTheCause.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/Q10829_InSearchOfTheCause.java new file mode 100644 index 0000000000..51d032e116 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10829_InSearchOfTheCause/Q10829_InSearchOfTheCause.java @@ -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 . + */ +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); + } +} \ 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 44c3a45545..1971dabe9f 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -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)