From 31f27b0cf26221889e4aa9cfa3656216a5f1c521 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 6 Jan 2017 10:10:15 +0000 Subject: [PATCH] Quest Put the Queen of Spirits to Sleep (10833). Contributed by gigilo1968. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../34054-00.htm | 4 + .../34054-01.htm | 4 + .../34054-02.htm | 4 + .../34054-03.htm | 4 + .../34054-04.htm | 3 + .../34054-05.html | 3 + .../34054-06.html | 4 + .../34054-07.html | 4 + .../Q10833_PutTheQueenOfSpiritsToSleep.java | 144 ++++++++++++++++++ .../noItem.htm | 4 + .../scripts/quests/QuestMasterHandler.java | 4 +- 12 files changed, 181 insertions(+), 2 deletions(-) create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-00.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-01.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-02.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-03.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-04.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-05.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-06.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-07.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/Q10833_PutTheQueenOfSpiritsToSleep.java create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/noItem.htm 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 aa4cf2f4ec..41c3f501c9 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 -10833 Put the Queen of Spirits to Sleep 10836 Disappeared Clan Member 10837 Looking for the Blackbird Clan Member 10838 The Reason For Not Being Able to Get Out diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-00.htm new file mode 100644 index 0000000000..9ef670f916 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-00.htm @@ -0,0 +1,4 @@ +Ferin:
+You! Do you even know who you are talking to? Go away!
+(This quest can only be undertaken by characters of level 100 or higher who have completed the quest "Energy of Sadness and Anger".) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-01.htm new file mode 100644 index 0000000000..aa1434196a --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-01.htm @@ -0,0 +1,4 @@ +Ferin:
+You've worked hard to build trust with us. I don't trust people easily, but since you've shown some effort, I'll tell you a secret. Listen to me now.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-02.htm new file mode 100644 index 0000000000..465d70e83d --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-02.htm @@ -0,0 +1,4 @@ +Ferin:
+I'm sure you know, but the Garden of Spirits is a sacred place. It's the place where important rituals take place when a new king or high priest arises.
We don't know how a whole region was brought to the Material Realm... But th... thanks to someone we were able to understand some parts of it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-03.htm new file mode 100644 index 0000000000..c52de5f0a6 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-03.htm @@ -0,0 +1,4 @@ +Ferin:
+Yes, you. Ugh. Why do you make me say it! Well, I'm not good with compliments, but it's thanks to you that we gathered some proof. But you'll have to help me again. We need to find out the reason why the queen was awakened.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-04.htm new file mode 100644 index 0000000000..7fce6488ab --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-04.htm @@ -0,0 +1,3 @@ +Ferin:
+Get some friends and defeat Isabella, and bring me Isabella's Evil Thoughts. I doubted anyone would be able to defeat her, but I think you should be able to do it. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-05.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-05.html new file mode 100644 index 0000000000..7fce6488ab --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-05.html @@ -0,0 +1,3 @@ +Ferin:
+Get some friends and defeat Isabella, and bring me Isabella's Evil Thoughts. I doubted anyone would be able to defeat her, but I think you should be able to do it. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-06.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-06.html new file mode 100644 index 0000000000..f39ab80023 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-06.html @@ -0,0 +1,4 @@ +Ferin:
+Did you get her? Did you kill her? Give me what you got!
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-07.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-07.html new file mode 100644 index 0000000000..cf80c2760c --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/34054-07.html @@ -0,0 +1,4 @@ +Ferin:
+So this is Isabella's Evil Thoughts... Interesting... An energy this chaotic exists in this world? And the faint Atelia energy... But this is different. It's not like the pure Atelia of the Spirit Realm. How, and why did they make this?
+Well, good job. I guess I should say th... thank you. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/Q10833_PutTheQueenOfSpiritsToSleep.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/Q10833_PutTheQueenOfSpiritsToSleep.java new file mode 100644 index 0000000000..08e1ab4add --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/Q10833_PutTheQueenOfSpiritsToSleep.java @@ -0,0 +1,144 @@ +/* + * 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.Q10833_PutTheQueenOfSpiritsToSleep; + +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.Q10832_EnergyOfSadnessAndAnger.Q10832_EnergyOfSadnessAndAnger; + +/** + * Put the Queen of Spirits to Sleep (10833) + * @URL https://l2wiki.com/Put_the_Queen_of_Spirits_to_Sleep + * @author Gigi + */ +public final class Q10833_PutTheQueenOfSpiritsToSleep extends Quest +{ + // NPC + private static final int FERIN = 34054; + private static final int ISABELLA = 26131; + // Items + private static final int MARK_OF_TRUST_HIGH_GRADE = 45848; + private static final int ISABELLAS_EVIL_THOUGHTS = 45839; + private static final int SOE = 46158; + private static final int ELCYUM_CRYSTAL = 36514; + private static final int GIANTS_CODEX = 46152; + // Misc + private static final int MIN_LEVEL = 100; + + public Q10833_PutTheQueenOfSpiritsToSleep() + { + super(10833); + addStartNpc(FERIN); + addTalkId(FERIN); + addKillId(ISABELLA); + registerQuestItems(ISABELLAS_EVIL_THOUGHTS); + addCondMinLevel(MIN_LEVEL, "34054-00.htm"); + addCondCompletedQuest(Q10832_EnergyOfSadnessAndAnger.class.getSimpleName(), "34054-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 "34054-02.htm": + case "34054-03.htm": + { + htmltext = event; + break; + } + case "34054-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34054-07.html": + { + giveItems(player, GIANTS_CODEX, 1); + giveItems(player, ELCYUM_CRYSTAL, 1); + giveItems(player, SOE, 1); + addExpAndSp(player, 5932440000L, 14237820); + 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 (!hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) + { + htmltext = "noItem.htm"; + break; + } + htmltext = "34054-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34054-05.html"; + } + else if (qs.isCond(2) && hasQuestItems(player, ISABELLAS_EVIL_THOUGHTS)) + { + htmltext = "34054-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && (npc.getId() == ISABELLA)) + { + giveItems(killer, ISABELLAS_EVIL_THOUGHTS, 1); + qs.setCond(2, true); + } + return super.onKill(npc, killer, isSummon); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/noItem.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/noItem.htm new file mode 100644 index 0000000000..3ba66309d6 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10833_PutTheQueenOfSpiritsToSleep/noItem.htm @@ -0,0 +1,4 @@ +Ferin:
+You! Do you even know who you are talking to? Go away!
+(This quest may only be undertaken by characters with a Mark of Trust (High-grade).) + \ 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 c1ed749b07..8e2d490274 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -412,6 +412,7 @@ import quests.Q10829_InSearchOfTheCause.Q10829_InSearchOfTheCause; import quests.Q10830_TheLostGardenOfSpirits.Q10830_TheLostGardenOfSpirits; import quests.Q10831_UnbelievableSight.Q10831_UnbelievableSight; import quests.Q10832_EnergyOfSadnessAndAnger.Q10832_EnergyOfSadnessAndAnger; +import quests.Q10833_PutTheQueenOfSpiritsToSleep.Q10833_PutTheQueenOfSpiritsToSleep; /** * @author NosBit @@ -814,7 +815,8 @@ public class QuestMasterHandler Q10829_InSearchOfTheCause.class, Q10830_TheLostGardenOfSpirits.class, Q10831_UnbelievableSight.class, - Q10832_EnergyOfSadnessAndAnger.class + Q10832_EnergyOfSadnessAndAnger.class, + Q10833_PutTheQueenOfSpiritsToSleep.class }; public static void main(String[] args)