Quest Put the Queen of Spirits to Sleep (10833).

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2017-01-06 10:10:15 +00:00
parent 5c058a59f0
commit 31f27b0cf2
12 changed files with 181 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
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

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
You! Do you even know who you are talking to? Go away!<br>
(This quest can only be undertaken by characters of level 100 or higher who have completed the quest "Energy of Sadness and Anger".)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
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.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10833_PutTheQueenOfSpiritsToSleep 34054-02.htm">"Go ahead."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
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. <br>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.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10833_PutTheQueenOfSpiritsToSleep 34054-03.htm">"Who helped you?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
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.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10833_PutTheQueenOfSpiritsToSleep 34054-04.htm">"Alright"</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ferin:<br>
Get some friends and defeat <font color="LEVEL">Isabella</font>, and bring me <font color="LEVEL">Isabella's Evil Thoughts</font>. I doubted anyone would be able to defeat her, but I think you should be able to do it.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ferin:<br>
Get some friends and defeat <font color="LEVEL">Isabella</font>, and bring me <font color="LEVEL">Isabella's Evil Thoughts</font>. I doubted anyone would be able to defeat her, but I think you should be able to do it.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
Did you get her? Did you kill her? Give me what you got!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10833_PutTheQueenOfSpiritsToSleep 34054-07.html">"Here you go."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
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? <br>
Well, good job. I guess I should say th... thank you.
</body></html>

View File

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

View File

@@ -0,0 +1,4 @@
<html><body>Ferin:<br>
You! Do you even know who you are talking to? Go away!<br>
(This quest may only be undertaken by characters with a Mark of Trust (High-grade).)
</body></html>

View File

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