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>Bounty Hunter Kintaijin:<br>
This mission is far too tough for the likes of you. You must take my other mission first before you can even think about taking this one.<br>
(Only characters level 81 and above who have completed the quest I'm the Only One You Can Trust can take this quest.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bounty Hunter Kintaijin:<br>
Amongst the collection of Stakato Fangs you brought, I found a <font color="LEVEL">Dirty Bead</font>.<br>
You must have accidentally picked it up while you were collecting the fangs.<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-02.htm">"So why bother me with that. Just throw the damned thing out if you don't want it."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bounty Hunter Kintaijin:<br>
Ahh, but this is no ordinary bead. This bead belonged to <font color="LEVEL">Billy Haari</font>. I told you that story, didn't I? I came here to track down Haari for his crimes.<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-03.htm">"So what about the item?"</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Bounty Hunter Kintaijin:<br>
My examination of the bead has led me to two conclusions.<br>
One is that the Dirty Bead had traces of Haari's blood on it, which leads me to believe he is dead. The second thing I concluded was that this bead is part of a necklace ... an artifact from my village, actually ... that Haari had stolen before disappearing.<br>
While I would have preferred to bring in Haari himself, if I were able to retrieve the pieces of this necklace, I might be able to restore a piece of my village's history.<br>
Would you help me find all the pieces?<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-04.htm">Tell him that you'll help him.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bounty Hunter Kintaijin:<br>
Dirty Beads can be found on the corpses of the <font color="LEVEL">Spiked Stakato and Cannibal Stakato</font> creatures found inside the Stakato's Nest. I'll need you to find 500 of these beads. Bring them back to me, and I will reward you for your hard work.<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-06.html">"I want to hear about reward items."</a><br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-05.html">"I will find the beads and be back shortly."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Bounty Hunter Kintaijin:<br>
Alright, take care.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bounty Hunter Kintaijin:<br>
I know what I ask is no small task. So the rewards you stand to gain are no joke either. First, I will give you a Multi-colored Jewel. This jewel will allow you to return to the entrance of the Stakato's Nest from just about anywhere in the world.<br>
Second, I'll give you one application of <font color="LEVEL">Growth Accelerator</font>The Growth Accelerator is a secret compound whose existance is only known by a few. It is said that this chemical has the ability to incubate cocoons found in the Stakato's Nest.<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-07.html">"I'm listening. Go on."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bounty Hunter Kintaijin:<br>
When used on a Bizarre Cocoon, the Growth Accelerator will spawn a Cannibalistic Stakato Chief. And killing a chief will give you a Stakato Cocoon. And as we all know, Stakato Cocoona can hold different kinds of goodies - from Forgotten Scrolls to Icarus recipes! Although sometimes you are bound to get one that contains nothing at all.<br>
But heed this advice - do not try to take down one of these Cannibalistic Stakato Chiefs by yourself. They are very strong and very deadly. And it will take a party of your friends or clanmates to defeat these termagants.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Bounty Hunter Kintaijin:<br>
Dirty Beads can be found on the corpses of the <font color="LEVEL">Spiked Stakato and Cannibal Stakato</font> creatures found inside the Stakato's Nest. I'll need you to find 500 of these beads. Bring them back to me, and I will reward you for your hard work.<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-06.html">"I want to know more about the reward items."</a><br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-05.html">"I'm off! I'll be back with the items when I'm done."</a><br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-quit.html">"I'd like to quit"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Bounty Hunter Kintaijin:<br>
It's not enough. No more or no less of <font color="LEVEL">500 Dirty Bead</font> are needed.
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Bounty Hunter Kintaijin:<br>
Well done. You brought the correct numbers? Let me confirm it.<br>
Hmm, they are surely 500 Dirty Bead. Here, take this Growth Accelerator.<br>
And let me give you some Multi-Colored Bright Ore. You can come near me from anywhere when you use it.<br>
...Do you have any other business?<br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-06.html">"I'd like to know how to use the Growth Accelerator."</a><br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-05.html">"No, it's nothing. I'll continue with the task"</a><br>
<a action="bypass -h Quest Q00310_OnlyWhatRemains 32640-quit.html">"I'd like to quit the task"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Bounty Hunter Kintaijin:<br>
Hmm, is that so? Alright, that's up to you.
</body></html>

View File

@@ -0,0 +1,168 @@
/*
* 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.Q00310_OnlyWhatRemains;
import java.util.HashMap;
import java.util.Map;
import quests.Q00240_ImTheOnlyOneYouCanTrust.Q00240_ImTheOnlyOneYouCanTrust;
import com.l2jserver.gameserver.enums.QuestSound;
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;
/**
* Only What Remains (310)<br>
* Original Jython script by Gnacik
* @author malyelfik
*/
public class Q00310_OnlyWhatRemains extends Quest
{
// NPC
private static final int KINTAIJIN = 32640;
// Items
private static final int GROW_ACCELERATOR = 14832;
private static final int MULTI_COLORED_JEWEL = 14835;
private static final int DIRTY_BEAD = 14880;
// Monsters
private static final Map<Integer, Integer> MOBS = new HashMap<>();
static
{
MOBS.put(22617, 646);
MOBS.put(22618, 646);
MOBS.put(22619, 646);
MOBS.put(22620, 666);
MOBS.put(22621, 630);
MOBS.put(22622, 940);
MOBS.put(22623, 622);
MOBS.put(22624, 630);
MOBS.put(22625, 678);
MOBS.put(22626, 940);
MOBS.put(22627, 646);
MOBS.put(22628, 646);
MOBS.put(22629, 646);
MOBS.put(22630, 638);
MOBS.put(22631, 880);
MOBS.put(22632, 722);
MOBS.put(22633, 638);
}
public Q00310_OnlyWhatRemains()
{
super(310, Q00310_OnlyWhatRemains.class.getSimpleName(), "Only What Remains");
addStartNpc(KINTAIJIN);
addTalkId(KINTAIJIN);
addKillId(MOBS.keySet());
registerQuestItems(DIRTY_BEAD);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "32640-04.htm":
st.startQuest();
break;
case "32640-quit.html":
st.exitQuest(true, true);
break;
case "32640-02.htm":
case "32640-03.htm":
case "32640-05.html":
case "32640-06.html":
case "32640-07.html":
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
if (partyMember == null)
{
return super.onKill(npc, player, isSummon);
}
final QuestState st = getQuestState(partyMember, false);
if (getRandom(1000) < MOBS.get(npc.getId()))
{
st.giveItems(DIRTY_BEAD, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.CREATED:
final QuestState prev = player.getQuestState(Q00240_ImTheOnlyOneYouCanTrust.class.getSimpleName());
htmltext = ((player.getLevel() >= 81) && (prev != null) && prev.isCompleted()) ? "32640-01.htm" : "32640-00.htm";
break;
case State.STARTED:
if (!st.hasQuestItems(DIRTY_BEAD))
{
htmltext = "32640-08.html";
}
else if (st.getQuestItemsCount(DIRTY_BEAD) < 500)
{
htmltext = "32640-09.html";
}
else
{
st.takeItems(DIRTY_BEAD, 500);
st.giveItems(GROW_ACCELERATOR, 1);
st.giveItems(MULTI_COLORED_JEWEL, 1);
htmltext = "32640-10.html";
}
break;
}
return htmltext;
}
}