This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31335-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31335-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Magister Kayan:<br>
|
||||
I heard about you from Captain Mathias. You'e the one who helped the Sages of Magic study the mutated Kaneus in Kamaloka, aren't you?<br>
|
||||
I can now you now that our study is not limited simply to those mutants. Actually, Kamaloka itself is an omen of impending crisis and chaos. Others magisters may think differently, but that's the view of my fellow Sages and myself.<br>
|
||||
We hope that by studying the Kaneus, we can determine what specifically triggered the mutations.<br>
|
||||
Brave adventurer, you must return to Kamaloka and bring us more <font color="LEVEL">tissue samples from the mutated Kaneus</font>. Your act could greatly accelerate our research.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31335-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31335-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Kayan:<br>
|
||||
This is it. Tissue samples of the mutated Kaneus!<br>
|
||||
Now we can move forward with our study about the mutated Kaneus and the nature of Kamaloka. Soon we will discover their underlying nature! This is only the beginning of a long journey to find the truth.<br>
|
||||
<a action="bypass -h Quest Q10281_MutatedKaneusRune 31335-03.htm">"Beginning of a journey?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31335-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31335-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Kayan:<br>
|
||||
Yes. The journey to reveal the truth about Kamaloka and Kaneus can now begin in earnest thanks to the tissue samples you provided.<br>
|
||||
But there are still many Kamalokas to be investigated in this world. And it is vital that we gather information about every Kamaloka. You have already become an important member of this study.<br>
|
||||
Thank you for your work. Good luck!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Based on my observations, I don't think you are yet ready to handle the Kaneus here.<br>
|
||||
(Only characters level 68 and above are permitted to undertake this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
I heard tales of your recent activities. You have already acquired a reputation as an accomplished adventurer. Perhaps you have already heard about the <font color="LEVEL">Mutated Kaneus of Kamaloka</font>. I have been asked to help investigate these strange creatures, but my duties unfortunately keep me far too busy. Perhaps you could help me...<br>
|
||||
<a action="bypass -h Quest Q10281_MutatedKaneusRune 31340-02.htm">"What kind of help do you need?"</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-02.htm
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-02.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
The favor I ask is on behalf of <font color="LEVEL">Magister Kayan</font> of the Temple of Einhasad. The Sages of Magic, a group of magisters of which Magister Kayan is a member, are researching the Kaneus: recently discovered monsters of Kamaloka.<br>
|
||||
They know that Kamaloka exists between this world and the infernal regions; "normal" monsters in that region mutate into the Kaneus.<br>
|
||||
They do not know the cause of this mutation, however.<br>
|
||||
To assist their research into this matter, they asked me to obtain some <font color="LEVEL">cellular tissues of the Kaneus</font>.Will you help me?<br>
|
||||
<font color="LEVEL">(You may only undertake this quest only if you are eligible to enter Kamaloka, Hall of the Abyss, level 73.)</font><br>
|
||||
<a action="bypass -h Quest Q10281_MutatedKaneusRune 31340-03.htm">Say yes.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Excellent! Visit the Kamaloka we can enter from Rune, kill the Kaneus there and extract their cellular tissues.<br>
|
||||
You will face the <font color="LEVEL">White Allosce</font> Kaneus.<br>
|
||||
When you have extracted all the cellular tissues of the Kaneus, take them to <font color="LEVEL">Magister Kayan</font> at the Temple of Einhasad. I know he and the other Sages will appreciate your efforts.<br>
|
||||
Good hunting!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
The magisters become agitated if their research is delayed for any reason, so deliver the cellular tissue samples as quickly as possible. Those aren't people you want irritated with you, you know!<br>
|
||||
Hurry to Kamaloka, and good hunting!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-05.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-05.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Ah! Are these the <font color="LEVEL">cellular tissue of White Allosce</font>?<br>
|
||||
From their pristine appearance, I can tell you were very careful. I couldn't have done better myself. Well done!<br>
|
||||
Now take these samples to <font color="LEVEL">Magister Kayan</font> at the Temple of Einhasad. He will be very pleased.<br>
|
||||
If we can determine the nature of the mutated Kaneus, your efforts will not be forgotten! But there is no time to waste, so hurry and take these samples to <font color="LEVEL">Magister Kayan</font> before they deteriorate!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-06.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/31340-06.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Ah, it's you! Magister Kayan asked me to convey his gratitude to you. He said that the cellular tissues of the mutated Kaneus from the <font color="LEVEL">Kamaloka of Rune</font> that you delivered to the Sages of Magic were a great help. Well done!
|
||||
</body></html>
|
162
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/Q10281_MutatedKaneusRune.java
vendored
Normal file
162
trunk/dist/game/data/scripts/quests/Q10281_MutatedKaneusRune/Q10281_MutatedKaneusRune.java
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* 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.Q10281_MutatedKaneusRune;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Mutated Kaneus - Rune (10281)<br>
|
||||
* Original Jython script by Gnacik on 2010-06-29.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q10281_MutatedKaneusRune extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int MATHIAS = 31340;
|
||||
private static final int KAYAN = 31335;
|
||||
private static final int WHITE_ALLOSCE = 18577;
|
||||
// Item
|
||||
private static final int TISSUE_WA = 13840;
|
||||
|
||||
public Q10281_MutatedKaneusRune()
|
||||
{
|
||||
super(10281, Q10281_MutatedKaneusRune.class.getSimpleName(), "Mutated Kaneus - Rune");
|
||||
addStartNpc(MATHIAS);
|
||||
addTalkId(MATHIAS, KAYAN);
|
||||
addKillId(WHITE_ALLOSCE);
|
||||
registerQuestItems(TISSUE_WA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31340-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31335-03.htm":
|
||||
st.giveAdena(360000, true);
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
QuestState st = getQuestState(killer, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
final int npcId = npc.getId();
|
||||
if (killer.getParty() != null)
|
||||
{
|
||||
final List<QuestState> PartyMembers = new ArrayList<>();
|
||||
for (L2PcInstance member : killer.getParty().getMembers())
|
||||
{
|
||||
st = getQuestState(member, false);
|
||||
if ((st != null) && st.isStarted() && !st.hasQuestItems(TISSUE_WA))
|
||||
{
|
||||
PartyMembers.add(st);
|
||||
}
|
||||
}
|
||||
|
||||
if (!PartyMembers.isEmpty())
|
||||
{
|
||||
rewardItem(npcId, PartyMembers.get(getRandom(PartyMembers.size())));
|
||||
}
|
||||
}
|
||||
else if (st.isStarted() && !st.hasQuestItems(TISSUE_WA))
|
||||
{
|
||||
rewardItem(npcId, st);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case MATHIAS:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() > 67) ? "31340-01.htm" : "31340-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = st.hasQuestItems(TISSUE_WA) ? "31340-05.htm" : "31340-04.htm";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "31340-06.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case KAYAN:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.STARTED:
|
||||
htmltext = st.hasQuestItems(TISSUE_WA) ? "31335-02.htm" : "31335-01.htm";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param npcId the ID of the killed monster
|
||||
* @param st the quest state of the killer or party member
|
||||
*/
|
||||
private final void rewardItem(int npcId, QuestState st)
|
||||
{
|
||||
st.giveItems(TISSUE_WA, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user