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>Altar of Saints:<br>
The first Altar of Saints has a desolate atmosphere. You know that you need to sprinkle the Blood of Saint here, but you feel apprehensive. You begin to feel faint...<br>
<a action="bypass -h Quest Q00017_LightAndDarkness 31508-02.html">Sprinkle the Blood of Saint.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
The Blood of Saint you sprinkled on the Altar of Saints quickly disappeared. You're starting to feel better now. It's time to move on!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
Behold, the Altar of Saints! As instructed, you put your hand in your pocket to prepare to sprinkle the blood, and... The Blood of Saint is gone! Did you lose it on your way here? This is terrible!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
An Altar of Saints that has lost its power. All traces of purity have disappeared. Hurry along, much remains to be done.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Altar of Saints:<br>
The second Altar of Saints. The atmosphere is similar to that of the previous altar. You know that you should sprinkle the Blood of Saint here as you were told, but you're hesitant... You begin to feel faint...<br>
<a action="bypass -h Quest Q00017_LightAndDarkness 31509-02.html">Sprinkle the Blood of Saint.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Saint Altar:<br>
The Altar of Saints reacts to the Blood of Saint. You're starting to feel better. The altar appears depleted. It's time to move on.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
Behold, the Altar of Saints! As instructed, you put your hand in your pocket to prepare to sprinkle the blood, and... The Blood of Saint is gone! Perhaps you lost it on your way here. What shall you do?!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
The altar is depleted of its power. Its former atmosphere of purity has dissipated. Only two more altars to go.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Saint Altar:<br>
At last, the third Altar of Saints! No less forbidding than the first two!<br>
<a action="bypass -h Quest Q00017_LightAndDarkness 31510-02.html">Sprinkle the Blood of Saint.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
The Altar of Saints reacts. It seems the Blood of Saint has relieved the altar of its purity. One more altar to go.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
Behold, the Altar of Saints! As instructed, you put your hand in your pocket to prepare to sprinkle the blood, and... The Blood of Saint is gone! Perhaps you lost it on your way here!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
The altar is depleted of its power. Its former purity is gone. One more altar to go.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Saint Altar:<br>
The last Altar of Saints looks the same as the others. You're starting to feel more comfortable. That could be good or bad!<br>
<a action="bypass -h Quest Q00017_LightAndDarkness 31511-02.html">Sprinkle the Blood of Saint.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
The Altar of Saints is behaving strangely. This is getting tiresome. It seems tthat I'm changed a lot. Time to go back and see the elder.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
Behold, the Altar of Saints! As instructed, you put your hand in your pocket to prepare to sprinkle the blood, and... The Blood of Saint is gone! Perhaps you lost it on your way here. What shall you do?!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Saints:<br>
The altar is depleted of its power. Its former purity has dissipated. The quest is complete. Return to the elder.
</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! Are you up to the task?<br>
<a action="bypass -h Quest Q00017_LightAndDarkness 31517-01.htm">"What do you need done?</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
Before I tell you, I need to ask you something. How strong is your faith in the work that we do? Are you certain that you can persevere no matter what happens while carrying out this mission?<br>
<a action="bypass -h Quest Q00017_LightAndDarkness 31517-02.html">"I will persevere"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
Very well, brother. Listen carefully! Go to the Altar of Saints, sprinkle this Blood of Saint on it and then come back. You may think that this sounds simple... But I warn you... Unless your faith in us is very strong, you won't complete this mission!<br>
So go sprinkle the blood on the Altar of Saints! You can see it from the path by the entrance to the Valley of Saints. Don't get lost on your way there! May Triol watch over you...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Heirarch:<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 61 and above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Heirarch:<br>
Good job! We are really starting to trust you! Someday, perhaps, you'll be our true brother! Congratulations! Now choose your reward!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Heirarch:<br>
You haven't finished your mission. Come back when you're done.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Heirarch:<br>
Where is the Blood of Saint I gave you? How could you betray our trust like that?!<br>
You are no longer our brother! Get out! We cast you out in the name of Triol! May your remaining days be full of terrible pain and suffering...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Heirarch:<br>
Quest Sweet Whispers need to be finished first.
</body></html>

View File

@@ -0,0 +1,147 @@
/*
* 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.Q00017_LightAndDarkness;
import quests.Q00015_SweetWhispers.Q00015_SweetWhispers;
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;
/**
* Light And Darkness (17)<br>
* Original jython script by disKret, Skeleton & DrLecter.
* @author nonom
*/
public class Q00017_LightAndDarkness extends Quest
{
// NPCs
private static final int HIERARCH = 31517;
private static final int SAINT_ALTAR_1 = 31508;
private static final int SAINT_ALTAR_2 = 31509;
private static final int SAINT_ALTAR_3 = 31510;
private static final int SAINT_ALTAR_4 = 31511;
// Item
private static final int BLOOD_OF_SAINT = 7168;
public Q00017_LightAndDarkness()
{
super(17, Q00017_LightAndDarkness.class.getSimpleName(), "Light and Darkness");
addStartNpc(HIERARCH);
addTalkId(HIERARCH, SAINT_ALTAR_1, SAINT_ALTAR_2, SAINT_ALTAR_3, SAINT_ALTAR_4);
registerQuestItems(BLOOD_OF_SAINT);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
switch (event)
{
case "31517-02.html":
if (player.getLevel() >= 61)
{
st.startQuest();
st.giveItems(BLOOD_OF_SAINT, 4);
}
else
{
htmltext = "31517-02a.html";
}
break;
case "31508-02.html":
case "31509-02.html":
case "31510-02.html":
case "31511-02.html":
final int cond = st.getCond();
final int npcId = Integer.parseInt(event.replace("-02.html", ""));
if ((cond == (npcId - 31507)) && st.hasQuestItems(BLOOD_OF_SAINT))
{
htmltext = npcId + "-01.html";
st.takeItems(BLOOD_OF_SAINT, 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;
}
switch (st.getState())
{
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
case State.CREATED:
final QuestState st2 = player.getQuestState(Q00015_SweetWhispers.class.getSimpleName());
htmltext = ((st2 != null) && (st2.isCompleted())) ? "31517-00.htm" : "31517-06.html";
break;
case State.STARTED:
final long blood = st.getQuestItemsCount(BLOOD_OF_SAINT);
final int npcId = npc.getId();
switch (npcId)
{
case HIERARCH:
if (st.getCond() < 5)
{
htmltext = (blood >= 5) ? "31517-05.html" : "31517-04.html";
}
else
{
st.addExpAndSp(697040, 54887);
st.exitQuest(false, true);
htmltext = "31517-03.html";
}
break;
case SAINT_ALTAR_1:
case SAINT_ALTAR_2:
case SAINT_ALTAR_3:
case SAINT_ALTAR_4:
if ((npcId - 31507) == st.getCond())
{
htmltext = npcId + ((blood > 0) ? "-00.html" : "-02.html");
}
else if (st.getCond() > (npcId - 31507))
{
htmltext = npcId + "-03.html";
}
break;
}
break;
}
return htmltext;
}
}