From 70cdde48be66600733be306aa84a73771a9eceb2 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 6 Jan 2017 10:31:32 +0000 Subject: [PATCH] Quest Anomaly in the Enchanted Valley (10843). Contributed by gigilo1968. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../30610-00.htm | 4 + .../30610-01.htm | 6 + .../30610-02.htm | 5 + .../30610-03.htm | 6 + .../30610-04.htm | 6 + .../30610-05.htm | 6 + .../30610-06.html | 5 + .../30747-01.html | 5 + .../30747-02.html | 6 + .../30747-03.html | 5 + .../Q10843_AnomalyInTheEnchantedValley.java | 136 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 4 +- 13 files changed, 193 insertions(+), 2 deletions(-) create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-00.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-01.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-02.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-03.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-04.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-05.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-06.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-01.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-02.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-03.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/Q10843_AnomalyInTheEnchantedValley.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 07966bc75c..ca6308759c 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 -10843 Anomaly in the Enchanted Valley 10844 Bloody Battle - Seizing Supplies 10845 Bloody Battle - Rescue the Smiths 10846 Bloody Battle - Meeting the Commander \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-00.htm new file mode 100644 index 0000000000..1d34cba6de --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-00.htm @@ -0,0 +1,4 @@ +Elder Cronos:
+Why are you here? You are not strong enough to be here.
+(Only characters above Lv. 100.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-01.htm new file mode 100644 index 0000000000..094f521a76 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-01.htm @@ -0,0 +1,6 @@ +Elder Cronos:
+I feel like we've met before. Have we?
+Well, I've been alive since before your grandfather's grandfather was born, so we've probably met somewhere.
+Anyway, since you've come here, I'll tell you an interesting story.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-02.htm new file mode 100644 index 0000000000..af5b0dcb5f --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-02.htm @@ -0,0 +1,5 @@ +Elder Cronos:
+I've been friends with Fairy Mimyu for a long time. I'm sure no one in the continent has become such good friends with a fairy.
+Hmm... Well, Mimyu came to me last night and asked for help. Interesting, right?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-03.htm new file mode 100644 index 0000000000..d17e42406e --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-03.htm @@ -0,0 +1,6 @@ +Elder Cronos:
+She said that things have changed in the Enchanted Valley, and asked me to help her find the cause. Have you heard anything? I wonder what could have happened...
+Mimyu seemed like she wanted me to help her, but I can't just leave this place whenever I want.
+It's not like I can just ignore her request, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-04.htm new file mode 100644 index 0000000000..e6edd029d2 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-04.htm @@ -0,0 +1,6 @@ +Elder Cronos:
+Because I made a promise to Mimyu.
One must keep their promises to fairies. Have you not heard stories about what happens to those who don't?
+Well, if you haven't lived for as long as I, it's no wonder you don't know. Anyway, I would like to ask you to go help Fairy Mimyu. What do you say?
+I'll make sure to reward you well for helping Mimyu. Well, not me, but Mimyu will.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-05.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-05.htm new file mode 100644 index 0000000000..a14d86a4d9 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-05.htm @@ -0,0 +1,6 @@ +Elder Cronos:
+You are smarter than I thought.
+The way to the Enchanted Valley has changed as well. Just teleport to the center of the Enchanted Valley and talk to Fairy Mimyu.
+Fairy Mimyu will tell you what you need to do.
+Mimyu is very worried, so I'll give you a Scroll of Escape so that you can get there faster. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-06.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-06.html new file mode 100644 index 0000000000..714ad1e2b9 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30610-06.html @@ -0,0 +1,5 @@ +Elder Cronos:
+I thought I told you to go see Fairy Mimyu.
+There have been some transformations going around in the Enchanted Valley, and Fairy Mimyu is at the center of the area.
+Use the Scroll of Escape: Enchanted Valley that I gave you. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-01.html new file mode 100644 index 0000000000..eb116dc6d8 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-01.html @@ -0,0 +1,5 @@ +Fairy Mimyu:
+Hey, you! Did Cronos send you?
+I guess Cronos kept our promise. Did you hear what happened?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-02.html new file mode 100644 index 0000000000..513f3fc401 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-02.html @@ -0,0 +1,6 @@ +Fairy Mimyu:
+Hmm... It will be easier if I tell you.
+Something happened in the Enchanted Valley and all the fairies disappeared. Well, everyone but me. I'm glad you came all the way here.
+If you are willing to help me, can you find out where all the fairies went, and why this place changed?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-03.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-03.html new file mode 100644 index 0000000000..0889d584ac --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/30747-03.html @@ -0,0 +1,5 @@ +Fairy Mimyu:
+Thank you! I was scared all by myself.
+I was worried that we would still be treated as some kind of ornament.
+Oh, thank you for helping, but make sure you are safe! And don't go chasing Cronos at night by yourself! + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/Q10843_AnomalyInTheEnchantedValley.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/Q10843_AnomalyInTheEnchantedValley.java new file mode 100644 index 0000000000..0752da1f8d --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10843_AnomalyInTheEnchantedValley/Q10843_AnomalyInTheEnchantedValley.java @@ -0,0 +1,136 @@ +/* + * 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.Q10843_AnomalyInTheEnchantedValley; + +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 com.l2jmobius.gameserver.network.NpcStringId; +import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +/** + * Anomaly in the Enchanted Valley (10843) + * @URL https://l2wiki.com/Anomaly_in_the_Enchanted_Valley + * @author Gigi + */ +public final class Q10843_AnomalyInTheEnchantedValley extends Quest +{ + // NPCs + private static final int CRONOS = 30610; + private static final int MIMYU = 30747; + // Items + private static final int SOE = 46257; // Scroll of Escape: Enchanted Valley + // Misc + private static final int MIN_LEVEL = 100; + + public Q10843_AnomalyInTheEnchantedValley() + { + super(10843); + addStartNpc(CRONOS); + addTalkId(CRONOS, MIMYU); + addCondMinLevel(MIN_LEVEL, "30610-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 "30610-02.htm": + case "30610-03.htm": + case "30610-04.htm": + case "30747-02.html": + { + htmltext = event; + break; + } + case "30610-05.htm": + { + qs.startQuest(); + giveItems(player, SOE, 1); + showOnScreenMsg(player, NpcStringId.TALK_TO_MIMYU, ExShowScreenMessage.TOP_CENTER, 8000); + htmltext = event; + break; + } + case "30747-03.html": + { + giveItems(player, SOE, 3); + 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() == CRONOS) + { + htmltext = "30610-01.htm"; + break; + } + } + case State.STARTED: + { + switch (npc.getId()) + { + case CRONOS: + { + if (qs.isCond(1)) + { + htmltext = "30610-06.html"; + break; + } + } + case MIMYU: + { + if (qs.isCond(1)) + { + htmltext = "30747-01.html"; + break; + } + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } +} \ 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 fe9596d9df..b205f4b294 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -419,6 +419,7 @@ import quests.Q10838_TheReasonForNotBeingAbleToGetOut.Q10838_TheReasonForNotBein import quests.Q10839_BlackbirdsNameValue.Q10839_BlackbirdsNameValue; import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; +import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; /** * @author NosBit @@ -828,7 +829,8 @@ public class QuestMasterHandler Q10838_TheReasonForNotBeingAbleToGetOut.class, Q10839_BlackbirdsNameValue.class, Q10840_TimeToRecover.class, - Q10841_DeepInsideAteliaFortress.class + Q10841_DeepInsideAteliaFortress.class, + Q10843_AnomalyInTheEnchantedValley.class }; public static void main(String[] args)