Dangerous Seduction
- ID
- 170
- Название
- Dangerous Seduction
- start_npcs_json
- [30305]
- npc_ids_json
- []
- constants_json
- {"NIGHTMARE_CRYSTAL":1046}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00170_DangerousSeduction/Q00170_DangerousSeduction.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
else if (player.getLevel() < 21)
Выдача предметов, адены и опыта: выражения из Java
giveAdena(player, 102680, true); giveItems(player, NIGHTMARE_CRYSTAL, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30305-00.htm] Tetrarch Vellior: Young stranger, do not try to delve too deeply into the affairs of our race. The darkness of the abyss hides terrifying secrets that cannot be handled by those who are not Dark Elves. (This quest may only be undertaken by a Dark Elven character.)
[30305-02.htm] Tetrarch Vellior: Have you ever suffered the pain of not being able to sleep? I have bad dreams every night these days. Every night a beautiful woman with fair skin white as snow and hair black as ebony comes to my side and places her blood-red lips near my ear, speaking horrendous and unspeakable things with a hissing voice like a snake that makes my insides burn ... The strangest thing is, when I wake up, I cannot remember any of the terrifying, chilling stories. This is the work of someone who wishes to send me nightmares and take over my mind, I am sure of it. I am going to use all the power that the great Gran Kain has granted me to find the culprit. As soon as that person's identity is exposed, my punishment will be swift and sure. I hope you can help me then ... (This quest may only be undertaken by a Dark Elven character of level 21 and above.)
[30305-03.htm] Tetrarch Vellior: Have you ever suffered the pain of not being able to sleep? I have lately been plagued every night by bad dreams. Every night a beautiful woman with fair skin white as snow and hair black as ebony comes to my side and places her blood-red lips near my ear, speaking horrendous and unspeakable things with a hissing voice like a snake that makes my insides burn ... The strangest thing is, when I wake up, I cannot remember any of her terrifying, chilling stories. I have called upon all of my magic knowledge, but I have yet to find out the identity of the culprit responsible for sending a devil into my dreams. But I have been able to find out the identity of the monster that appears in my nightmare. It is the succubus named Merkenis, who makes her home inside of the abandoned School of Dark Arts. I do not know what her purpose is, but I want to escape from this cursed nightmare as soon as I can. Won't you put an end to this spiteful monster for me? Say you will get rid of the nightmare for him
[30305-04.htm] Tetrarch Vellior: The deepest place within the ruins of the abandoned School of Dark Arts is where Merkenis, queen of the succubi, resides. Slay her and bring me proof, and I will reward you generously for your work. If you do not know the way to the School of Dark Arts, ask Sentry Kayleen. May the power of the great Gran Kain be with you always.
[30305-05.htm] Tetrarch Vellior: Please. Release me from this horrible nightmare which haunts me every night. Find Merkenis as soon as possible and get rid of her. She is hiding in the deepest place within the ruins of the School of Dark Arts. If you do not know the way to the School of Dark Arts, ask Sentry Kayleen.
[30305-06.htm] Tetrarch Vellior: So you have discovered that Merkenis has cast a nightmare spell on me using this Nightmare Crystal. Well done. Now I can rest peacefully without being haunted by nightmares ... This is all thanks to you! As promised, I will give you your reward. While you were gone fighting Merkenis, I found out that the culprit was Icarus, of the house of Hardin. So he dares to challenge me, under the protection of Hardin ... Long ago, I won a bet against Icarus and obtained a magic scroll dear to him. But he does not acknowledge defeat and troubles me with such petty nightmare spells in order to get his magic scroll back ... Now that I know the culprit, I will not stay silent ...
Исходник условий и наград (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.Q00170_DangerousSeduction;
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 Q00170_DangerousSeduction extends Quest
{
// Item
private static final int NIGHTMARE_CRYSTAL = 1046;
public Q00170_DangerousSeduction()
{
super(170, "Dangerous Seduction");
registerQuestItems(NIGHTMARE_CRYSTAL);
addStartNpc(30305); // Vellior
addTalkId(30305);
addKillId(27022); // Merkenis
}
@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("30305-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 = "30305-00.htm";
}
else if (player.getLevel() < 21)
{
htmltext = "30305-02.htm";
}
else
{
htmltext = "30305-03.htm";
}
break;
}
case State.STARTED:
{
if (hasQuestItems(player, NIGHTMARE_CRYSTAL))
{
htmltext = "30305-06.htm";
takeItems(player, NIGHTMARE_CRYSTAL, -1);
giveAdena(player, 102680, true);
st.exitQuest(false, true);
}
else
{
htmltext = "30305-05.htm";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isSummon)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1))
{
qs.setCond(2, true);
giveItems(player, NIGHTMARE_CRYSTAL, 1);
npc.broadcastSay(ChatType.NPC_GENERAL, "Send my soul to Lich King Icarus...");
}
}
}