This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30189-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30189-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Magister Rovia:<br>
|
||||
I heard about you from Captain Mouen. 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/Q10279_MutatedKaneusOren/30189-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30189-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Rovia:<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 Q10279_MutatedKaneusOren 30189-03.htm">"Beginning of a journey?"</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30189-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30189-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Rovia:<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/Q10279_MutatedKaneusOren/30196-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
Based on my observations, I don't think you are yet ready to handle the Kaneus.<br>
|
||||
(Only characters level 48 and above are permitted to undertake this quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mouen:<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 Q10279_MutatedKaneusOren 30196-02.htm">"What kind of help do you need?"</a>
|
||||
</body></html>
|
||||
8
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-02.htm
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-02.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
The favor I ask is on behalf of <font color="LEVEL">Magister Rovia</font> of the Temple of Einhasad. The Sages of Magic, a group of magisters of which Magister Rovia 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>
|
||||
(Only characters who may enter Kamaloka, Hall of the Abyss level 53 and 56, may undertake this quest.)<br>
|
||||
<a action="bypass -h Quest Q10279_MutatedKaneusOren 30196-03.htm">Say yes.</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
Excellent! Visit either of the 2 Kamalokas we can enter from Oren, kill the Kaneus there and extract their cellular tissues.<br>
|
||||
You will face the <font color="LEVEL">Kaim Abigore and Knight Montagnar</font> Kaneus. The Kaim Abigore is much weaker, so I'd advise that you pursue it first.<br>
|
||||
When you have extracted all the cellular tissues of the 2 creatures, take them to <font color="LEVEL">Magister Rovia</font> at the Temple of Einhasad. I know she and the other Sages will appreciate your efforts.<br>
|
||||
Good hunting!
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mouen:<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/Q10279_MutatedKaneusOren/30196-05.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-05.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
Ah! Are these the <font color="LEVEL">cellular tissues of Kaim Abigore and Knight Montagnar</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 Rovia</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 Rovia</font> before they deteriorate!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-06.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/30196-06.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
Ah, it's you! Magister Rovia 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 Oren</font> that you delivered to the Sages of Magic were a great help. Well done!
|
||||
</body></html>
|
||||
172
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/Q10279_MutatedKaneusOren.java
vendored
Normal file
172
trunk/dist/game/data/scripts/quests/Q10279_MutatedKaneusOren/Q10279_MutatedKaneusOren.java
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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.Q10279_MutatedKaneusOren;
|
||||
|
||||
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 - Oren (10279)<br>
|
||||
* Original Jython script by Gnacik on 2010-06-29.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q10279_MutatedKaneusOren extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int MOUEN = 30196;
|
||||
private static final int ROVIA = 30189;
|
||||
private static final int KAIM_ABIGORE = 18566;
|
||||
private static final int KNIGHT_MONTAGNAR = 18568;
|
||||
// Items
|
||||
private static final int TISSUE_KA = 13836;
|
||||
private static final int TISSUE_KM = 13837;
|
||||
|
||||
public Q10279_MutatedKaneusOren()
|
||||
{
|
||||
super(10279, Q10279_MutatedKaneusOren.class.getSimpleName(), "Mutated Kaneus - Oren");
|
||||
addStartNpc(MOUEN);
|
||||
addTalkId(MOUEN, ROVIA);
|
||||
addKillId(KAIM_ABIGORE, KNIGHT_MONTAGNAR);
|
||||
registerQuestItems(TISSUE_KA, TISSUE_KM);
|
||||
}
|
||||
|
||||
@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 "30196-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30189-03.htm":
|
||||
st.giveAdena(100000, 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() && (((npcId == KAIM_ABIGORE) && !st.hasQuestItems(TISSUE_KA)) || ((npcId == KNIGHT_MONTAGNAR) && !st.hasQuestItems(TISSUE_KM))))
|
||||
{
|
||||
PartyMembers.add(st);
|
||||
}
|
||||
}
|
||||
|
||||
if (!PartyMembers.isEmpty())
|
||||
{
|
||||
rewardItem(npcId, PartyMembers.get(getRandom(PartyMembers.size())));
|
||||
}
|
||||
}
|
||||
else if (st.isStarted())
|
||||
{
|
||||
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 MOUEN:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() > 47) ? "30196-01.htm" : "30196-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.hasQuestItems(TISSUE_KA) && st.hasQuestItems(TISSUE_KM)) ? "30196-05.htm" : "30196-04.htm";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "30916-06.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case ROVIA:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.STARTED:
|
||||
htmltext = (st.hasQuestItems(TISSUE_KA) && st.hasQuestItems(TISSUE_KM)) ? "30189-02.htm" : "30189-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)
|
||||
{
|
||||
if ((npcId == KAIM_ABIGORE) && !st.hasQuestItems(TISSUE_KA))
|
||||
{
|
||||
st.giveItems(TISSUE_KA, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
else if ((npcId == KNIGHT_MONTAGNAR) && !st.hasQuestItems(TISSUE_KM))
|
||||
{
|
||||
st.giveItems(TISSUE_KM, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user