This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Trader Woodrow:<br>
Ah, you mean the flute that Swan ordered? It must have arrived at <font color="LEVEL">Giran Harbor</font> by now...<br>
If you're in a hurry, you can go directly to the harbor and pick it up. I'll give you the item number so you can pick it up from <font color="LEVEL">Gallion</font> at the harbor.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Woodrow:<br>
Didn't you say that you desperately need the flute? It will take a long time for it to be shipped here. Why don't you go directly to <font color="LEVEL">Giran Harbor</font> and pick it up? Give the item number I gave you to <font color="LEVEL">Gallion</font> at the harbor.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Woodrow:<br>
So, we meet again! Please give my regards to Mr. Swan.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Musician Nanarin:<br>
What, another package from <font color="LEVEL">Bard Swan</font>? Oh, my, this is especially beautiful!<br>
Hey, you aren't waiting around for a reply, are you? I appreciate all the flutes, but the Bard really isn't my type! Please tell him that my knight in shining armor is someone else!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Musician Nanarin:<br>
What am I to do about Bard Swan? I don't want to hurt his feelings but I am not attracted to him at all!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Bard Swan:<br>
I am uncomfortable talking about my feelings, but she is so beautiful and pure... She is the perfect woman! No... she is a goddess! If only I could tell her of my feelings... <br>
Her flute playing is sublime! She is renowned, even among the musicians of her own race, for her incredible talent. A while back I sent her a gift, a flute made of horn, but I haven't gotten any word back from her...<br>
Please help me! I feel like I'm losing my mind!<br>
<a action="bypass -h Quest Q00362_BardsMandolin 30957-02.htm">"I will help you."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bard Swan:<br>
Oh, thank you so much! Actually, I have already ordered a flute for her from <font color="LEVEL">Trader Woodrow of the Town of Aden</font>, a specialist in exotic musical instruments. Please check with him to see if the flute has arrived.<br>
Mention my name and he will tell you the status of my order. Afterwards I will give you a musical score that is necessary to make an Echo Crystal.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bard Swan:<br>
I am uncomfortable talking about my feelings, but she is so beautiful and pure... She is the perfect woman! No... she is a goddess! You are not worthy to even speak her name!<br>
(This quest may only be undertaken by a character of level 15 or above.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Bard Swan:<br>
My goddess... Oh, my dear goddess... I pray the flute makes her happy... What are you still doing here? Go and see <font color="LEVEL">Trader Woodrow of the Town of Aden</font> and find out whether the flute I ordered has arrived.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Bard Swan:<br>
Oh, thank you! The flute is beautiful! Surely this will please my beloved <font color="LEVEL">Nanarin</font>. Would you perhaps be willing to take the flute to her, along with my letter? Please say that you will do this one last thing for me.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bard Swan:<br>
Did you deliver the flute and letter to Nanarin? What did she say? Please tell me!<br>
<a action="bypass -h Quest Q00362_BardsMandolin 30957-07.html">"I think she likes you."</a><br>
<a action="bypass -h Quest Q00362_BardsMandolin 30957-08.html">"She liked the flute but she doesn't like you."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bard Swan:<br>
Oh, I knew it would work! Now, if I can only convince her of my devotion to her...<br>
I am greatly indebted to you! Unfortunately, I have spent most of my money on the flute... I've managed to scrape together a bit of money for you. Take it, along with this musical score I composed myself.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bard Swan:<br>
Oh, I wish I was dead!<br>
Perhaps it was the wrong gift. I must have not been trying hard enough. I shall never give up! Somehow I will win the heart of my beloved!<br>
Take this as a token of my gratitude for all your help.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Galion:<br>
A flute? Wait a moment, let me check...<br>
Ah, yes, here it is! A flute made of horn, imported from Avella. It's quite expensive but has an exquisite tone!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Galion:<br>
How is my old friend Trader Woodrow? I feel I know him well although we have only spoken by letter...
</body></html>

View File

@@ -0,0 +1,193 @@
/*
* 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.Q00362_BardsMandolin;
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;
/**
* Bard's Mandolin (362)
* @author Adry_85
*/
public final class Q00362_BardsMandolin extends Quest
{
// NPCs
private static final int WOODROW = 30837;
private static final int NANARIN = 30956;
private static final int SWAN = 30957;
private static final int GALION = 30958;
// Items
private static final int SWANS_FLUTE = 4316;
private static final int SWANS_LETTER = 4317;
private static final int THEME_OF_JOURNEY = 4410;
// Misc
private static final int MIN_LEVEL = 15;
public Q00362_BardsMandolin()
{
super(362, Q00362_BardsMandolin.class.getSimpleName(), "Bard's Mandolin");
addStartNpc(SWAN);
addTalkId(SWAN, GALION, WOODROW, NANARIN);
registerQuestItems(SWANS_FLUTE, SWANS_LETTER);
}
@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 "30957-02.htm":
{
st.startQuest();
st.setMemoState(1);
htmltext = event;
break;
}
case "30957-07.html":
case "30957-08.html":
{
if (st.isMemoState(5))
{
st.giveAdena(10000, true);
st.rewardItems(THEME_OF_JOURNEY, 1);
st.exitQuest(true, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
case State.CREATED:
{
if (npc.getId() == SWAN)
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30957-01.htm" : "30957-03.html";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case SWAN:
{
switch (st.getMemoState())
{
case 1:
case 2:
{
htmltext = "30957-04.html";
break;
}
case 3:
{
st.setCond(4, true);
st.setMemoState(4);
st.giveItems(SWANS_LETTER, 1);
htmltext = "30957-05.html";
break;
}
case 4:
{
htmltext = "30957-05.html";
break;
}
case 5:
{
htmltext = "30957-06.html";
break;
}
}
break;
}
case GALION:
{
if (st.isMemoState(2))
{
st.setMemoState(3);
st.setCond(3, true);
st.giveItems(SWANS_FLUTE, 1);
htmltext = "30958-01.html";
}
else if (st.getMemoState() >= 3)
{
htmltext = "30958-02.html";
}
break;
}
case WOODROW:
{
if (st.isMemoState(1))
{
st.setMemoState(2);
st.setCond(2, true);
htmltext = "30837-01.html";
}
else if (st.isMemoState(2))
{
htmltext = "30837-02.html";
}
else if (st.getMemoState() >= 3)
{
htmltext = "30837-03.html";
}
break;
}
case NANARIN:
{
if (st.isMemoState(4) && st.hasQuestItems(SWANS_FLUTE, SWANS_LETTER))
{
st.setMemoState(5);
st.setCond(5, true);
st.takeItems(SWANS_FLUTE, -1);
st.takeItems(SWANS_LETTER, -1);
htmltext = "30956-01.html";
}
else if (st.getMemoState() >= 5)
{
htmltext = "30956-02.html";
}
break;
}
}
break;
}
}
return htmltext;
}
}