This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30907-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30907-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Magister Minevia:<br>
|
||||
I heard about you from Captain Gosta. 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/Q10278_MutatedKaneusHeine/30907-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30907-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Minevia:<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 Q10278_MutatedKaneusHeine 30907-03.htm">"Beginning of a journey?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30907-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30907-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Minevia:<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/Q10278_MutatedKaneusHeine/30916-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Gosta:<br>
|
||||
Based on my observations, I don't think you are yet ready to handle the Kaneus.<br>
|
||||
(Only characters level 38 and above are permitted to undertake this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Gosta:<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 Q10278_MutatedKaneusHeine 30916-02.htm">"What kind of help do you need?"</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-02.htm
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-02.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Captain Gosta:<br>
|
||||
The favor I ask is on behalf of <font color="LEVEL">Magister Minevia</font> of the Temple of Einhasad. The Sages of Magic, a group of magisters of which Magister Minevia 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 43 and 46.)</font><br>
|
||||
<a action="bypass -h Quest Q10278_MutatedKaneusHeine 30916-03.htm">Say yes.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Gosta:<br>
|
||||
Excellent! Visit either of the 2 Kamalokas we can enter from Heine, kill the Kaneus there and extract their cellular tissues.<br>
|
||||
You will face the <font color="LEVEL">Blade Otis and Weird Bunei</font> Kaneus. The Blade Otis 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 Minevia</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/Q10278_MutatedKaneusHeine/30916-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Gosta:<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/Q10278_MutatedKaneusHeine/30916-05.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-05.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Gosta:<br>
|
||||
Ah! Are these the <font color="LEVEL">cellular tissues of Blade Otis and Weird Bunei</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 Minevia</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 Minevia</font> before they deteriorate!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-06.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/30916-06.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Captain Gosta:<br>
|
||||
Ah, it's you! Magister Minevia 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 Heine</font> that you delivered to the Sages of Magic were a great help. Well done!
|
||||
</body></html>
|
172
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/Q10278_MutatedKaneusHeine.java
vendored
Normal file
172
trunk/dist/game/data/scripts/quests/Q10278_MutatedKaneusHeine/Q10278_MutatedKaneusHeine.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.Q10278_MutatedKaneusHeine;
|
||||
|
||||
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 - Heine (10278)<br>
|
||||
* Original Jython script by Gnacik on 2010-06-29.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q10278_MutatedKaneusHeine extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int GOSTA = 30916;
|
||||
private static final int MINEVIA = 30907;
|
||||
private static final int BLADE_OTIS = 18562;
|
||||
private static final int WEIRD_BUNEI = 18564;
|
||||
// Items
|
||||
private static final int TISSUE_BO = 13834;
|
||||
private static final int TISSUE_WB = 13835;
|
||||
|
||||
public Q10278_MutatedKaneusHeine()
|
||||
{
|
||||
super(10278, Q10278_MutatedKaneusHeine.class.getSimpleName(), "Mutated Kaneus - Heine");
|
||||
addStartNpc(GOSTA);
|
||||
addTalkId(GOSTA, MINEVIA);
|
||||
addKillId(BLADE_OTIS, WEIRD_BUNEI);
|
||||
registerQuestItems(TISSUE_BO, TISSUE_WB);
|
||||
}
|
||||
|
||||
@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 "30916-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30907-03.htm":
|
||||
st.giveAdena(50000, 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 == BLADE_OTIS) && !st.hasQuestItems(TISSUE_BO)) || ((npcId == WEIRD_BUNEI) && !st.hasQuestItems(TISSUE_WB))))
|
||||
{
|
||||
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 GOSTA:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() > 37) ? "30916-01.htm" : "30916-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.hasQuestItems(TISSUE_BO) && st.hasQuestItems(TISSUE_WB)) ? "30916-05.htm" : "30916-04.htm";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "30916-06.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case MINEVIA:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.STARTED:
|
||||
htmltext = (st.hasQuestItems(TISSUE_BO) && st.hasQuestItems(TISSUE_WB)) ? "30907-02.htm" : "30907-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 == BLADE_OTIS) && !st.hasQuestItems(TISSUE_BO))
|
||||
{
|
||||
st.giveItems(TISSUE_BO, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
else if ((npcId == WEIRD_BUNEI) && !st.hasQuestItems(TISSUE_WB))
|
||||
{
|
||||
st.giveItems(TISSUE_WB, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user