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>Evil Altar:<br>
Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31512-01.html">Place the crystal in the space under the altar.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Evil Altar:<br>
The altar makes an ominous sound as the seal loosens and the crystal disappears. Try the next altar.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
As with the previous altar, there is a space underneath where the crystal will easily fit.<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31513-01.html">Place the crystal in the space under the altar.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
The seal is loosening! The power is getting stronger.<br>
Find the next altar.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31514-01.html">Place the crystal in the space under the altar.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
The power is growing stronger as the seal loosens.<br>
Find the next altar.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31515-01.html">Place the crystal in the space under the altar.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
The power is growing stronger as the seal loosens.<br>
Find the next altar.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31516-01.html">Place the crystal in the space under the altar.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Evil Altar:<br>
The seal is almost loose, and it emanates great power.<br>
Visit the Tetrarch in the neighborhood.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
Brother, you've been with us for a long time! You've earned our trust, and therefore I believe you're ready for an important mission!<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31517-01.htm">"I'm ready!"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
You're very well prepared! I wish all of us could be as well prepared as you! You've chosen a path that holds many trials, one that your brothers have traveled before you! Do you have the faith you'll need to complete your journey?<br>
<a action="bypass -h Quest Q00016_TheComingDarkness 31517-02.htm">"I have enough faith."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
Very well. Based on the trust we have for you, brother, I'll give you a mission. Use these five crystals of binding to break open the seals that have been placed throughout this region. Watch the altar carefully; you'll discover how to use these crystals. I'll wait here until you break all the seals and return.<br>
First, you must go to the altar near the entrance of the Valley of Saints. Your mission begins there. Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Hierarch:<br>
You haven't finished your job yet! Come back when you've broken the seal. I'll be waiting.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Hierarch:<br>
You've done well! Welcome to the brotherhood! You're now a member of the Benandanti Cartel! I'll see that you're well-rewarded!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Hierarch:<br>
Quest Light and Darkness need to be finished first.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
We've spent much time together, dear brother, but I regret to tell you that you're not yet ready! Try again when your faith and conviction are more firmly established.<br>
(Only characters of level 62 and above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,139 @@
/*
* 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.Q00016_TheComingDarkness;
import quests.Q00017_LightAndDarkness.Q00017_LightAndDarkness;
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;
/**
* The Coming Darkness (16)<br>
* Original jython script by disKret.<br>
* TODO: Zoey76: This quest is still not retail like, Altars AI is incomplete.
* @author nonom
*/
public class Q00016_TheComingDarkness extends Quest
{
// NPCs
private static final int HIERARCH = 31517;
private static final int EVIL_ALTAR_1 = 31512;
private static final int EVIL_ALTAR_2 = 31513;
private static final int EVIL_ALTAR_3 = 31514;
private static final int EVIL_ALTAR_4 = 31515;
private static final int EVIL_ALTAR_5 = 31516;
// Item
private static final int CRYSTAL_OF_SEAL = 7167;
public Q00016_TheComingDarkness()
{
super(16, Q00016_TheComingDarkness.class.getSimpleName(), "The Coming Darkness");
addStartNpc(HIERARCH);
addTalkId(HIERARCH, EVIL_ALTAR_1, EVIL_ALTAR_2, EVIL_ALTAR_3, EVIL_ALTAR_4, EVIL_ALTAR_5);
registerQuestItems(CRYSTAL_OF_SEAL);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
final int cond = st.getCond();
switch (event)
{
case "31517-02.htm":
st.startQuest();
st.giveItems(CRYSTAL_OF_SEAL, 5);
break;
case "31512-01.html":
case "31513-01.html":
case "31514-01.html":
case "31515-01.html":
case "31516-01.html":
final int npcId = Integer.parseInt(event.replace("-01.html", ""));
if ((cond == (npcId - 31511)) && st.hasQuestItems(CRYSTAL_OF_SEAL))
{
st.takeItems(CRYSTAL_OF_SEAL, 1);
st.setCond(cond + 1, true);
}
break;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
final QuestState st2 = player.getQuestState(Q00017_LightAndDarkness.class.getSimpleName());
if ((st2 != null) && !st2.isCompleted())
{
return "31517-04.html";
}
switch (st.getState())
{
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
case State.CREATED:
htmltext = (player.getLevel() >= 62) ? "31517-00.htm" : "31517-05.html";
break;
case State.STARTED:
final int npcId = npc.getId();
if (npcId == HIERARCH)
{
if (st.isCond(6))
{
st.addExpAndSp(865187, 69172);
st.exitQuest(false, true);
htmltext = "31517-03.html";
}
else
{
htmltext = "31517-02a.html";
}
}
else if ((npcId - 31511) == st.getCond())
{
htmltext = npcId + "-00.html";
}
else
{
htmltext = npcId + "-01.html";
}
break;
}
return htmltext;
}
}