Seed of Hellfire quests.

Contributed by hlwrave.
This commit is contained in:
MobiusDev
2016-02-09 10:01:07 +00:00
parent 2ab94e6daf
commit cc24fc452c
96 changed files with 1398 additions and 0 deletions

View File

@@ -0,0 +1,131 @@
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.Q10381_ToTheSeedOfHellfire;
import com.l2jmobius.gameserver.enums.QuestType;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
/**
* @hlwrave
*/
public class Q10381_ToTheSeedOfHellfire extends Quest
{
// NPCS
private static final int KEUCEREUS = 32548;
private static final int KBALDIR = 32733;
private static final int SIZRAK = 33669;
// Items
private static final int KBALDIRS_LETTER = 34957;
// Misc
private static final int MIN_LEVEL = 97;
public Q10381_ToTheSeedOfHellfire()
{
super(10381, Q10381_ToTheSeedOfHellfire.class.getSimpleName(), "To the Seed of Hellfire");
addStartNpc(KEUCEREUS);
addTalkId(KEUCEREUS, KBALDIR, SIZRAK);
registerQuestItems(KBALDIRS_LETTER);
addCondMinLevel(MIN_LEVEL, "kserth_q10381_04.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
switch (event)
{
case "kserth_q10381_03.htm":
{
qs.startQuest();
break;
}
case "kbarldire_q10381_03.htm":
{
qs.setCond(2);
qs.giveItems(KBALDIRS_LETTER, 1);
break;
}
case "sofa_sizraku_q10381_03.htm":
{
qs.takeItems(KBALDIRS_LETTER, -1);
qs.addExpAndSp(951127800, 435041400);
qs.giveItems(57, 3256740);
qs.exitQuest(QuestType.ONE_TIME, true);
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (npc.getId())
{
case KEUCEREUS:
{
if (qs.isCreated())
{
htmltext = "kserth_q10381_01.htm";
}
else if (qs.isStarted())
{
htmltext = "kserth_q10381_06.htm";
}
else if (qs.isCompleted())
{
htmltext = "kserth_q10381_05.htm";
}
break;
}
case KBALDIR:
{
if (qs.isCond(1))
{
htmltext = "kbarldire_q10381_01.htm";
}
else if (qs.isCond(2))
{
htmltext = "kbarldire_q10381_04.htm";
}
break;
}
case SIZRAK:
{
if (qs.isCond(2))
{
htmltext = "sofa_sizraku_q10381_01.htm";
}
break;
}
}
return htmltext;
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Commander Kbaldir:<br>
It's you! I've been waiting for you. Right now the insurgent force is secretly working in the <font color="LEVEL">Seed of Hellfire</font>. But they could use your help, if you were willing to give it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_ToTheSeedOfHellfire kbarldire_q10381_02.htm">"Always."</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Commander Kbaldir:<br>
Alright!<br>
To get to the <font color="LEVEL">Seed of Hellfire</font>, use a <font color="LEVEL">Flight Device</font>. The nearest <font color="LEVEL">device</font> can be found <font color="LEVEL">by following the road behind me and turning left</font>.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_ToTheSeedOfHellfire kbarldire_q10381_03.htm">"Got it."</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Commander Kbaldir:<br>
Good. Now hurry and leave for the <font color="LEVEL">Seed of Hellfire</font>. Once there, find <font color="LEVEL">Sizrak</font>. He's a member of the Insurgent force, and will tell you what needs doing.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Commander Kbaldir:<br>
Huh? Why haven't you left for the <font color="LEVEL">Seed of Hellfire</font> yet?<br>
Remember, to get to the <font color="LEVEL">Seed of Hellfire</font>, use a <font color="LEVEL">Flight Device</font>. The nearest <font color="LEVEL">device</font> can be found <font color="LEVEL">by following the road behind me and turning left.</font>.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Admiral Keucereus:<br>
I have to urgently send a person to the <font color="LEVEL">Seed of Hellfire</font>, but I guess there is nobody except you who I can trust.<br>
Could you go there?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_ToTheSeedOfHellfire kserth_q10381_02.htm">"Yes, of course!"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Admiral Keucereus:<br>
Well answered! Go and see <font color="LEVEL">Commander Kbaldir</font>. He will not only tell you how to go to the <font color="LEVEL">Seed of Hellfire</font>, but also briefly tell you about the situation over there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_ToTheSeedOfHellfire kserth_q10381_03.htm">"I understand."</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Admiral Keucereus:<br>
<font color="LEVEL">Commander Kbaldir</font> is in this <font color="LEVEL">Keucereus Alliance Base</font>. Hurry to him!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Admiral Keucereus:<br>
I'm sorry but I cannot send you there now that I saw your skills. I don't want any more blood on my hands.<br>
(You must be level 97 or above to start this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Admiral Keucereus:<br>
Rest up, friend. You have done well.<br>
(You have already completed this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Admiral Keucereus:<br>
Huh? Haven't you left for the <font color="LEVEL">Seed of Hellfire</font> yet? Hurry and go find <font color="LEVEL">Commander Kbaldir</font>. He will tell you how to go to the <font color="LEVEL">Seed of Hellfire</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
Hmm? Do I know you? I'm sorry, I'm busy here and I don't have time for conversation. What? <font color="LEVEL">Keucereus Alliance Base</font> sent you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_ToTheSeedOfHellfire sofa_sizraku_q10381_02.htm">"I have a letter from Kbaldir."</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Sizrak:<br>
Do you mind waiting while I read it?<br>
To be honest, I didn't expect <font color="LEVEL">Keucereus Alliance Base</font> to respond to my request for help. Did you come alone?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_ToTheSeedOfHellfire sofa_sizraku_q10381_03.htm">"I am just the vanguard."</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Sizrak:<br>
Hmm... The vanguard of what, I wonder. Well, perhaps you can help us drive <font color="LEVEL">Tauti</font> out... We've had enough trouble with this already, so more blades will be appreciated.
</body></html>