Hiding Behind the Truth
- ID
- 25
- Название
- Hiding Behind the Truth
- start_npcs_json
- [31349]
- npc_ids_json
- [27218,31348,31349,31522,31531,31532,31533,31534,31535,31536]
- constants_json
- {"AGRIPEL":31348,"BENEDICT":31349,"WIZARD":31522,"TOMBSTONE":31531,"LIDIA":31532,"BOOKSHELF":31533,"BOOKSHELF2":31534,"BOOKSHELF3":31535,"COFFIN":31536,"TRIOL":27218,"CONTRACT":7066,"DRESS":7155,"SUSPICIOUS_TOTEM":7156,"GEMSTONE_KEY":7157,"TOTEM_DOLL":7158}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00025_HidingBehindTheTruth/Q00025_HidingBehindTheTruth.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 27218 | Triol's Pawn | Нет | 65 |
| 31348 | Agripel | Нет | 70 |
| 31349 | Benedict | Да | 70 |
| 31522 | Mysterious Wizard | Нет | 70 |
| 31531 | Tombstone | Нет | 70 |
| 31532 | Maid of Lidia | Нет | 70 |
| 31533 | Broken Bookshelf | Нет | 70 |
| 31534 | Broken Bookshelf | Нет | 70 |
| 31535 | Broken Bookshelf | Нет | 70 |
| 31536 | Coffin | Нет | 70 |
Условия уровней: выражения из Java
if ((qs2.getState() == State.COMPLETED) && (player.getLevel() >= 66))
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, GEMSTONE_KEY, 1); giveItems(player, CONTRACT, 1); giveItems(player, 905, 2); giveItems(player, 874, 1); addExpAndSp(player, 572277, 53750); giveItems(player, 936, 1); giveItems(player, 874, 1); addExpAndSp(player, 572277, 53750); giveItems(player, SUSPICIOUS_TOTEM, 1); giveItems(player, DRESS, 1); giveItems(player, TOTEM_DOLL, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[31348-01.htm] High Priest Agripel: I've heard your story. That totem is precious to us. If you give it to me, I will tell you about anything you wish. In the name of our gods... "OK, I will!"
[31348-02.htm] High Priest Agripel: First, the totem! What can I help you with? "Tell me about the true nature of the doll."
[31348-03.htm] High Priest Agripel: This can't be of use to you, but since you asked, I'll tell you. As a sacred object it is a blessing to us, but can be used to cast a curse on others. "What about the god of your people?"
[31348-04.htm] High Priest Agripel: I see what your questions are leading to. We can't say out loud the name of our god here, but this much I can tell you. We're not followers of Einhasad! "Tell me about the key."
[31348-05.htm] High Priest Agripel: To tell you of the key I must know where you got the totem. Did you get it from a dark Magus? "Yes."
[31348-06.htm] High Priest Agripel: Since the dark Magus himself asked you for it, here's the key. You'd still better not use it yourself if you can help it. Take the key
[31348-07.htm] High Priest Agripel: Did that help? Take the key and return to the dark Magus. Your path is filled with peril, I would recommend against it.
[31348-08.htm] High Priest Agripel: Don't you have the key already? Take it back to the dark Magus. Your path is filled with peril, I would recommend against it.
[31348-09.htm] High Priest Agripel: You're back! I can't believe you fought the undead servant and returned alive! "Here's Triol's totem."
[31348-10.htm] High Priest Agripel: By the gods! You've slain the undead servant, who was created from the research on the magic of the necropolis! Did you read the Contract? I feel bad about the Hellmann family, but someone had to shake things up and create a gap for us to enter through! Nobody can stop us from infiltrating Elmore now! "I know what you did!"
[31348-11.htm] High Priest Agripel: What crime? Ha! The gap was small when we first got here, but we've become so important that Rune can no longer exist without us! We stopped the insurrection, punished the rebels and expelled the devil worshippers! What else? Lidia von Hellmann, the Lord of the Forest of the Dead, pledged everything she owns to our master! "That Contract is between a demon and a witch. You can't hold us responsible for anything in it!"
[31348-12.htm] High Priest Agripel: Don't be angry with me! No matter how much power a Mystic possesses, he can't fight the great powers that move this world. You know everything that happened in the Forest of the Dead. Perhaps you know something that I don't. You still can't do anything about it! Truth alone cannot change the balance of power! "Who massacred the Hellmann family?"
[31348-13.htm] High Priest Agripel: You were right on this. Our order, the Benandanti Cartel, has worked for a long time to take over this manor. The Hellmann's tragedy was an unfortunate by-product of our efforts. It's time for me to attend the worship service for Einhasad, the great god of light! Why don't you do what you want? "What is that?"
[31348-14.htm] What will you do? Meet with Lidia Meet with Hardin
[31348-15.htm] You want to meet Lidia?
[31348-16.htm] You want to meet Hardin?
[31348-17.htm] High Priest Agripel: Haven't you decided yet? Do you have something to say? You seem to be looking for someone! Are you going to report me to the Magus of the dark arts?
[31348-18.htm] High Priest Agripel: Haven't you decided yet? Do you have something to say? You seem to be looking for someone! Are you going to report me to the Lidia?
[31349-00.htm] Priest Benedict: What's your business here? (This quest may only be undertaken by a character who is of level 66 or above and has cleared the residents of the Forest of the Dead.)
[31349-01.htm] Priest Benedict: So, did you ever find Innocentin? He's probably a beggar by now. What brings you here? "I'm taking care of some business."
[31349-02.htm] Priest Benedict: What business could you have with me? Show him the totem
[31349-03.htm] Priest Benedict: Did you lose what you wanted to show me? You should be more careful!
[31349-04.htm] Priest Benedict: So, did you ever find Innocentin? He's probably a beggar by now. What's your business here? Show him the totem
[31349-05.htm] Priest Benedict: Where did you find such an ugly doll? By the gods, you should give it to me! "No!"
[31349-06.htm] Priest Benedict: You refuse? You could buy a nicer one at the blacksmith shop for 1000 adena. I'll buy it for 10,000! What do you say? "No!"
[31349-07.htm] Priest Benedict: What do you want for the doll? "Give me the key." "Tell me the true nature of the doll."
[31349-08.htm] Priest Benedict: I don't know what key you're talking about. "The dark Magus said I would find the key here."
[31349-09.htm] Priest Benedict: What dark Magus are you talking about? "If you play dumb, then I'm leaving."
[31349-10.htm] Priest Benedict: I can't help you. You should call on Agripel, he holds the highest position here.
[31522-01.htm] Mysterious Wizard: Without this, it will be hard to talk with them. Guard it well.
[31522-02.htm] Mysterious Wizard: Do you still have the totem I gave you? You'll need it to talk with the priests at the temple in the Rune Township.
[31522-03.htm] Mysterious Wizard: Did you get the key? Then you're ready to know the truth of what happened in the Forest of the Dead. It's hidden inside the forest. Find the lock for the key. Listen
[31522-04.htm] Mysterious Wizard: Find where the truth behind the history of this forest is hidden. Your Map will guide you. Look for the staff filled with gems. The one who recorded everything can tell you what is inside.
[31522-05.htm] Mysterious Wizard: Did you read the contract? You must have many questions. We'll talk of it when you know more. Ask the girl who's heard the name Nidrah, she knows of the contracts.
[31522-06.htm] Mysterious Wizard: You met the real Lidia? Was she normal? My hypothesis has been proved! You also took part in my experiment, so I'll tell you what you want to know. "Are you Hardin?"
[31522-07.htm] Mysterious Wizard: If I were Nidrah and Nidrah is... I don't want to say that name. We're both Mages of the dark arts, that's enough. Did I tell you about the red dress? Anyway, it doesn't matter whether or not I'm him. "What about the double contract?"
[31522-08.htm] Mysterious Wizard: She remembered too? Then Lidia's power will become weaker and her territory may be robbed by adventurers. Well, since she's immortal, maybe she won't challenge again. About the double contract... Listen
[31522-09.htm] Mysterious Wizard: I'm a victim too. Triol wanted to help the Hellmann family. If Hellmann had become king, it would start a war between Aden and Elmore, and we both would have profited. Our plan failed when the royal army invaded the forest and slaughtered the Hellmann family. "What did you do then?"
[31522-10.htm] Mysterious Wizard: I was preparing my magic. It's not easy to conjure an army without corpses, so I opened the door to the netherworld to steal the army of Shillen. While I was preparing, Lidia took Rose's corpse. You know the story from there. I conjured Triol, and Triol made Lidia the Lord of the Forest of the Dead. In the meantime, I started some experiments. "What experiments?"
[31522-11.htm] Mysterious Wizard: I separated her personality into two bodies, and figured the stronger would prey on the weaker. Well, it turned out a little different. The Lord still controls the forest with magic. At least my friend Loricom still has hope. He brought the Key of Seal from the place where the sun sets. He has a strange taste for women. "The place where the sun sets?"
[31522-12.htm] Mysterious Wizard: Some say it's the revolutionary army of dusk, but I don't care about such things. I'm interested in knowledge, not power and exploitation. If you're still angry, go to the temple of the Rune Township. Perhaps the holy relic...I mean the doll will help shed light on things.
[31522-13.htm] Mysterious Wizard: Show the relic of Triol to the bogus priests in the temple of the Rune Township. They're the ringleaders behind every tragedy. I'm guessing one of them killed Rose.
[31522-14.htm] Mysterious Wizard: Things didn't go as you planned? Justice alone doesn't solve everything. More important is the will to live. Whether you fight for or against them, your experience will influence your choice. Maybe you'll have to make that choice someday. Listen
[31522-15.htm] Mysterious Wizard: A group is only as strong as the individuals in it. Anyone can talk with the leader of a group, just like you're talking to me. Don't forget that. Lidia asked me to give you this as a token of thanks, and since you helped with my experiment, I have something for you as well. Use it well until it's time for you to decide.
[31522-16.htm] Mysterious Wizard: Things didn't go as you planned? Lidia... I mean the handmaiden, is looking for you. Wait for nightfall and find her.
[31531-01.htm] Tombstone: This is Rose's tombstone, but how can you be sure that she's really down there? Dig.
[31531-02.htm] Tombstone: The coffin is out of the tomb.
[31531-03.htm] Tombstone: The coffin is empty! Where is Rose's body?
[31532-01.htm] Maid of Lidia: May I read that piece of paper? "Of course."
[31532-02.htm] Maid of Lidia: This is the contract! "What does it say?"
[31532-03.htm] Maid of Lidia: This contract was made between the Devil Triol, Black Mystic Hardin and the Lord of the Forest of the Dead. Hardin! If you spell his name backwards...Of course! You look so pale! Are you okay?
[31532-04.htm] Maid of Lidia: Now I can remember... Why was I using the large room? ...The sound of fighting...I ran away... I was wearing the hairpin. ...Rose was wearing the red dress!! "Are you OK?"
[31532-05.htm] Maid of Lidia: DRESS...THE DRESS!.MY RED DRESS!.IT'S DISAPPEARED.WHAT'S GOING ON?.WHERE IS ROSE?.WHY AM I HERE?.DADDY I'M SCARED!...ROSE.ROSE PUT ON MY DRESS AND LEFT!.MY RED DRESS...PEOPLE ARE COMING!.NO!.DADDY YOU SHOULDN'T GO OUTSIDE!.WHERE'S NIDRAH?.SAVE MY FATHER!.YOU'RE A MYSTIC!.YOU CAN DO ANYTHING.SAVE MY FATHER!.NIDRAH!!...DON'T DIE ROSE!.ARE FATHER AND BROTHER DEAD TOO?.WHERE IS IT?.EVERYTHING IS IN THE RED DRESS!!.HELP!!!... ... "WAKE UP...! SNAP OUT OF IT!!"
[31532-06.htm] Maid of Lidia: When the contract was signed...Lidia...the red dress... I need to find the dress Rose wore!
[31532-07.htm] Maid of Lidia: This is it! The dress Rose was wearing! Now I remember... I'll tell you what I know, but... ...please...leave me alone for a minute.
[31532-08.htm] Maid of Lidia: I'll tell you, but please...leave me alone for a minute. "I'll wait."
[31532-09.htm] Maid of Lidia: ... "Wait!"
[31532-10.htm] Maid of Lidia: ... "Wait!"
[31532-11.htm] Maid of Lidia: Now I'll answer your questions as best I can. I'm grateful to have met you. "What about the dress?"
[31532-12.htm] Maid of Lidia: This dress is... It was Lidia's most treasured dress. She wore this red dress on special occasions with the Moon Face Flower hairpin. And on the day of the tragedy of Hellmann Forest... Rose, the maid of Lidia, wore it to divert attention from Lidia. "Why is Rose's grave empty?"
[31532-13.htm] Maid of Lidia: The dress deceived the attackers. Rose sacrificed herself for Lidia. "Why the fake grave?"
[31532-14.htm] Maid of Lidia: Lidia believes Rose is buried there. She signed the contract and became Lord of the Forest of the Dead because of Rose's sacrifice. "Tell me more about the contract."
[31532-15.htm] Maid of Lidia: Hardin, Triol and Lidia all had secret contracts before signing this one. I can only tell you about Lidia's. "What was it?"
[31532-16.htm] Maid of Lidia: Lidia signed a contract with Nidrah, that is, Hardin, to summon the devil Triol. She gave her life to Hardin, who then played a trick on her. "What trick?"
[31532-17.htm] Maid of Lidia: He took her memory and put it in another body. He gave only her knowledge and grievances to Triol, who used them to create the Lord of the Forest of Dead, Lidia von Hellmann. And the memory of Lidia was put in the corpse of the maid Rose who was the best friend of Lidia's. Rose was then resurrected as the first vampire when the Lord was created. To prevent her from remembering anything, the hairpin, dress and diary are hidden separately in the forest. To prevent Lidia von Hellmann from remembering anything. "So who are you?"
[31532-18.htm] Maid of Lidia: I am Lidia von Hellmann! I must have written the diary and the letter I gave you. My memory is incomplete and is being controlled by Hardin. I don't understand why Hardin would help me regain my memory now. Perhaps you should ask him about it.
[31532-19.htm] Maid of Lidia: I was hoping we would meet again. I forgot to tell you something very important. My body may be gone, but now I can live my own life and follow my own fate thanks to you. Hardin controlled the missing piece of my memory, but now it's complete. He no longer has any influence over me! I feel I got back my real self. For that I am eternally grateful. That's what I wanted to say. "You're welcome. I wish you the best!"
[31532-20.htm] Maid of Lidia: When I was younger I used to dream of a hero who would rescue me. I don't have anything valuable to reward you with, but please take this as a token of my undying gratitude.
[31532-21.htm] Maid of Lidia: A black magus is looking for you in the Forest of the Dead. I told him everything that's happened to me. Please meet with him.
[31533-01.htm] Broken Bookshelf: Several books are on the shelves. The locker on the bottom is secured with an old, rusty padlock. It should be easy to break. Break the lock.
[31533-02.htm] Broken Bookshelf: The locker contains a few old clippings. There's nothing of value here. It seems that what you're looking for isn't here.
[31534-01.htm] Broken Bookshelf: Several books are on the shelves. The locker on the bottom is secured with an old, rusty padlock. It should be easy to break. Break the lock.
[31534-02.htm] Broken Bookshelf: The locker contains a few old clippings. There's nothing of value here. It seems that what you're looking for isn't here.
[31535-01.htm] Broken Bookshelf: Several books are on the shelves. The locker on the bottom is secured with an old, rusty padlock. It should be easy to break. Break the lock.
[31535-02.htm] Broken Bookshelf: The locker contains a few old clippings. In the midst of the odds and ends, you notice something glittering with a golden light! Search for the source of the light.
[31535-03.htm] Broken Bookshelf: It's a small Gem Box! While examining it, you feel a murderous sensation roll over you!
[31535-04.htm] Broken Bookshelf: It's a small Gem Box! It's locked with a padlock bearing the mark of Rune Castle. Use a Gemstone Key.
[31535-05.htm] Broken Bookshelf: There's a piece of paper inside the box.
[31535-06.htm] Broken Bookshelf: There are a few books on the shelves and some odds and ends in the chest.
[31536-01.htm] Coffin: You pull a red dress from the otherwise empty coffin.
Исходник условий и наград (Java)
/*
* Copyright (c) 2013 L2jMobius
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package quests.Q00025_HidingBehindTheTruth;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
import org.l2jmobius.gameserver.network.enums.ChatType;
import quests.Q00024_InhabitantsOfTheForestOfTheDead.Q00024_InhabitantsOfTheForestOfTheDead;
/**
* @author Mobius
* @note Based on python script
*/
public class Q00025_HidingBehindTheTruth extends Quest
{
// NPCs
private static final int AGRIPEL = 31348;
private static final int BENEDICT = 31349;
private static final int WIZARD = 31522;
private static final int TOMBSTONE = 31531;
private static final int LIDIA = 31532;
private static final int BOOKSHELF = 31533;
private static final int BOOKSHELF2 = 31534;
private static final int BOOKSHELF3 = 31535;
private static final int COFFIN = 31536;
private static final int TRIOL = 27218;
// Items
private static final int CONTRACT = 7066;
private static final int DRESS = 7155;
private static final int SUSPICIOUS_TOTEM = 7156;
private static final int GEMSTONE_KEY = 7157;
private static final int TOTEM_DOLL = 7158;
public Q00025_HidingBehindTheTruth()
{
super(25, "Hiding Behind the Truth");
addStartNpc(BENEDICT);
addTalkId(AGRIPEL, BENEDICT, BOOKSHELF, BOOKSHELF2, BOOKSHELF3, WIZARD, LIDIA, TOMBSTONE, COFFIN);
addKillId(TRIOL);
registerQuestItems(SUSPICIOUS_TOTEM, GEMSTONE_KEY, TOTEM_DOLL, DRESS);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState qs = player.getQuestState(getName());
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "31349-02.htm":
{
qs.startQuest();
break;
}
case "31349-03.htm":
{
if (getQuestItemsCount(player, SUSPICIOUS_TOTEM) > 0)
{
htmltext = "31349-05.htm";
}
else
{
qs.setCond(2, true);
}
break;
}
case "31349-10.htm":
{
qs.setCond(4, true);
break;
}
case "31348-02.htm":
{
takeItems(player, SUSPICIOUS_TOTEM, -1);
break;
}
case "31348-07.htm":
{
qs.setCond(5, true);
giveItems(player, GEMSTONE_KEY, 1);
break;
}
case "31522-04.htm":
{
qs.setCond(6, true);
break;
}
case "31535-03.htm":
{
if (qs.getInt("step") == 0)
{
qs.set("step", "1");
final Npc triol = addSpawn(TRIOL, 59712, -47568, -2712, -1, false, 300000);
triol.broadcastSay(ChatType.GENERAL, "That box was sealed by my master. Don't touch it!");
triol.setRunning();
triol.asAttackable().addDamageHate(player, 0, 999);
triol.getAI().setIntentionAttack(player);
qs.setCond(7, true);
}
else if (qs.getInt("step") == 2)
{
htmltext = "31535-04.htm";
}
break;
}
case "31535-05.htm":
{
giveItems(player, CONTRACT, 1);
takeItems(player, GEMSTONE_KEY, -1);
qs.setCond(9, true);
break;
}
case "31532-02.htm":
{
takeItems(player, CONTRACT, -1);
break;
}
case "31532-06.htm":
{
qs.setCond(11, true);
break;
}
case "31531-02.htm":
{
qs.setCond(12, true);
addSpawn(COFFIN, 60104, -35820, -664, -1, false, 20000);
break;
}
case "31532-18.htm":
{
qs.setCond(15, true);
break;
}
case "31522-12.htm":
{
qs.setCond(16, true);
}
break;
case "31348-10.htm":
{
takeItems(player, TOTEM_DOLL, -1);
break;
}
case "31348-15.htm":
{
qs.setCond(17, true);
break;
}
case "31348-16.htm":
{
qs.setCond(18, true);
break;
}
case "31532-20.htm":
{
giveItems(player, 905, 2);
giveItems(player, 874, 1);
takeItems(player, 7063, -1);
addExpAndSp(player, 572277, 53750);
qs.unset("cond");
qs.exitQuest(true, true);
break;
}
case "31522-15.htm":
{
giveItems(player, 936, 1);
giveItems(player, 874, 1);
takeItems(player, 7063, -1);
addExpAndSp(player, 572277, 53750);
qs.unset("cond");
qs.exitQuest(true, true);
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
final int npcId = npc.getId();
final int id = qs.getState();
final int cond = qs.getCond();
if (id == State.COMPLETED)
{
htmltext = getAlreadyCompletedMsg(player);
}
else if (id == State.CREATED)
{
if (npcId == BENEDICT)
{
final QuestState qs2 = player.getQuestState(Q00024_InhabitantsOfTheForestOfTheDead.class.getSimpleName());
if (qs2 != null)
{
if ((qs2.getState() == State.COMPLETED) && (player.getLevel() >= 66))
{
htmltext = "31349-01.htm";
}
else
{
htmltext = "31349-00.htm";
}
}
}
}
else if (id == State.STARTED)
{
if (npcId == BENEDICT)
{
if (cond == 1)
{
htmltext = "31349-02.htm";
}
else if ((cond == 2) || (cond == 3))
{
htmltext = "31349-04.htm";
}
else if (cond == 4)
{
htmltext = "31349-10.htm";
}
}
else if (npcId == WIZARD)
{
if (cond == 2)
{
htmltext = "31522-01.htm";
qs.setCond(3, true);
giveItems(player, SUSPICIOUS_TOTEM, 1);
}
else if (cond == 3)
{
htmltext = "31522-02.htm";
}
else if (cond == 5)
{
htmltext = "31522-03.htm";
}
else if (cond == 6)
{
htmltext = "31522-04.htm";
}
else if (cond == 9)
{
htmltext = "31522-05.htm";
qs.setCond(10, true);
}
else if (cond == 10)
{
htmltext = "31522-05.htm";
}
else if (cond == 15)
{
htmltext = "31522-06.htm";
}
else if (cond == 16)
{
htmltext = "31522-13.htm";
}
else if (cond == 17)
{
htmltext = "31522-16.htm";
}
else if (cond == 18)
{
htmltext = "31522-14.htm";
}
}
else if (npcId == AGRIPEL)
{
if (cond == 4)
{
htmltext = "31348-01.htm";
}
else if (cond == 5)
{
htmltext = "31348-08.htm";
}
else if (cond == 16)
{
htmltext = "31348-09.htm";
}
else if (cond == 17)
{
htmltext = "31348-17.htm";
}
else if (cond == 18)
{
htmltext = "31348-18.htm";
}
}
else if (npcId == BOOKSHELF)
{
if (cond == 6)
{
htmltext = "31533-01.htm";
}
}
else if (npcId == BOOKSHELF2)
{
if (cond == 6)
{
htmltext = "31534-01.htm";
}
}
else if (npcId == BOOKSHELF3)
{
if ((cond >= 6) && (cond <= 8))
{
htmltext = "31535-01.htm";
}
else if (cond == 9)
{
htmltext = "31535-06.htm";
}
}
else if (npcId == LIDIA)
{
if (cond == 10)
{
htmltext = "31532-01.htm";
}
else if ((cond == 11) || (cond == 12))
{
htmltext = "31532-06.htm";
}
else if (cond == 13)
{
htmltext = "31532-07.htm";
qs.setCond(14);
takeItems(player, DRESS, -1);
}
else if (cond == 14)
{
htmltext = "31532-08.htm";
}
else if (cond == 15)
{
htmltext = "31532-18.htm";
}
else if (cond == 17)
{
htmltext = "31532-19.htm";
}
else if (cond == 18)
{
htmltext = "31532-21.htm";
}
}
else if (npcId == TOMBSTONE)
{
if ((cond == 11) || (cond == 12))
{
htmltext = "31531-01.htm";
}
else if (cond == 13)
{
htmltext = "31531-03.htm";
}
}
else if (npcId == COFFIN)
{
if (cond == 12)
{
htmltext = "31536-01.htm";
giveItems(player, DRESS, 1);
qs.setCond(13, true);
npc.deleteMe();
}
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final QuestState qs = getQuestState(player, false);
if ((qs == null) || !qs.isStarted())
{
return;
}
if (qs.isCond(7))
{
qs.setCond(8, true);
npc.broadcastSay(ChatType.GENERAL, "You've ended my immortal life! You've protected by the feudal lord, aren't you?");
giveItems(player, TOTEM_DOLL, 1);
qs.set("step", "2");
}
}
}