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,5 @@
<html><body>Bard Rukal:<br>
Beautiful music is pure magic! Are you here to listen to songs of the old poets?<br>
No? You have something for me? The musical score signed by Rukal that credits me as the composer and lyricist? That's what I've been waiting for! Show it to me!<br>
<a action="bypass -h Quest Q00030_ChestCaughtWithABaitOfFire 30629-02.htm">"Here it is."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Bard Rukal:<br>
You say you've found the musical score I'm looking for, but you don't seem to have it with you. If you find a musical score with the name "Rukal" written on it, please bring it to me. It was composed by my late father.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bard Rukal:<br>
The Fishermen's Guild is truly a major patron of the arts! Whenever an object is lost, anywhere in the world, they manage to retrieve it! It's ironic that only those who know nothing about the lost objects can find them... As an Elf, it's hard to understand how Humans could have created such a technique!<br>
Could it be that they're catching all these objects by accident? It doesn't seem likely, does it? They must be the best detectives in the world! I'm so grateful to have recovered this lost score by my dead father. I don't dare to use his name when I compose! This is his musical score!<br>
Please accept this gift of thanks for recovering the musical score for me.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fishermen's Guild Member Linneus:<br>
Fishing really brings life into perspective. You're not here to buy fishing gear, are you? Have you ever been fishing? Even the nobles of Aden enjoy it.<br>
(This quest may only be undertaken by characters of level 60 or above who have completed Linneus's Special Bait quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fishermen's Guild Member Linneus:<br>
Welcome back! You're the one that I gave the bait of flame, right? So... Did you catch anything with it? Other than fish, I mean? That was a very specialized bait you were using! You didn't happen to catch a box, did you?<br>
<a action="bypass -h Quest Q00030_ChestCaughtWithABaitOfFire 31577-02.htm">"It's none of your business what I caught!"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Fishermen's Guild Member Linneus:<br>
There are some things more interesting than fish! A while back, someone came around looking for a <font color="LEVEL">red treasure box</font>. Honestly, the bait I gave you earlier was designed to find it!<br>
Don't look at me like that! It wouldn't have worked if you would've known what the bait was for! So, did you find it? I'll tell you who my client is when you bring me the <font color="LEVEL">red treasure box</font>. You must bring it to me unopened. Use the <font color="LEVEL">bait of flame</font> to find it.<br>
Remember, your fishing skill must be level 20. Someone may already have found it, so ask around in the market first.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fishermen's Guild Member Linneus:<br>
Wow! Did you already find the <font color="LEVEL">red treasure box</font>? Let me see it! I need to verify that it's the one my client lost.<br>
<a action="bypass -h Quest Q00030_ChestCaughtWithABaitOfFire 31577-04a.htm">"Here it is."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Fishermen's Guild Member Linneus:<br>
You're back! Did you finish your assignment already? No? Please, go and find the <font color="LEVEL">Red Treasure Box</font>. I know it's not easy, but I really must have it! Ask around, see if anyone's found it.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Fishermen's Guild Member Linneus:<br>
I think this is my client's <font color="LEVEL">red treasure box</font>. It contains the musical score that Mr. Rukal was looking for. It has his name listed as the composer and lyricist. If it is anything like his other works, it's wonderfully powerful music! Take it to Mr. Rukal in Dion Castle Town.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Fishermen's Guild Member Linneus:<br>
You found the <font color="LEVEL">red treasure box</font>? Well, I hope you didn't open it! Let me see... Hmm, this isn't the box I'm looking for.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body> Fishermen's Guild Member Linneus:<br>
Why haven't you gone to see Mr. Rukal yet? Go to Dion Castle Town. Mortals such as us are unworthy to possess such beautiful music! It should be reserved for Swordsingers and Bladedancers!
</body></html>

View File

@@ -0,0 +1,138 @@
/*
* 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.Q00030_ChestCaughtWithABaitOfFire;
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;
/**
* Chest Caught With A Bait Of Fire (30)<br>
* Original Jython script by Ethernaly.
* @author nonom
*/
public class Q00030_ChestCaughtWithABaitOfFire extends Quest
{
// NPCs
private static final int LINNAEUS = 31577;
private static final int RUKAL = 30629;
// Items
private static final int RED_TREASURE_BOX = 6511;
private static final int RUKAL_MUSICAL = 7628;
private static final int PROTECTION_NECKLACE = 916;
public Q00030_ChestCaughtWithABaitOfFire()
{
super(30, Q00030_ChestCaughtWithABaitOfFire.class.getSimpleName(), "Chest Caught With A Bait Of Fire");
addStartNpc(LINNAEUS);
addTalkId(LINNAEUS, RUKAL);
registerQuestItems(RUKAL_MUSICAL);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
switch (event)
{
case "31577-02.htm":
st.startQuest();
break;
case "31577-04a.htm":
if (st.isCond(1) && st.hasQuestItems(RED_TREASURE_BOX))
{
st.giveItems(RUKAL_MUSICAL, 1);
st.takeItems(RED_TREASURE_BOX, -1);
st.setCond(2, true);
htmltext = "31577-04.htm";
}
break;
case "30629-02.htm":
if (st.isCond(2) && st.hasQuestItems(RUKAL_MUSICAL))
{
st.giveItems(PROTECTION_NECKLACE, 1);
st.exitQuest(false, true);
htmltext = "30629-03.htm";
}
break;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
final int npcId = npc.getId();
switch (st.getState())
{
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
case State.CREATED:
if (npcId == LINNAEUS)
{
htmltext = (player.getLevel() >= 61) ? "31577-01.htm" : "31577-00.htm";
}
break;
case State.STARTED:
switch (npcId)
{
case LINNAEUS:
switch (st.getCond())
{
case 1:
htmltext = "31577-03a.htm";
if (st.hasQuestItems(RED_TREASURE_BOX))
{
htmltext = "31577-03.htm";
}
break;
case 2:
htmltext = "31577-05.htm";
break;
}
break;
case RUKAL:
if (st.isCond(2))
{
htmltext = "30629-01.htm";
}
break;
}
break;
}
return htmltext;
}
}