Arrow of Vengeance
- ID
- 331
- Название
- Arrow of Vengeance
- start_npcs_json
- [30125]
- npc_ids_json
- []
- constants_json
- {"HARPY_FEATHER":1452,"MEDUSA_VENOM":1453,"WYRM_TOOTH":1454}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00331_ArrowOfVengeance/Q00331_ArrowOfVengeance.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 32) ? "30125-01.htm" : "30125-02.htm";
Выдача предметов, адены и опыта: выражения из Java
giveAdena(player, reward, true); giveItems(player, HARPY_FEATHER, 1); giveItems(player, MEDUSA_VENOM, 1); giveItems(player, WYRM_TOOTH, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30125-01.htm] Guard Belton: I lost my entire family to the dragon Antharas. Ten years ago, my mother and sister were killed when many of the villages in southern Giran were destroyed by Antharas, and three years ago, when a company was formed by the lord's orders to slay the dragon, my father and brother were drafted as soldiers and sent to Dragon Valley, where they met their death. I swore on the graves of my family that I would slay the great monster. Everyone tells me it is useless, but I will slay Antharas one day. Surely that is the only way my family's souls will be put to rest? I have prepared for revenge for the last year. I have sought the advice of many warriors, and researched documents related to dragons in the library of the Ivory Tower. The famous Dwarf Bounty Hunter Terrin Wyrmslayer, reknowned as a dragon hunter, was especially helpful with his advice. Eventually, I decided that the most effective weapon would be an arrow. For the last six months, I have daily sworn revenge as I created arrows that will kill Antharas. But because the materials for the arrows are hard to find, I often ask travelers like you to gather materials for me. I may have to ask you this favor sometime. (This quest may only be undertaken by a character of level 32 and above.)
[30125-02.htm] Guard Belton: I lost my entire family to the dragon Antharas. Ten years ago, my mother and sister were killed when many of the villages in southern Giran were destroyed by Antharas, and three years ago, when a company was formed by the lord's orders to slay the dragon, my father and brother were drafted as soldiers and sent to Dragon Valley, where they met their death. I swore on the graves of my family that I would slay the great monster. Everyone tells me it is useless, but I will slay Antharas one day. Surely that is the only way my family's souls will be put to rest? I have prepared for revenge for the last year. I have sought the advice of many Warriors, and researched documents related to dragons in the library of the Ivory Tower. The famous Dwarf Bounty Hunter Terrin Wyrmslayer, renowned as a dragon hunter, was especially helpful with his advice. Eventually, I decided that the most effective weapon would be an arrow. For the last six months, I have daily sworn revenge as I created arrows that will kill Antharas. But because the materials for the arrows are hard to find, I often ask travellers like you to gather materials for me. Can I ask you this favor? Say you will do the favor
[30125-03.htm] Guard Belton: I am not foolish enough to think that I can avenge the death of my family by myself. I have received the aid of many, and will continue to ask favors of those like yourself. The materials you must find for me are harpy's silver feathers, the teeth of the wyrm and the venom of a medusa. The Harpy's Feathers are used to make the fletching for the arrows, while the teeth of the wyrm will be made into arrowheads. They say that if one applies the poison of the medusa on the tip of the arrow and dries it properly, the poison will retain its effects for many years. As soon as you have obtained these three materials, bring them to me. I will give you a reward for each that you bring. I've inherited quite a fortune from my deceased parents, so don't worry about the reward. I have no use for inheritances whatsoever. Avenging my family is everything to me.
[30125-04.htm] Guard Belton: You've come back empty-handed. Did you not promise to bring me harpy's feathers, the teeth of the worm and the poison of the Medusa? As soon as you obtain these three materials, bring them to me. I will reward you for each that you bring back. I've inherited quite a fortune from my deceased parents, so don't worry about the reward. Please don't quit, help me. Say you will quit Say you will collect the materials
[30125-05.htm] Guard Belton: I'm feeling an exceptionally strong longing for my family today. But I cannot risk falling into my fancies and having my determination shaken or my will for revenge weakened. Every day as I make arrows, sharpen the teeth of the worms, and put feathers on my arrows, I think of my dead family. And as I apply the poison of the Medusa on the end of the arrowhead, I curse Antharas. Now, shall we take a look at the materials you have brought? Good. This should be enough material to make arrows for a few days. As promised, I will reward you according to the number of materials you have brought me. This should be enough, I presume? If you are not planning to leave any time soon, could you help me some more? I beg you! Say you will quit Say you will continue
[30125-06.htm] Guard Belton: I understand. This revenge is mine alone, anyway. I cannot rely on the kindness of others forever. Are you planning to leave again? Then I guess this is goodbye. But a person's future is not certain. Perhaps I may be the one to come to your aid later. Or I may be slain by Antharas without having fulfilled my revenge, and meet my family in the afterlife. The laws of the gods and of fate are truly mysterious.
[30125-07.htm] Guard Belton: Then please continue your efforts. I am certain that my revenge will be complete, thanks to those like you who have come to my aid. The gods control our fates, but I believe that if the will is strong enough and the conviction steadfast, the gods will be moved and allow one's fate to be reforged. One day I will surely shoot an arrow into the heart of Antharas!
Исходник условий и наград (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.Q00331_ArrowOfVengeance;
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 Q00331_ArrowOfVengeance extends Quest
{
// Items
private static final int HARPY_FEATHER = 1452;
private static final int MEDUSA_VENOM = 1453;
private static final int WYRM_TOOTH = 1454;
public Q00331_ArrowOfVengeance()
{
super(331, "Arrow of Vengeance");
registerQuestItems(HARPY_FEATHER, MEDUSA_VENOM, WYRM_TOOTH);
addStartNpc(30125); // Belton
addTalkId(30125);
addKillId(20145, 20158, 20176);
}
@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("30125-03.htm"))
{
st.startQuest();
}
else if (event.equals("30125-06.htm"))
{
st.exitQuest(true, true);
}
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() < 32) ? "30125-01.htm" : "30125-02.htm";
break;
}
case State.STARTED:
{
final int harpyFeather = getQuestItemsCount(player, HARPY_FEATHER);
final int medusaVenom = getQuestItemsCount(player, MEDUSA_VENOM);
final int wyrmTooth = getQuestItemsCount(player, WYRM_TOOTH);
if ((harpyFeather + medusaVenom + wyrmTooth) > 0)
{
htmltext = "30125-05.htm";
takeItems(player, HARPY_FEATHER, -1);
takeItems(player, MEDUSA_VENOM, -1);
takeItems(player, WYRM_TOOTH, -1);
int reward = (harpyFeather * 80) + (medusaVenom * 90) + (wyrmTooth * 100);
if ((harpyFeather + medusaVenom + wyrmTooth) > 10)
{
reward += 3100;
}
giveAdena(player, reward, true);
}
else
{
htmltext = "30125-04.htm";
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final QuestState st = getQuestState(player, false);
if ((st == null) || !st.isStarted())
{
return;
}
if (getRandomBoolean())
{
switch (npc.getId())
{
case 20145:
{
giveItems(player, HARPY_FEATHER, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
break;
}
case 20158:
{
giveItems(player, MEDUSA_VENOM, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
break;
}
case 20176:
{
giveItems(player, WYRM_TOOTH, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
break;
}
}
}
}
}