Daimon the White-Eyed - Part 1
- ID
- 603
- Название
- Daimon the White-Eyed - Part 1
- start_npcs_json
- [31683]
- npc_ids_json
- [21297,21299,21304,31548,31549,31550,31551,31552,31683]
- constants_json
- {"EYE_OF_ARGOS":31683,"MYSTERIOUS_TABLET_1":31548,"MYSTERIOUS_TABLET_2":31549,"MYSTERIOUS_TABLET_3":31550,"MYSTERIOUS_TABLET_4":31551,"MYSTERIOUS_TABLET_5":31552,"CANYON_BANDERSNATCH_SLAVE":21297,"BUFFALO_SLAVE":21299,"GRENDEL_SLAVE":21304,"EVIL_SPIRIT_BEADS":7190,"BROKEN_CRYSTAL":7191,"UNFINISHED_SUMMON_CRYSTAL":7192}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00603_DaimonTheWhiteEyedPart1/Q00603_DaimonTheWhiteEyedPart1.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 21297 | Canyon Bandersnatch Slave | Нет | 71 |
| 21299 | Buffalo Slave | Нет | 72 |
| 21304 | Grendel Slave | Нет | 74 |
| 31548 | Mysterious Ancient Tablet | Нет | 70 |
| 31549 | Mysterious Ancient Tablet | Нет | 70 |
| 31550 | Mysterious Ancient Tablet | Нет | 70 |
| 31551 | Mysterious Ancient Tablet | Нет | 70 |
| 31552 | Mysterious Ancient Tablet | Нет | 70 |
| 31683 | Eye of Argos | Да | 70 |
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 73) ? "31683-02.htm" : "31683-01.htm";
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, UNFINISHED_SUMMON_CRYSTAL, 1); giveItems(player, BROKEN_CRYSTAL, 1); giveItems(player, BROKEN_CRYSTAL, 1); giveItems(player, BROKEN_CRYSTAL, 1); giveItems(player, BROKEN_CRYSTAL, 1); giveItems(player, BROKEN_CRYSTAL, 1); giveItems(partyMember, EVIL_SPIRIT_BEADS, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[31548-01.htm] Mysterious Ancient Tablet: Upon closer examination, you notice an inscription describing the exploits of the heroes who defeated Daimon the White-Eyed. Read the inscription
[31548-02.htm] Mysterious Ancient Tablet: Daimon the White-Eyed's most formidable weapon is his magical ability to instantly render his victim totally immobile! [Illegible text] As you turn to leave, you hear something fall from the tablet. Upon closer examination, it proves to be a fragment of a mysterious bead.
[31548-03.htm] Mysterious Ancient Tablet: You've already read the inscription. Find another tablet.
[31549-01.htm] Mysterious Ancient Tablet: Upon closer examination, you notice an inscription describing the exploits of the heroes who defeated Daimon the White-Eyed. Read the inscription
[31549-02.htm] Mysterious Ancient Tablet: "The knight's necklace shone brightly. His strength had sustained him thus far against the powerful magic of Daimon the White-Eyed, and sensing victory, he slowly raised his head. Suddenly, from behind him came..." [Illegible text] As you turn to leave, you hear something fall to the floor... Upon close examination, you see that it is a fragment of a mysterious bead.
[31549-03.htm] Mysterious Ancient Tablet: You've already read the inscription. Find another tablet.
[31550-01.htm] Mysterious Ancient Tablet: Upon closer examination, you notice an inscription describing the exploits of the heroes who defeated Daimon the White-Eyed. Read the inscription
[31550-02.htm] Mysterious Ancient Tablet: "Based upon the experiences of past adventurers, it's become clear that the time to deal with Daimon the White-Eyed is now. A direct attack doesn't seem like the best solution, however. We mustn't forget those three henchmen following him." [Illegible text] As you turn to leave, you hear something fall from the tablet. Upon close examination, you find that it is a fragment of a mysterious bead.
[31550-03.htm] Mysterious Ancient Tablet: You've already read the inscription. Find another tablet.
[31551-01.htm] Mysterious Ancient Tablet: Upon closer examination, you notice an inscription describing the exploits of the heroes who defeated Daimon the White-Eyed. Read the inscription
[31551-02.htm] Mysterious Ancient Tablet: "Yeah, those three henchmen pose a problem...", said the warrior with the spear. The mage replied, "I agree. Especially the one that keeps restoring Daimon! I'll deal with that rascal myself!" The Dwarf girl softly said, "Someone's going to have to deal with Daimon. Who can do that? None of us are any match for his powers, even if we use the bead of summoning perfectly!" [Illegible text] As you turn to leave, you hear something fall from the tablet. Upon close examination, you find that it's a fragment of a mysterious bead.
[31551-03.htm] Mysterious Ancient Tablet: You've already read the inscription. Find another tablet.
[31552-01.htm] Mysterious Ancient Tablet: Upon closer examination, you notice an inscription describing the exploits of the heroes who defeated Daimon the White-Eyed. Read the inscription
[31552-02.htm] Mysterious Ancient Tablet: The text describes the decisive battles against Daimon the White-Eyed. Past heroes used the bead of summoning to call out Daimon before he and his minions were ready. Now it all makes sense! You know how to defeat Daimon! As you stand thinking before the tablet, something falls to the ground.
[31552-03.htm] Mysterious Ancient Tablet: You've already read the inscription. Now that you've learned how to defeat Daimon the White-Eyed, go back to the Eye of Argos.
[31683-01.htm] Eye of Argos: Welcome, traveler! My eyes see justice, courage and wisdom within you! Our meeting is not mere coincidence, my brave young warrior! A trial awaits you. Will you accept the challenge? "I accept the challenge!"
[31683-02.htm] Eye of Argos: I'm waiting for an adventurer with adequate skills and courage. (This quest may only be undertaken by a character of level 73 and above.)
[31683-03.htm] Eye of Argos: Do you know about Daimon the White-Eyed? When Einhasad ripped Argos apart and scattered the pieces throughout the land, I became the bright side of Argos and Daimon became the dark side. Daimon has been expanding his powerbase, spreading his evil influence even further. He dreams of expanding his reach globally, but each time, his efforts have been thwarted by heroes like you! Now, his force is spreading and his henchmen are wandering about in this land. Will you take up the fight against this demonic scourge? First, you must study the methods that past heroes used to stop him. You'll find stone tablets describing their accomplishments in several parts of this region. Read them and report back to me what you learn.
[31683-04.htm] Eye of Argos: Have you read all the inscriptions on the tablets? Daimon clouds my memory so that I can't remember the things about him. Thus, the only ways to defeat him are recorded on the tablets. They are left here and there throughout this area. But, Daimon's forces must have been destroying them. You don't have much time, my hero!
[31683-05.htm] Eye of Argos: Oh, you came back! Did you find out how the heroes of the past defeated Daimon the White-Eyed? "Yes, I did."
[31683-06.htm] Eye of Argos: The bead of summoning? Ah, yes, I haven't forgotten about that one yet! Good job, my hero! Now, you must make a bead of summoning! It has the power to summon him from the darkness. You must obtain 200 thoughts of darkness from valley Bandersnatch slaves, Buffalo Slaves and Grendel Slaves and bring them to me.
[31683-07.htm] Eye of Argos: Where are the thoughts of darkness to make the bead to defeat Daimon of White Eye?
[31683-08.htm] Eye of Argos: I can feel his power growing every day! Have you collected enough thoughts of darkness to stop him? Could it be that he will prevail?
[31683-09.htm] Eye of Argos: Have you collected all the thoughts of darkness you need? "Here are the thoughts of darkness I've collected."
[31683-10.htm] Eye of Argos: You've created the vessel that will contain the power to draw him out. I shall put the voice to call him out in this thought of darkness. You, my hero, will you give me some time alone? I'll be ready shortly after. Come back to me then... I hope we're not too late!
[31683-11.htm] Eye of Argos: Where are the eyes of darkness you've collected?
Исходник условий и наград (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.Q00603_DaimonTheWhiteEyedPart1;
import java.util.HashMap;
import java.util.Map;
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 Q00603_DaimonTheWhiteEyedPart1 extends Quest
{
// NPCs
private static final int EYE_OF_ARGOS = 31683;
private static final int MYSTERIOUS_TABLET_1 = 31548;
private static final int MYSTERIOUS_TABLET_2 = 31549;
private static final int MYSTERIOUS_TABLET_3 = 31550;
private static final int MYSTERIOUS_TABLET_4 = 31551;
private static final int MYSTERIOUS_TABLET_5 = 31552;
// Monsters
private static final int CANYON_BANDERSNATCH_SLAVE = 21297;
private static final int BUFFALO_SLAVE = 21299;
private static final int GRENDEL_SLAVE = 21304;
// Items
private static final int EVIL_SPIRIT_BEADS = 7190;
private static final int BROKEN_CRYSTAL = 7191;
private static final int UNFINISHED_SUMMON_CRYSTAL = 7192;
// Drop chances
private static final Map<Integer, Integer> CHANCES = new HashMap<>();
static
{
CHANCES.put(CANYON_BANDERSNATCH_SLAVE, 500000);
CHANCES.put(BUFFALO_SLAVE, 519000);
CHANCES.put(GRENDEL_SLAVE, 673000);
}
public Q00603_DaimonTheWhiteEyedPart1()
{
super(603, "Daimon the White-Eyed - Part 1");
registerQuestItems(EVIL_SPIRIT_BEADS, BROKEN_CRYSTAL);
addStartNpc(EYE_OF_ARGOS);
addTalkId(EYE_OF_ARGOS, MYSTERIOUS_TABLET_1, MYSTERIOUS_TABLET_2, MYSTERIOUS_TABLET_3, MYSTERIOUS_TABLET_4, MYSTERIOUS_TABLET_5);
addKillId(BUFFALO_SLAVE, GRENDEL_SLAVE, CANYON_BANDERSNATCH_SLAVE);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
switch (event)
{
case "31683-03.htm":
{
st.startQuest();
break;
}
case "31683-06.htm":
{
if (getQuestItemsCount(player, BROKEN_CRYSTAL) > 4)
{
st.setCond(7, true);
takeItems(player, BROKEN_CRYSTAL, -1);
}
else
{
htmltext = "31683-07.htm";
}
break;
}
case "31683-10.htm":
{
if (getQuestItemsCount(player, EVIL_SPIRIT_BEADS) > 199)
{
takeItems(player, EVIL_SPIRIT_BEADS, -1);
giveItems(player, UNFINISHED_SUMMON_CRYSTAL, 1);
st.exitQuest(true, true);
}
else
{
st.setCond(7);
htmltext = "31683-11.htm";
}
break;
}
case "31548-02.htm":
{
st.setCond(2, true);
giveItems(player, BROKEN_CRYSTAL, 1);
break;
}
case "31549-02.htm":
{
st.setCond(3, true);
giveItems(player, BROKEN_CRYSTAL, 1);
break;
}
case "31550-02.htm":
{
st.setCond(4, true);
giveItems(player, BROKEN_CRYSTAL, 1);
break;
}
case "31551-02.htm":
{
st.setCond(5, true);
giveItems(player, BROKEN_CRYSTAL, 1);
break;
}
case "31552-02.htm":
{
st.setCond(6, true);
giveItems(player, BROKEN_CRYSTAL, 1);
break;
}
}
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:
{
htmltext = (player.getLevel() < 73) ? "31683-02.htm" : "31683-01.htm";
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case EYE_OF_ARGOS:
{
if (cond < 6)
{
htmltext = "31683-04.htm";
}
else if (cond == 6)
{
htmltext = "31683-05.htm";
}
else if (cond == 7)
{
htmltext = "31683-08.htm";
}
else if (cond == 8)
{
htmltext = "31683-09.htm";
}
break;
}
case MYSTERIOUS_TABLET_1:
{
if (cond == 1)
{
htmltext = "31548-01.htm";
}
else
{
htmltext = "31548-03.htm";
}
break;
}
case MYSTERIOUS_TABLET_2:
{
if (cond == 2)
{
htmltext = "31549-01.htm";
}
else if (cond > 2)
{
htmltext = "31549-03.htm";
}
break;
}
case MYSTERIOUS_TABLET_3:
{
if (cond == 3)
{
htmltext = "31550-01.htm";
}
else if (cond > 3)
{
htmltext = "31550-03.htm";
}
break;
}
case MYSTERIOUS_TABLET_4:
{
if (cond == 4)
{
htmltext = "31551-01.htm";
}
else if (cond > 4)
{
htmltext = "31551-03.htm";
}
break;
}
case MYSTERIOUS_TABLET_5:
{
if (cond == 5)
{
htmltext = "31552-01.htm";
}
else if (cond > 5)
{
htmltext = "31552-03.htm";
}
break;
}
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final Player partyMember = getRandomPartyMember(player, 7);
if (partyMember == null)
{
return;
}
final QuestState st = getQuestState(partyMember, false);
if (st == null)
{
return;
}
if (getRandom(1000000) < CHANCES.get(npc.getId()))
{
giveItems(partyMember, EVIL_SPIRIT_BEADS, 1);
if (getQuestItemsCount(partyMember, EVIL_SPIRIT_BEADS) < 200)
{
playSound(partyMember, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
else
{
st.setCond(8, true);
}
}
}
}