Blood Fiend
- ID
- 164
- Название
- Blood Fiend
- start_npcs_json
- [30149]
- npc_ids_json
- []
- constants_json
- {"KIRUNAK_SKULL":1044}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00164_BloodFiend/Q00164_BloodFiend.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
else if (player.getLevel() < 21)
Выдача предметов, адены и опыта: выражения из Java
giveAdena(player, 42130, true); giveItems(killer, KIRUNAK_SKULL, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30149-00.htm] Trader Creamees: Personally, I don't want to work with Dark Elves like you. If I think of what I lost to the race of darkness, I want to draw my sword and cut off your head this very moment. You may think me rude to say so, but that is my honest feeling. (Not available for Dark Elven characters.)
[30149-02.htm] Trader Creamees: Among the many battles with the Dark Elves, the fiercest battle took place in the Underground Fortress. The last battle between the two races happened there. The blood of the injured from both sides ran red on the floor of the fortress, and crows covered the skies. Suddenly, the gates of hell opened and the Drevanuls, devils from hell, spilled forth. The Dark Elven magicians, driven into a corner, had called upon these bloodthirsty devils. Hundreds of Elves and Dark Elves alike were cruelly slain in the Underground Fortress in a bloody, evil feast of insanity. Luckily I survived, but I still suffer from nightmares. One day, I will avenge the death of my brothers who died at the hands of the devils. (This quest may only be undertaken by any character, except Dark Elf, of level 21 and above.)
[30149-03.htm] Trader Creamees: Among the many battles with the Dark Elves, the fiercest battle took place in the Underground Fortress. The last battle between the two races happened there. The blood of the injured from both sides ran red on the floor of the fortress, and crows covered the skies. Suddenly, the gates of hell opened and the Drevanuls, devils from hell, spilled forth. The Dark Elven Mystics, driven into a corner, had called upon these bloodthirsty devils. Hundreds of Elves and Dark Elves alike were cruelly slain in the Underground Fortress in a bloody, evil feast of insanity. Luckily I survived, but I still suffer from nightmares. Can't you see that we must avenge the deaths of our brothers who fought to protect our home from the dark race, and died at the cruel hands of those devils? I have already retired and cannot go forth with a sword or staff ... But shouldn't a young, brave youth like yourself honor the sacrifice of your ancestors and avenge their deaths? Say you will avenge them
[30149-04.htm] Trader Creamees: The Drevanul devils that came through the gates of hell during the last battle still live in the ruins of the Underground Fortress. Their leader is the Drevanul Kirunak, also called the 'Blood Fiend'. Slay Kirunak and bring back his skull as proof of his death. Our revenge will then be complete. May the brilliance of Einhasad's will protect you. Do not hesitate to raise high the sword of revenge!
[30149-05.htm] Trader Creamees: In order to make our revenge complete, you must slay Kirunak, the leader of the Drevanuls. Please hurry and kill this monster. May the brilliance of Einhasad's will protect you. Do not hesitate to raise high the sword of revenge!
[30149-06.htm] Trader Creamees: The skull of the Blood Fiend Kirunak... if only this would wash away the sins of the past... Thank you. I'll compensate you as promised. And... I must make a confession. It was not the Dark Elven Mystics, but I that called forth Kirunak from hell during the last siege of the fortress. Originally I was an Elemental Summoner commanding the elements of nature, but I was swept up by the madness of battle and used forbidden sorcery to summon the devils. But I could not control the violence of the Drevanuls. They started to slay not only the Dark Elves, but also those of my race. I was seized with fear, and fled without ever looking back. You do not need to speak, I know. The sin of murdering hundreds of my kin will never be washed clean ... but with your help I sent the devils that I summoned back to the place they came from, and that is a great consolation to me. What can I say? I cannot expect to avoid your blame. But at least know this, that I have lived for more than three hundred years in painful regret.
Исходник условий и наград (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.Q00164_BloodFiend;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.entity.actor.enums.creature.Race;
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;
public class Q00164_BloodFiend extends Quest
{
// Item
private static final int KIRUNAK_SKULL = 1044;
public Q00164_BloodFiend()
{
super(164, "Blood Fiend");
registerQuestItems(KIRUNAK_SKULL);
addStartNpc(30149);
addTalkId(30149);
addKillId(27021);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
if (event.equals("30149-04.htm"))
{
st.startQuest();
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
switch (st.getState())
{
case State.CREATED:
{
if (player.getRace() == Race.DARK_ELF)
{
htmltext = "30149-00.htm";
}
else if (player.getLevel() < 21)
{
htmltext = "30149-02.htm";
}
else
{
htmltext = "30149-03.htm";
}
break;
}
case State.STARTED:
{
if (hasQuestItems(player, KIRUNAK_SKULL))
{
htmltext = "30149-06.htm";
takeItems(player, KIRUNAK_SKULL, 1);
giveAdena(player, 42130, true);
st.exitQuest(false, true);
}
else
{
htmltext = "30149-05.htm";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
npc.broadcastSay(ChatType.GENERAL, "I have fulfilled my contract with Trader Creamees.");
giveItems(killer, KIRUNAK_SKULL, 1);
qs.setCond(2, true);
}
}
}