This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
It's about time! I've learned where <font color="LEVEL">another me</font>... no... where the once-me is!<br>
|
||||
I never know what he will do next! I must eliminate him as soon as possible! <font color="LEVEL">Unfortunately, at our current strength we can only put him to sleep</font>... But when he wakes up, we can put him right back to sleep, and prevent him from amassing more power! It's not perfect, but there's no other way!<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince 31453-02.htm">"Tell me more."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
Well, I found out where he was hiding, but it already had a <font color="LEVEL">magic force field</font> around it. According to Wigoth, the force field uses a <font color="LEVEL">song as its password</font>. Therefore, we need <font color="LEVEL">a certain type of continuous wavelength</font> to pass through the force field.<br>
|
||||
I hate to say it, but I'm afraid I know him better than anyone else... The song he chose for his password is probably...<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince 31453-03.htm">"What?"</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
He probably used <font color="LEVEL">the lullaby I heard when I was young</font>. That has to be it! When I was young, my parents were always busy, so I was practically raised by my nurse! Sometimes when I couldn't fall asleep, the nurse would just smile with a sultry look and sing a beautiful lullaby.<br>
|
||||
I'll bet he used that lullaby as the password for the force field... Too many years have passed! I can remember the melody, but I can't remember the lyrics at all!<br>
|
||||
Could you do me a favor? Would you please go to <font color="LEVEL">Rune Township</font>?<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince 31453-04.html">"I'll go."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
Thank you! Honestly, I heard from an adventurer who stopped by that <font color="LEVEL">Nurse Devorin</font> is still alive in <font color="LEVEL">Rune Township</font>! If you don't mind, would you go meet with her and learn the <font color="LEVEL">lyrics of the lullaby</font>? If you show Nurse Devorin the Antique Brooch, she'll know I sent you. Please, help me!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
What do you need? I don't have anything to talk to you about.<br>
|
||||
(Only characters of at least level 74 who have obtained the Antique Brooch through the "Four Goblets" quest may undertake this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
Hmmm? You already brought me the song. We don't need to talk further. I just need to settle with him. (This quest has already been completed. Please move on to the next step, "Journey to a Settlement".)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
Please, go to <font color="LEVEL">Rune Township</font>, meet with <font color="LEVEL">Nurse Devorin</font> and learn the <font color="LEVEL">lyrics of the lullaby</font>! If you show her the Antique Brooch, she'll know I sent you. Please, help me!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
Please, go to Rune Township and meet with Nurse Devorin so you can learn the lyrics of the lullaby! Show her the Antique Brooch so she'll know that I sent you. Please... Help!<br>
|
||||
... What? You don't have the brooch? I must've made a mistake. I'm sorry!<br>
|
||||
<font color="LEVEL">(The Antique Brooch is essential to this quest. Try again after you obrain it. This quest is terminated.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-09.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-09.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
Ah, you're back! How's Nurse Devorin doing? I just can't let her see me like this!<br>
|
||||
Do you have the lyrics?<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince 31453-10.html">"Here they are."</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-10.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-10.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
That's right! I remember now!<br>
|
||||
<font color="LEVEL">"Sleep now, my child, my beautiful rose blossom... Sleep now, my child, till the morning comes..."</font><br>
|
||||
......<br>
|
||||
Sob! I'm sorry! It brings back such precious memories...<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince 31453-11.html">"What are you going to do now?"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-11.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-11.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Nameless Spirit:<br>
|
||||
First I must ask Wigoth if this song will get me through the force field... Thanks for all your help! Please accept this... It isn't much, but it's a token of my appreciation.<br>
|
||||
By the way, could you come back to see me? I'll need your help with something else...<font color="LEVEL">I"ll need to settle up with my twin Frintezza soon</font>.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Nurse Devorin:<br>
|
||||
<font color="LEVEL">You asked for a lullaby</font>? Who are you? There's only one person I ever sang a lullaby to...<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince brooch">Show her the Antique Brooch.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Nurse Devorin:<br>
|
||||
What is this? Oh my, it's the <font color="LEVEL">prince's</font> - no doubt about it! It may be old and worn, but there's no way my old eyes could ever forget <font color="LEVEL">this brooch</font>.<br>
|
||||
The prince must have sent you! Tell me, where is he now? Is he well?<br>
|
||||
<a action="bypass -h Quest Q00119_LastImperialPrince 32009-04.html">Explain the situation.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Nurse Devorin:<br>
|
||||
What brooch did you say you were going to show me? I see no brooch. What are you playing at?
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Nurse Devorin:<br>
|
||||
Ah. So the prince's past is coming back to haunt him, is it? Poor man! Poor child!<br>
|
||||
I cannot offer much help, but I will do whatever I can for him. The words to the lullaby are: <font color="LEVEL">"Sleep now, child, a beautiful rose blossoms for you. Sleep now, child, till the morning comes to."</font> My mother sang it to me; I sang it to him. Remember it, and tell it to him, if it can help him at all. I do miss him so.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Nurse Devorin:<br>
|
||||
Again, the words are: <font color="LEVEL">"Sleep now, child, a beautiful rose blossoms for you. Sleep now, child, till the morning comes to."</font> Go tell him the words; help him.
|
||||
</body></html>
|
164
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java
vendored
Normal file
164
trunk/dist/game/data/scripts/quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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.
|
||||
*
|
||||
* L2J DataPack 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.Q00119_LastImperialPrince;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Last Imperial Prince (119)
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00119_LastImperialPrince extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int NAMELESS_SPIRIT = 31453;
|
||||
private static final int DEVORIN = 32009;
|
||||
// Item
|
||||
private static final int ANTIQUE_BROOCH = 7262;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 74;
|
||||
|
||||
public Q00119_LastImperialPrince()
|
||||
{
|
||||
super(119, Q00119_LastImperialPrince.class.getSimpleName(), "Last Imperial Prince");
|
||||
addStartNpc(NAMELESS_SPIRIT);
|
||||
addTalkId(NAMELESS_SPIRIT, DEVORIN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "31453-02.htm":
|
||||
case "31453-03.htm":
|
||||
case "31453-10.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31453-04.html":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31453-11.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.giveAdena(150292, true);
|
||||
st.addExpAndSp(902439, 90067);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "brooch":
|
||||
{
|
||||
htmltext = (st.hasQuestItems(ANTIQUE_BROOCH)) ? "32009-02.html" : "32009-03.html";
|
||||
break;
|
||||
}
|
||||
case "32009-04.html":
|
||||
{
|
||||
if (st.isCond(1) && st.hasQuestItems(ANTIQUE_BROOCH))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (npc.getId() == NAMELESS_SPIRIT)
|
||||
{
|
||||
htmltext = "31453-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(ANTIQUE_BROOCH)) ? "31453-01.htm" : "31453-05.html";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (npc.getId() == NAMELESS_SPIRIT)
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
if (st.hasQuestItems(ANTIQUE_BROOCH))
|
||||
{
|
||||
htmltext = "31453-07.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31453-08.html";
|
||||
st.exitQuest(true);
|
||||
}
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "31453-09.html";
|
||||
}
|
||||
}
|
||||
else if (npc.getId() == DEVORIN)
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "32009-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32009-05.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user