Possessor of a Precious Soul - 1
- ID
- 241
- Название
- Possessor of a Precious Soul - 1
- start_npcs_json
- [31739]
- npc_ids_json
- [20244,20245,21508,21509,21510,21511,21512,27113,30692,30753,30754,31042,31272,31336,31739,31740,31742,31743,31744]
- constants_json
- {"TALIEN":31739,"GABRIELLE":30753,"GILMORE":30754,"KANTABILON":31042,"STEDMIEL":30692,"VIRGIL":31742,"OGMAR":31744,"RAHORAKTI":31336,"KASSANDRA":31743,"CARADINE":31740,"NOEL":31272,"BARAHAM":27113,"MALRUK_SUCCUBUS":20244,"MALRUK_SUCCUBUS_TUREN":20245,"SPLINTER_STAKATO":21508,"SPLINTER_STAKATO_WALKER":21509,"SPLINTER_STAKATO_SOLDIER":21510,"SPLINTER_STAKATO_DRONE1":21511,"SPLINTER_STAKATO_DRONE2":21512,"LEGEND_OF_SEVENTEEN":7587,"MALRUK_SUCCUBUS_CLAW":7597,"ECHO_CRYSTAL":7589,"POETRY_BOOK":7588,"CRIMSON_MOSS":7598,"RAHORAKTIS_MEDICINE":7599,"LUNARGENT":6029,"HELLFIRE_OIL":6033,"VIRGILS_LETTER":7677,"CRIMSON_MOSS_CHANCE":30,"MALRUK_SUCCUBUS_CLAW_CHANCE":60}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00241_PossessorOfAPreciousSoul1/Q00241_PossessorOfAPreciousSoul1.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 20244 | Malruk Succubus | Нет | 55 |
| 20245 | Malruk Succubus Turen | Нет | 56 |
| 21508 | Splinter Stakato | Нет | 66 |
| 21509 | Splinter Stakato Worker | Нет | 67 |
| 21510 | Splinter Stakato Soldier | Нет | 68 |
| 21511 | Splinter Stakato Drone | Нет | 69 |
| 21512 | Splinter Stakato Drone | Нет | 70 |
| 27113 | Baraham | Нет | 36 |
| 30692 | Stedmiel | Нет | 70 |
| 30753 | Gabrielle | Нет | 70 |
| 30754 | Gilmore | Нет | 70 |
| 31042 | Kantabilon | Нет | 70 |
| 31272 | Noel | Нет | 70 |
| 31336 | Rahorakti | Нет | 70 |
| 31739 | Talien | Да | 70 |
| 31740 | Caradine | Нет | 70 |
| 31742 | Virgil | Нет | 70 |
| 31743 | Kassandra | Нет | 70 |
| 31744 | Ogmar | Нет | 70 |
Условия уровней: выражения из Java
if (!player.isSubClassActive() || (player.getLevel() < 50))
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, ECHO_CRYSTAL, 1); giveItems(player, POETRY_BOOK, 1); giveItems(player, RAHORAKTIS_MEDICINE, 1); giveItems(player, VIRGILS_LETTER, 1); addExpAndSp(player, 263043, 0); giveItems(partyMember, LEGEND_OF_SEVENTEEN, 1); giveItems(partyMember, MALRUK_SUCCUBUS_CLAW, 1); giveItems(partyMember, CRIMSON_MOSS, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30692-01.htm] Master Stedmiel: Hmm... Demon Beleth and the soldiers who fought against him... Ah! You mean that book of poetry! I'd almost forgotten about it! An ancient poet who wrote sonnets about ancient heroes... So, you're a collector? That's very meaningful work. Here, take it with you. "Thanks!"
[30692-02.htm] Master Stedmiel: I hope Talien's work bears fruit. Hearing the stories of old heroes will help people know their own ideals. Tell him I have great expectations!
[30692-03.htm] Master Stedmiel: Did you deliver the Poetry Book to Talien yet? This is the only copy, so be extra careful. Tell Talien I expect the best.
[30753-01.htm] Gabrielle: One of my ancestors participated in the Antharas conquest. People call them the Seventeen Nemeses of the Land Dragon. All I know is pieces of stories that I heard from my grandparents. There are many tales, and I don't know which is true. The poet may know, if you can get him to talk. "Who is he?"
[30753-02.htm] Gabrielle: I don't know if you met Gilmore, the Watchman of the Land Dragon Antharas. He's one of the Seventeen Nemeses. He sacrificed himself and became undead to monitor Antharas' movements in the Dragon Valley and to protect the seal made by the Founding Emperor Shunaiman. He would know what happened, he was there. It's dangerous, so watch yourself!
[30753-03.htm] Gabrielle: Go to the entrance of the Dragon Valley and meet Gilmore, the watchman of the Land Dragon Antharas. Since he was there, he must know the story.
[30754-01.htm] Antharas Watchman Gilmore: There is someone who's still looking for the old stories. Well, they happened such a long time ago, but I can never forget them. However, I am walking down the road of swords and watching the Land Dragon. I'm not a storyteller or poet like Talien. Wasn't there anyone who recorded the event at the time?
[30754-02.htm] Antharas Watchman Gilmore: Of the seventeen of us, the Elf Witch Baraham was best at telling stories and keeping records. She kept journals even during our difficult travels. She can tell you where to find what Talien is looking for. One problem remains, she has turned into an evil creature and can't tell the stories anymore. She's the only one who knows what really happened, and it's heart-breaking. There is hope yet. She still has the records. Find her in a cave in the Bee Hive area and take them from her. That's all I know. Good luck!
[30754-03.htm] Antharas Watchman Gilmore: Baraham is now an evil creature living in a cave in the Bee Hive area. Find her and you'll find the records. Good luck!
[31042-01.htm] Kantabilon: I can't believe somebody still knows about the song! Yes, I have a crystal like that. It's my most cherished possession, but I will gladly give it to someone who appreciates it's value! There is one problem that must be solved first, otherwise taking the crystal won't help you. "What can I do to help?"
[31042-02.htm] Kantabilon: The Echo Crystal is a fragile object and is easily broken. This one is worn out after so many years, and needs to be restored. It's delicate work requiring specialized tools. I'll need the long and sturdy claws of Malruk succubi from the Dragon Valley. Bring me ten sharp claws. Make sure they are in excellent condition!
[31042-03.htm] Kantabilon: I need the claws of Malruk Succubi to mend this Echo Crystal. I can't repair it without the proper tools. Go to the Dragon Valley to get the claws for me. I need at least 10 of them.
[31042-04.htm] Kantabilon: These are perfect. I'll start working on it right away. It shouldn't take very long. Wait
[31042-05.htm] Kantabilon: Now it will make the proper sound! Take it to Talien, your poet friend. I don't need you to reimburse me. I'd rather see the crystal being used for a worthy purpose than sitting in this dusty warehouse. Now hurry!
[31042-06.htm] Kantabilon: Take the Echo Crystal and go back to your poet friend.
[31272-01.htm] Head Blacksmith Noel: Not just anybody can restore weapons of the old Empire, what makes you think you can help me? I can't even entrust Hilda or Feynn with the job! Well, Caradine does think highly of you. "I can help."
[31272-02.htm] Head Blacksmith Noel: OK, I'll give you the job. We need about five units of Lunargent, and a bottle of Hellfire Oil. Meet Magic Trader Wesley in the Ivory Tower. He'll tell you where to find them, or maybe you could get them from other Adventurers.
[31272-03.htm] Head Blacksmith Noel: You came back empty-handed? Hurry up and get five units of Lunargent and a bottle of Hellfire Oil!
[31272-04.htm] Head Blacksmith Noel: That took a while, but you did it. I have something to tell you. Listen
[31272-05.htm] Head Blacksmith Noel: Caradine wants to see you as soon as possible. You should go now.
[31272-06.htm] Head Blacksmith Noel: Didn't I tell you? Caradine was urgently looking for you. Hurry up and go see her!
[31272-07.htm] Head Blacksmith Noel: Huh? A moment ago, I thought I had five Lunargents and Hellfire Oil. What happened?
[31336-01.htm] Grand Seer Rahorakti: Welcome. Are you the one Kassandra was talking about? She's the girl with the nightmares. To prepare medicine for her I need a very rare herb. Will you help me save her? "I'll help."
[31336-02.htm] Grand Seer Rahorakti: Excellent! I need a very rare herb called Crimson Moss that can only be gathered once a year. I can tell you an easy way to get it, however. Go to the Swamp of Screams east of here and kill the Splinter Stakatos. Cut them open and you'll find the herb! I must have five units of it. May the Star of Destiny guide your path!
[31336-03.htm] Grand Seer Rahorakti: Should the one who holds the Star of Destiny really be doing favors for someone else? Go to the Swamp of Screams and get five units of Crimson Moss by killing Splinter Stakatos and cutting them open.
[31336-04.htm] Grand Seer Rahorakti: Now I can make a drug to control evil dream spirits and restore her vitality! It won't take long. Wait
[31336-05.htm] Grand Seer Rahorakti: Take this to the dreaming girl now. With Pa'agrio's blessing she will fulfill her important destiny, harsh as it may be. Keep her safe!
[31336-06.htm] Grand Seer Rahorakti: Take the medicine that I, Rahorakti, made you, to the dreaming girl of flame, Kassandra.
[31739-01.htm] Talien: Do you know the story of the seventeen heroes who challenged the Land Dragon Antharas? It's fascinating! Such a heroic sacrifice! It could be an epic poem! In fact, it's one of my all-time favorite stories! It's what motivated me to become a bohemian poet! It's always been my dream to write a great epic poem tying all the pieces of this story together. Unfortunately, I only know a few fragments of it that I heard from my grandfather. I'm trying to collect everything I can about this story. I'm looking for someone who can help me. Will you do it? "I'll help you."
[31739-02.htm] Talien: Do you know the story of the seventeen heroes who challenged the Land Dragon Antharas? It's fascinating! Such a heroic sacrifice! It could be an epic poem! In fact, it's one of my all-time favorite stories! It's what motivated me to become a bohemian poet! It's always been my dream to write a great epic poem tying all the pieces of this story together. Unfortunately, I only know a few fragments of it that I heard from my grandfather. I'm trying to collect everything I can about this story. I'm looking for someone who can help me. Good help is so hard to find these days. (This quest may only be undertaken by a sub-classed character of level 50 and above.)
[31739-03.htm] Talien: Awesome! Thank you! Now, where should we begin? I suppose we should speak to the ones who know the story best. A descendant of one of the seventeen heroes is living in Giran Castle Town. Her name is Gabrielle. I couldn't even think of visiting her, since I'd have to cross the Death Pass. Would you visit her on my behalf? She probably has literature or materials related to her ancestor!
[31739-04.htm] Talien: Why haven't you left yet? Do I need to remind you how important this is? Visit Gabrielle in Giran Castle Town and ask her to tell you the story of the seventeen heroes.
[31739-05.htm] Talien: Why have you returned without the story of Antharas? You must have gotten close! Try again.
[31739-06.htm] Talien: Come in! Is this the record? Great job! The record of the seventeen heroes who confronted the Land Dragon! This is truly fascinating! Now I can write all about the story! What remarkable people! If only they could've survived their heroic encounter with Antharas! What dreams they must have had! That brings me to my point... I still need to gather much more information. Will you help me a little bit more? "I'll do it."
[31739-07.htm] Talien: Have you heard the song about King Raul and the 5 clan members who helped him to unify the kingdom? Everyone in Aden knows that one! I'm afraid many of the details have been lost to history. It was a beautiful song, sung by the bards in the time of King Raul. Now it's been forgotten. I've heard that a Dwarven artisan in Heine has captured the song in an Echo Crystal. He's known as a Melody Maestro. Find him and bring me the crystal. It will be a great help.
[31739-08.htm] Talien: Bring me the Echo Crystal that contains the song about King Raul and the 5 clan members. A Dwarven artisan in Heine known as the Melody Maestro has the crystal. Please do this for me.
[31739-09.htm] Talien: Welcome back! I've been reading the records you gave me and I found something very interesting! The stories all have something in common. They all met the Lady of the Lake and came across the Star of Destiny. Is this the Echo Crystal that contains the Forgotten Song? Great job! We can only listen to it once. We can create a musical score if we take this to my friend, Barbado. Will you continue to help me? "I'll do it."
[31739-10.htm] Talien: This last story is about the heroes who confronted the devil Beleth. A poet recorded those terrible events in shocking detail. The record is kept by an Elf named Stedmiel in Hunters Village. Go there and ask him for it.
[31739-11.htm] Talien: Like I told you last time, go meet Stedmiel in Hunters Village, and ask him about the records of the story about soldiers who fought against Devil Beleth.
[31739-12.htm] Talien: Is this the book? Great job! I'm sorry I didn't recognize you! Why didn't you say something? I never imagined I was making someone of your stature run errands for me! I've heard all about you! Please forgive me if I offended you! Somebody wants to meet you. Will you meet him? "OK."
[31739-13.htm] Talien: Virgil in Rune Castle Town is a very important supporter of our cause. He wants to meet you.
[31739-14.htm] Talien: Ah, you haven't left yet. My sponsor Virgil is in Rune Castle Town now. Go meet him there.
[31740-01.htm] Caradine: Divine grace has brought you here to help us finish our work! The Lady of the Lake would never forsake us. I'm honored to meet you! "I'll help you."
[31740-02.htm] Caradine: Our goals are to reinstate the Grand Olympiad from the forgotten age of the giants, to raise obelisks dedicated to heroes in each village and to restore the forgotten knowledge and culture of the past. Head Blacksmith Noel has been a great help in crafting the ancient weapons that are prepared for the heroes of the new generation. But lately, I think he has been having difficulty crafting the ancient weapons. He may need the help of a skilled person like you. Please go see Head Blacksmith Noel for your assignment.
[31740-03.htm] Caradine: Go and help Noel. He runs the Blacksmith Shop.
[31740-04.htm] Caradine: Good to see you! Thank you for helping us. We've been trying to find you since we received this letter from Virgil, addressed to you. "Let me see the letter."
[31740-05.htm] Caradine: Virgil's in trouble! Go to him immediately!
[31742-01.htm] Virgil: I've been waiting for you. You've undertaken the trial as the ranking guild member, and helped Reorin save his wife's soul and restore his reputation. You don't have to live the life of a criminal anymore. Drinking Mimir's Elixir allows you to create your own destiny. It was no coincidence that Talien met you. It all matches my granddaughter's dream! "What dream?"
[31742-02.htm] Virgil: My granddaughter Kassandra suffers from a grave illness. She was always weak, but her nightmares are robbing her of what little strength she has left. She was born with a special gift to foresee the future in her dreams. Ogmar thinks you might be able to help, so I asked you to come. He knows all the details, talk to him.
[31742-03.htm] Virgil: Kassandra's nightmare has some important details concerning you. Ogmar knows the story, talk to him.
[31742-04.htm] Virgil: I knew you could do it! She looks better already. Thank you. I don't know how to tell you, but there's someone who worships the Lady of the Lake who wants to see you. Do you want to meet her? "Yes."
[31742-05.htm] Virgil: Look for an Elf named Caradine in Goddard Castle Town. She's the daughter of the family that worships the Lady of the Lake. Go see her.
[31742-06.htm] Virgil: Go to Goddard Castle Town and meet Caradine.
[31743-01.htm] Kassandra: What is this...? Oh, it smells rancid! No way I'll take that! "But you must!"
[31743-02.htm] Kassandra: Eww! It's bitter. I think my headache is going away! My grandpa wants you to go see him.
[31743-03.htm] Kassandra: My grandfather wants to see you right now! Hurry up!
[31744-01.htm] Ogmar: Kassandra is my friend Virgil's child. I saw the Grand Seer about her once, he said her nightmares are depleting her strength. He can make the drug to cure her! "Where is he?"
[31744-02.htm] Ogmar: You'll find Grand Seer Rahorakti in the Sage's Library in the basement of this building.
[31744-03.htm] Ogmar: The Sage's Library is under this building. Find Grand Seer Rahorakti there.
Исходник условий и наград (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.Q00241_PossessorOfAPreciousSoul1;
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.QuestSound;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00241_PossessorOfAPreciousSoul1 extends Quest
{
// NPCs
private static final int TALIEN = 31739;
private static final int GABRIELLE = 30753;
private static final int GILMORE = 30754;
private static final int KANTABILON = 31042;
private static final int STEDMIEL = 30692;
private static final int VIRGIL = 31742;
private static final int OGMAR = 31744;
private static final int RAHORAKTI = 31336;
private static final int KASSANDRA = 31743;
private static final int CARADINE = 31740;
private static final int NOEL = 31272;
// Monsters
private static final int BARAHAM = 27113;
private static final int MALRUK_SUCCUBUS = 20244;
private static final int MALRUK_SUCCUBUS_TUREN = 20245;
private static final int SPLINTER_STAKATO = 21508;
private static final int SPLINTER_STAKATO_WALKER = 21509;
private static final int SPLINTER_STAKATO_SOLDIER = 21510;
private static final int SPLINTER_STAKATO_DRONE1 = 21511;
private static final int SPLINTER_STAKATO_DRONE2 = 21512;
// Items
private static final int LEGEND_OF_SEVENTEEN = 7587;
private static final int MALRUK_SUCCUBUS_CLAW = 7597;
private static final int ECHO_CRYSTAL = 7589;
private static final int POETRY_BOOK = 7588;
private static final int CRIMSON_MOSS = 7598;
private static final int RAHORAKTIS_MEDICINE = 7599;
private static final int LUNARGENT = 6029;
private static final int HELLFIRE_OIL = 6033;
private static final int VIRGILS_LETTER = 7677;
// Rewards
private static final int CRIMSON_MOSS_CHANCE = 30;
private static final int MALRUK_SUCCUBUS_CLAW_CHANCE = 60;
public Q00241_PossessorOfAPreciousSoul1()
{
super(241, "Possessor of a Precious Soul - 1");
_questItemIds = new int[]
{
LEGEND_OF_SEVENTEEN,
MALRUK_SUCCUBUS_CLAW,
ECHO_CRYSTAL,
POETRY_BOOK,
CRIMSON_MOSS,
RAHORAKTIS_MEDICINE
};
addStartNpc(TALIEN);
addTalkId(TALIEN, GABRIELLE, GILMORE, KANTABILON, STEDMIEL, VIRGIL, OGMAR, RAHORAKTI, KASSANDRA, CARADINE, NOEL);
addKillId(BARAHAM, MALRUK_SUCCUBUS, MALRUK_SUCCUBUS_TUREN, SPLINTER_STAKATO, SPLINTER_STAKATO_WALKER, SPLINTER_STAKATO_SOLDIER, SPLINTER_STAKATO_DRONE1, SPLINTER_STAKATO_DRONE2);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = player.getQuestState(getName());
if (st == null)
{
return htmltext;
}
// Talien
if (event.equalsIgnoreCase("31739-03.htm"))
{
st.startQuest();
}
else if (event.equalsIgnoreCase("31739-07.htm"))
{
st.setCond(5);
takeItems(player, LEGEND_OF_SEVENTEEN, 1);
}
else if (event.equalsIgnoreCase("31739-10.htm"))
{
st.setCond(9);
takeItems(player, ECHO_CRYSTAL, 1);
}
else if (event.equalsIgnoreCase("31739-13.htm"))
{
st.setCond(11);
takeItems(player, POETRY_BOOK, 1);
}
// Gabrielle
else if (event.equalsIgnoreCase("30753-02.htm"))
{
st.setCond(2);
}
// Gilmore
else if (event.equalsIgnoreCase("30754-02.htm"))
{
st.setCond(3);
}
// Kantabilon
else if (event.equalsIgnoreCase("31042-02.htm"))
{
st.setCond(6);
}
else if (event.equalsIgnoreCase("31042-05.htm"))
{
st.setCond(8);
takeItems(player, MALRUK_SUCCUBUS_CLAW, 10);
giveItems(player, ECHO_CRYSTAL, 1);
}
// Stedmiel
else if (event.equalsIgnoreCase("30692-02.htm"))
{
st.setCond(10);
giveItems(player, POETRY_BOOK, 1);
}
// Virgil
else if (event.equalsIgnoreCase("31742-02.htm"))
{
st.setCond(12);
}
else if (event.equalsIgnoreCase("31742-05.htm"))
{
st.setCond(18);
}
// Ogmar
else if (event.equalsIgnoreCase("31744-02.htm"))
{
st.setCond(13);
}
// Rahorakti
else if (event.equalsIgnoreCase("31336-02.htm"))
{
st.setCond(14);
}
else if (event.equalsIgnoreCase("31336-05.htm"))
{
st.setCond(16);
takeItems(player, CRIMSON_MOSS, 5);
giveItems(player, RAHORAKTIS_MEDICINE, 1);
}
// Kassandra
else if (event.equalsIgnoreCase("31743-02.htm"))
{
st.setCond(17);
takeItems(player, RAHORAKTIS_MEDICINE, 1);
}
// Caradine
else if (event.equalsIgnoreCase("31740-02.htm"))
{
st.setCond(19);
}
else if (event.equalsIgnoreCase("31740-05.htm"))
{
giveItems(player, VIRGILS_LETTER, 1);
addExpAndSp(player, 263043, 0);
st.exitQuest(false);
}
// Noel
else if (event.equalsIgnoreCase("31272-02.htm"))
{
st.setCond(20);
}
else if (event.equalsIgnoreCase("31272-05.htm"))
{
if (hasQuestItems(player, HELLFIRE_OIL) && (getQuestItemsCount(player, LUNARGENT) >= 5))
{
takeItems(player, LUNARGENT, 5);
takeItems(player, HELLFIRE_OIL, 1);
st.setCond(21);
}
else
{
htmltext = "31272-07.htm";
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
case State.CREATED:
{
if (!player.isSubClassActive() || (player.getLevel() < 50))
{
htmltext = "31739-02.htm";
st.exitQuest(true);
}
else
{
htmltext = "31739-01.htm";
}
break;
}
case State.STARTED:
{
if (!player.isSubClassActive())
{
break;
}
final int cond = st.getCond();
switch (npc.getId())
{
case TALIEN:
{
if (cond == 1)
{
htmltext = "31739-04.htm";
}
else if ((cond == 2) || (cond == 3))
{
htmltext = "31739-05.htm";
}
else if (cond == 4)
{
htmltext = "31739-06.htm";
}
else if (cond == 5)
{
htmltext = "31739-08.htm";
}
else if (cond == 8)
{
htmltext = "31739-09.htm";
}
else if (cond == 9)
{
htmltext = "31739-11.htm";
}
else if (cond == 10)
{
htmltext = "31739-12.htm";
}
else if (cond == 11)
{
htmltext = "31739-14.htm";
}
break;
}
case GABRIELLE:
{
if (cond == 1)
{
htmltext = "30753-01.htm";
}
else if (cond == 2)
{
htmltext = "30753-03.htm";
}
break;
}
case GILMORE:
{
if (cond == 2)
{
htmltext = "30754-01.htm";
}
else if (cond == 3)
{
htmltext = "30754-03.htm";
}
break;
}
case KANTABILON:
{
if (cond == 5)
{
htmltext = "31042-01.htm";
}
else if (cond == 6)
{
htmltext = "31042-03.htm";
}
else if (cond == 7)
{
htmltext = "31042-04.htm";
}
else if (cond == 8)
{
htmltext = "31042-06.htm";
}
break;
}
case STEDMIEL:
{
if (cond == 9)
{
htmltext = "30692-01.htm";
}
else if (cond == 10)
{
htmltext = "30692-03.htm";
}
break;
}
case VIRGIL:
{
if (cond == 11)
{
htmltext = "31742-01.htm";
}
else if (cond == 12)
{
htmltext = "31742-03.htm";
}
else if (cond == 17)
{
htmltext = "31742-04.htm";
}
else if (cond == 18)
{
htmltext = "31742-06.htm";
}
break;
}
case OGMAR:
{
if (cond == 12)
{
htmltext = "31744-01.htm";
}
else if (cond == 13)
{
htmltext = "31744-03.htm";
}
break;
}
case RAHORAKTI:
{
if (cond == 13)
{
htmltext = "31336-01.htm";
}
else if (cond == 14)
{
htmltext = "31336-03.htm";
}
else if (cond == 15)
{
htmltext = "31336-04.htm";
}
else if (cond == 16)
{
htmltext = "31336-06.htm";
}
break;
}
case KASSANDRA:
{
if (cond == 16)
{
htmltext = "31743-01.htm";
}
else if (cond == 17)
{
htmltext = "31743-03.htm";
}
break;
}
case CARADINE:
{
if (cond == 18)
{
htmltext = "31740-01.htm";
}
else if (cond == 19)
{
htmltext = "31740-03.htm";
}
else if (cond == 21)
{
htmltext = "31740-04.htm";
}
break;
}
case NOEL:
{
if (cond == 19)
{
htmltext = "31272-01.htm";
}
else if (cond == 20)
{
if (hasQuestItems(player, HELLFIRE_OIL) && (getQuestItemsCount(player, LUNARGENT) >= 5))
{
htmltext = "31272-04.htm";
}
else
{
htmltext = "31272-03.htm";
}
}
else if (cond == 21)
{
htmltext = "31272-06.htm";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isSummon)
{
if (!player.isSubClassActive())
{
return;
}
final QuestState st;
final Player partyMember;
switch (npc.getId())
{
case BARAHAM:
{
partyMember = getRandomPartyMember(player, 3);
if (partyMember == null)
{
return;
}
st = partyMember.getQuestState(getName());
giveItems(partyMember, LEGEND_OF_SEVENTEEN, 1);
st.setCond(4, true);
break;
}
case MALRUK_SUCCUBUS:
case MALRUK_SUCCUBUS_TUREN:
{
partyMember = getRandomPartyMember(player, 6);
if (partyMember == null)
{
return;
}
st = partyMember.getQuestState(getName());
if ((MALRUK_SUCCUBUS_CLAW_CHANCE >= getRandom(100)) && (getQuestItemsCount(partyMember, MALRUK_SUCCUBUS_CLAW) < 10))
{
giveItems(partyMember, MALRUK_SUCCUBUS_CLAW, 1);
if (getQuestItemsCount(partyMember, MALRUK_SUCCUBUS_CLAW) == 10)
{
st.setCond(7, true);
}
else
{
playSound(partyMember, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case SPLINTER_STAKATO:
case SPLINTER_STAKATO_WALKER:
case SPLINTER_STAKATO_SOLDIER:
case SPLINTER_STAKATO_DRONE1:
case SPLINTER_STAKATO_DRONE2:
{
partyMember = getRandomPartyMember(player, 14);
if (partyMember == null)
{
return;
}
st = partyMember.getQuestState(getName());
if ((CRIMSON_MOSS_CHANCE >= getRandom(100)) && (getQuestItemsCount(partyMember, CRIMSON_MOSS) < 5))
{
giveItems(partyMember, CRIMSON_MOSS, 1);
if (getQuestItemsCount(partyMember, CRIMSON_MOSS) == 5)
{
st.setCond(15, true);
}
else
{
playSound(partyMember, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
}
}
}