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>Innocentin:<br>
You came all this way just to find me? Yes, I was once a high priest, until some unfortunate political developments landed me here in this blasted library! But lately, I've seen signs that my luck might be changing...<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31328-02.html">"Check out this crucifix!"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Innocentin:<br>
Zounds! Where did you find this?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31328-03.html">"Truthfully, ..."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Innocentin:<br>
He was always a dutiful Warrior, even after his death... may the gods watch over his soul!<br>
... Why would he have you deliver this to me in person?<br>
Lately I've been having the same dream every night...<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31328-04.html">"What is in your dream?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Innocentin:<br>
In my dream, I'm looking down upon the Forest of the Dead... Suddenly, huge explosions rock the forest, and an army of undead rush towards me...<br>
This is bound to be a message from the gods!<br>
That's why I sent the one who held this crucifix there!<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31328-05.html">"But he's dead!"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Innocentin:<br>
I've learned much of the ways of the wild since my days at the temple.<br>
In times like these, dead souls must be appeased!<br>
<font color="LEVEL">Take this crucifix to Grand Magister Tifaren of the Dark Elves and ask her to perform necromancy.</font>She should be able to tell us what actually happened in the Forest of the Dead...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Innocentin:<br>
Take the crucifix to Grand Magister Tifaren of the Dark Elves and perform the necromancy to summon the soul of the priest.<br>
Ask him what happened in the Forest of the Dead...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Agripel:<br>
Is Innocentin one of those devil worshippers executed in the old witch trials? I never heard of him, ask someone else.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Agripel:<br>
Maybe he was the guy who long ago was expelled for keeping a devil worshipper with him! He's probably a beggar now. I don't waste my time on such filth.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Agripel:<br>
Maybe the devil worshippers are hiding in a library somewhere, they still need to acquire knowledge. They couldn't be here in the temple!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Benedict:<br>
Is Innocentin one of those devil worshippers executed in the old witch trials? I never heard of him, ask someone else.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Benedict:<br>
Maybe he was the guy who long ago was expelled for keeping a devil worshipper with him! He's probably a beggar now. I don't waste my time with such filth.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Benedict:<br>
Maybe the devil worshippers are hiding in a library somewhere, they still need to acquire knowledge. They couldn't be here in the temple!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Priest Dominic:<br>
Is Innocentin one of those devil worshippers executed in the old witch trials? I never heard of him, ask someone else.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dominic:<br>
Maybe he was the guy who long ago was expelled for keeping a devil worshipper with him! He's probably a beggar now. I don't waste my time with such filth.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dominic:<br>
Maybe the devil worshippers are hiding in a library somewhere, they still need to acquire knowledge. They couldn't be here in the temple!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Mysterious Wizard:<br>
There's a ghost hanging around that tombstone that's been bothering me lately.<br>
Could you help me get rid of it?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31522-02.htm">"I'll handle it."</a><br>
<a action="bypass -h Quest Q00021_HiddenTruth 31522-04.html">"Why is it bothering you?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Mysterious Wizard:<br>
You think you're up to it?<br>
Look for the ghost in the tombstone.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Mysterious Wizard:<br>
Come back when the Forest of the Dead won't eat you alive!<br>
(Only characters of level 63 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Mysterious Wizard:<br>
It may sound funny coming from a Dark Mage, but I don't like dealing with the dead. It's only trouble.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31522-01.htm">Back</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Mysterious Wizard:<br>
What's this? Weren't you supposed to check the tombstone for that noisy ghost?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tombstone:<br>
After pushing away the moss, words appear engraved upon the stone. Could these words be used to conjure a ghost?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31523-02.html">Say the words loudly.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tombstone:<br>
<font color="LEVEL">A jeweled scepter for the King and two Silver Spears for the von Hellmann family who protect him.</font><br>
<a action="bypass -h Quest Q00021_HiddenTruth 31523-03.html">Wait.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Tombstone:<br>
Soon a ghostly being appears...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Tombstone:<br>
Don't look now, but there's a ghost behind you!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
Who is calling me? Why am I stuck here? Why can't I sleep?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31524-02.html">"Who are you? What's wrong?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ghost of von Hellmann:<br>
I'm Duke Adolf von Hellmann, father of Alfred von Hellmann, who King Astor struck down with his spear.<br>
Why can't I rest in peace?! Who dares interrupt my sleep?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31524-03.html">"Tell me more."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
Woe is me! This was once our home, but now we have no authority! Does this land still belong to the Elmore Kingdom?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31524-04.html">"Elmore still rules here."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
Elmore? Why can't I feel the King's grace? What's happened here?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31524-05.html">"I don't know."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
Find out what happened here and who has owned this land while I was sleeping! What's become of my family?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31524-06.html">"I'll find out."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of von Hellmann:<br>
Thank you. Find out what has transpired! Follow my servant and bring me the news!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
Find out what's happened in the forest.<br>
I'd have one of my servants show you the way, but they're all busy. Come back later!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of von Hellmann:<br>
Thank you! Please find out what's happened in the forest. Follow my servant and bring me the news!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
Find out what has happened in the forest!<br>
I'd have one of my servants show you the way, but they're all busy. Come back later!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of von Hellmann:<br>
I've repeatedly sent my servants to help you! Find the bookshelf that contains the history of the forest. It's somewhere in the south.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of von Hellmann:<br>
You haven't found out enough to tell me why I can't rest in peace!<br>
Be gone!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of Hellmann Page:<br>
I'm a guide of the Forest of the Dead. By the Lord's order, I'll lead you.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of von Hellmann's Page:<br>
Find a book that discusses an old grudge.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Broken Bookshelf:<br>
The book that the ghost spoke of was easily found. The padlock was firmly locked.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-02.html">Examine the padlock.</a><br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-03.html">Take the book from the shelf.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Broken Bookshelf:<br>
The padlock is engraved with the mark of the Hellmann family. In spite of it's many years outside, once the outer layer of dust and soil is brushed away, it shines silvery in the light! This lock won't be easy to break.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-01.html">Return</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Broken Bookshelf:<br>
The book's cover is lambskin that's been discolored by dark, red-colored stains.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-04.html">Try opening the book.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Broken Bookshelf:<br>
The dark red stains have damaged the pages of the book as well. Not much text is legible. All the years outside couldn't have helped, either!<br>
Do you want to read it?<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-05.html">Try to read the book.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
"Chapter 5, The Lord of the Forest of the Dead<br>
... The lord of the Forest of the Dead... has existed from the beginning of...<br>
... the ruling is, ... the form of taxation...<br>
... rather than that, life and death itself... under the ruling authority..."<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-06.html">Turn the page.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
"Basically, to her, taxation means... no different from... Due to... who's the master of the Moon Face Flower and the Forest of the Dead... went under her... are vampires<br>
... this is.... when examining the characteristics of..... sucking... by that one's power... that is... necessary to the subordinate of the lord of the forest..."<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-07.html">Turn the page.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
".... vampire.............. of the Forest of Dead...............<br>
............... cursed............... working at..............."<br>
The rest of the text is obscured by the red stains.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-08.html">Put the book back onto the shelf.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>
When you're about to replace the book, you notice something lying on the ground. Maybe it fell out of the book...<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-12.html">Examine the object closely.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>
While examining the bookshelf, you notice something lying on the ground. Maybe it fell out of the book.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-12.html">Examine the object closely.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>
When you're about to replace the book, you notice something lying on the ground. Maybe it fell out of the book.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-12.html">Examine the object closely.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>
While examining the area around the bookshelf, you see something lying on the ground. Perhaps it fell when you were taking out the book.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-12.html">Examine the object closely.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
It's a metallic cross. It seems to be an Einhasad's Crucifix!<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-14.html">Pick up the cross.</a>
<br><a action="bypass -h Quest Q00021_HiddenTruth 31526-13.html">Ignore the cross.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
An old bookshelf is standing in front of you. It's extremely worn, and the lower section is used as a locker. A few books are arranged on the shelves, and the locker is secured with a padlock which bears the mark of the Hellmann Family.<br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-04.html">Take out a book and read it.</a><br>
<a action="bypass -h Quest Q00021_HiddenTruth 31526-08.html">Examine the area around the bookshelf.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
You feel the cold metallic surface of the Einhasad's Crucifix. Since it's been inside the bookshelf for a long time, it's a little rusty.<br>
At the moment you touch the crucifix, you hear a whisper in your ear!<br>
<font color="LEVEL">Take it to Einhasad Temple in the Rune Township... to Priest Innocentin there... </font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
You feel the cold metallic surface of the Einhasad's Crucifix. Since it's been inside the bookshelf for a long time, it's a little rusty.<br>
At the moment you touch the crucifix, you hear a whisper in your ear!<br>
<font color="LEVEL">Take it to Einhasad Temple in the Rune Township... to Priest Innocentin there... </font>
</body></html>

View File

@@ -0,0 +1,456 @@
/*
* 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.Q00021_HiddenTruth;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.instancemanager.WalkingManager;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Character;
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;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.clientpackets.Say2;
import com.l2jserver.gameserver.network.serverpackets.NpcSay;
/**
* Hidden Truth (21)
* @author xban1x
*/
public class Q00021_HiddenTruth extends Quest
{
// NPCs
private static final int INNOCENTIN = 31328;
private static final int AGRIPEL = 31348;
private static final int BENEDICT = 31349;
private static final int DOMINIC = 31350;
private static final int MYSTERIOUS_WIZARD = 31522;
private static final int TOMBSTONE = 31523;
private static final int GHOST_OF_VON_HELLMAN = 31524;
private static final int GHOST_OF_VON_HELLMANS_PAGE = 31525;
private static final int BROKEN_BOOKSHELF = 31526;
// Location
private static final Location GHOST_LOC = new Location(51432, -54570, -3136, 0);
private static final Location PAGE_LOC = new Location(51446, -54514, -3136, 0);
// Items
private static final int CROSS_OF_EINHASAD = 7140;
private static final int CROSS_OF_EINHASAD2 = 7141;
// Misc
private static final int MIN_LVL = 63;
private static final String PAGE_ROUTE_NAME = "rune_ghost1b";
private static int PAGE_COUNT = 0;
private static boolean GHOST_SPAWNED = false;
private boolean PAGE_SPAWNED = false;
private boolean MOVE_ENDED = false;
public Q00021_HiddenTruth()
{
super(21, Q00021_HiddenTruth.class.getSimpleName(), "Hidden Truth");
addStartNpc(MYSTERIOUS_WIZARD);
addTalkId(MYSTERIOUS_WIZARD, TOMBSTONE, GHOST_OF_VON_HELLMAN, GHOST_OF_VON_HELLMANS_PAGE, BROKEN_BOOKSHELF, AGRIPEL, BENEDICT, DOMINIC, INNOCENTIN);
addSeeCreatureId(GHOST_OF_VON_HELLMANS_PAGE);
addRouteFinishedId(GHOST_OF_VON_HELLMANS_PAGE);
registerQuestItems(CROSS_OF_EINHASAD);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
QuestState st = getQuestState(player, false);
String htmltext = null;
if (st != null)
{
switch (event)
{
case "31328-02.html":
case "31328-03.html":
case "31328-04.html":
case "31522-01.htm":
case "31522-04.html":
case "31523-02.html":
case "31524-02.html":
case "31524-03.html":
case "31524-04.html":
case "31524-05.html":
case "31526-01.html":
case "31526-02.html":
case "31526-04.html":
case "31526-05.html":
case "31526-06.html":
case "31526-12.html":
case "31526-13.html":
{
htmltext = event;
break;
}
case "31328-05.html":
{
if (st.isCond(7))
{
st.giveItems(CROSS_OF_EINHASAD2, 1);
st.addExpAndSp(131228, 11978);
st.exitQuest(false, true);
htmltext = event;
}
break;
}
case "31522-02.htm":
{
if (player.getLevel() < MIN_LVL)
{
htmltext = "31522-03.htm";
}
else
{
st.startQuest();
htmltext = event;
}
break;
}
case "31523-03.html":
{
if (GHOST_SPAWNED)
{
htmltext = "31523-04.html";
st.playSound(QuestSound.SKILLSOUND_HORROR_2);
}
else
{
final L2Npc ghost = addSpawn(GHOST_OF_VON_HELLMAN, GHOST_LOC, false, 0);
ghost.broadcastPacket(new NpcSay(ghost.getObjectId(), 0, ghost.getId(), NpcStringId.WHO_AWOKE_ME));
GHOST_SPAWNED = true;
st.startQuestTimer("DESPAWN_GHOST", 1000 * 300, ghost);
st.setCond(2);
st.playSound(QuestSound.SKILLSOUND_HORROR_2);
htmltext = event;
}
break;
}
case "31524-06.html":
{
if (PAGE_COUNT < 5)
{
final L2Npc page = addSpawn(GHOST_OF_VON_HELLMANS_PAGE, PAGE_LOC, false, 0);
page.setScriptValue(player.getObjectId());
page.broadcastPacket(new NpcSay(page.getObjectId(), Say2.NPC_ALL, page.getId(), NpcStringId.MY_MASTER_HAS_INSTRUCTED_ME_TO_BE_YOUR_GUIDE_S1).addStringParameter(player.getName()));
WalkingManager.getInstance().startMoving(page, PAGE_ROUTE_NAME);
PAGE_COUNT++;
st.setCond(3);
htmltext = event;
}
else
{
htmltext = "31524-06a.html";
}
break;
}
case "31526-03.html":
{
st.playSound(QuestSound.ITEMSOUND_ARMOR_CLOTH);
htmltext = event;
break;
}
case "31526-07.html":
{
st.setCond(4);
htmltext = event;
break;
}
case "31526-08.html":
{
if (!st.isCond(5))
{
st.playSound(QuestSound.AMDSOUND_ED_CHIMES);
st.setCond(5);
htmltext = event;
}
else
{
htmltext = "31526-09.html";
}
break;
}
case "31526-14.html":
{
st.giveItems(CROSS_OF_EINHASAD, 1);
st.setCond(6);
htmltext = event;
break;
}
case "DESPAWN_GHOST":
{
GHOST_SPAWNED = false;
npc.deleteMe();
break;
}
case "DESPAWN":
{
PAGE_COUNT--;
npc.deleteMe();
break;
}
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st != null)
{
switch (npc.getId())
{
case MYSTERIOUS_WIZARD:
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = "31522-01.htm";
break;
}
case State.STARTED:
{
htmltext = "31522-05.html";
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
break;
}
case TOMBSTONE:
{
htmltext = "31523-01.html";
break;
}
case GHOST_OF_VON_HELLMAN:
{
switch (st.getCond())
{
case 2:
{
htmltext = "31524-01.html";
break;
}
case 3:
{
if (PAGE_SPAWNED)
{
htmltext = "31524-07b.html";
}
else
{
if (PAGE_COUNT < 5)
{
final L2Npc PAGE = addSpawn(GHOST_OF_VON_HELLMANS_PAGE, PAGE_LOC, true, 0);
PAGE_COUNT++;
PAGE_SPAWNED = true;
PAGE.setScriptValue(player.getObjectId());
WalkingManager.getInstance().startMoving(PAGE, PAGE_ROUTE_NAME);
htmltext = "31524-07.html";
}
else
{
htmltext = "31524-07a.html";
}
}
break;
}
case 4:
{
htmltext = "31524-07c.html";
break;
}
}
break;
}
case GHOST_OF_VON_HELLMANS_PAGE:
{
if (st.isCond(3))
{
if (MOVE_ENDED)
{
htmltext = "31525-02.html";
st.startQuestTimer("DESPAWN", 3000, npc);
}
else
{
htmltext = "31525-01.html";
}
}
break;
}
case BROKEN_BOOKSHELF:
{
switch (st.getCond())
{
case 3:
{
htmltext = "31526-01.html";
break;
}
case 4:
{
st.setCond(5);
st.playSound(QuestSound.AMDSOUND_ED_CHIMES);
htmltext = "31526-10.html";
break;
}
case 5:
{
htmltext = "31526-11.html";
break;
}
case 6:
{
htmltext = "31526-15.html";
break;
}
}
break;
}
case AGRIPEL:
{
if (st.hasQuestItems(CROSS_OF_EINHASAD) && st.isCond(6))
{
st.set("AGRIPEL", "1");
if ((st.getInt("AGRIPEL") == 1) && (st.getInt("DOMINIC") == 1) && (st.getInt("BENEDICT") == 1))
{
htmltext = "31348-03.html";
st.setCond(7);
}
else if ((st.getInt("DOMINIC") == 1) || (st.getInt("BENEDICT") == 1))
{
htmltext = "31348-02.html";
}
else
{
htmltext = "31348-01.html";
}
}
else if (st.isCond(7))
{
htmltext = "31348-03.html";
}
break;
}
case BENEDICT:
{
if (st.hasQuestItems(CROSS_OF_EINHASAD) && st.isCond(6))
{
st.set("BENEDICT", "1");
if ((st.getInt("AGRIPEL") == 1) && (st.getInt("DOMINIC") == 1) && (st.getInt("BENEDICT") == 1))
{
htmltext = "31349-03.html";
st.setCond(7);
}
else if ((st.getInt("AGRIPEL") == 1) || (st.getInt("DOMINIC") == 1))
{
htmltext = "31349-02.html";
}
else
{
htmltext = "31349-01.html";
}
}
else if (st.isCond(7))
{
htmltext = "31349-03.html";
}
break;
}
case DOMINIC:
{
if (st.hasQuestItems(CROSS_OF_EINHASAD) && st.isCond(6))
{
st.set("DOMINIC", "1");
if ((st.getInt("AGRIPEL") == 1) && (st.getInt("DOMINIC") == 1) && (st.getInt("BENEDICT") == 1))
{
htmltext = "31350-03.html";
st.setCond(7);
}
else if ((st.getInt("AGRIPEL") == 1) || (st.getInt("BENEDICT") == 1))
{
htmltext = "31350-02.html";
}
else
{
htmltext = "31350-01.html";
}
}
else if (st.isCond(7))
{
htmltext = "31350-03.html";
}
break;
}
case INNOCENTIN:
{
if (st.isCond(7) && st.hasQuestItems(CROSS_OF_EINHASAD))
{
htmltext = "31328-01.html";
}
else if (st.isCompleted())
{
st = player.getQuestState("22_TragedyInVonHellmanForest");
if (st == null)
{
htmltext = "31328-06.html";
}
}
break;
}
}
}
return htmltext;
}
@Override
public String onSeeCreature(L2Npc npc, L2Character creature, boolean isSummon)
{
if (creature.isPlayer())
{
playSound((L2PcInstance) creature, QuestSound.HORROR_01);
}
return super.onSeeCreature(npc, creature, isSummon);
}
@Override
public void onRouteFinished(L2Npc npc)
{
final QuestState st = L2World.getInstance().getPlayer(npc.getScriptValue()).getQuestState(getName());
if (st != null)
{
st.startQuestTimer("DESPAWN", 15000, npc);
MOVE_ENDED = true;
}
}
}