Collect Arrowheads
- ID
- 303
- Название
- Collect Arrowheads
- start_npcs_json
- [30029]
- npc_ids_json
- []
- constants_json
- {"ORCISH_ARROWHEAD":963}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00303_CollectArrowheads/Q00303_CollectArrowheads.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 10) ? "30029-01.htm" : "30029-02.htm";
Выдача предметов, адены и опыта: выражения из Java
giveAdena(player, 1000, true); addExpAndSp(player, 2000, 0); giveItems(player, ORCISH_ARROWHEAD, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30029-01.htm] Master Minia: When I was young, I had the opportunity to visit many places around the continent and experience different cultures. Perhaps it is because I am a Master who studies swordsmanship, but I was naturally drawn to the weapons of diverse races. That led to my hobby of collecting various rare weapons. These days, I am interested in the weapons of the Tunath orcs, who are natives of Talking Island. The orcs' weapons differ slightly according to region, but the orcs of this island were isolated for a long time from the mainland and that is probably why the shape of their weapons is very unique. For that reason, I would like to add the arrowhead of the Tunath orcs to my collection. It would be nice if you could later assist me in collecting arrowheads. (This quest may only be undertaken by a character of level 10 and above.)
[30029-02.htm] Master Minia: When I was young, I had the opportunity to visit many places around the continent and experience different cultures. Perhaps it is because I am a master who studies swordsmanship, but I was naturally drawn to the weapons of diverse races. That led to my hobby of collecting various rare weapons. These days, I am interested in the weapons of the Tunath orcs, who are natives of Talking Island. The orcs' weapons differ slightly according to region, but the orcs of this island were isolated for a long time from the mainland and that is probably why the shape of their weapons is very unique. For that reason, I would like to add the arrowhead of the Tunath orcs to my collection. If you have the time, could you collect Orcish Arrowheads for me? Of course, I will pay you for your services. Say you will take the task
[30029-03.htm] Master Minia: There are many orcs on Talking Island, but the Tunath orcs are at the Elven Ruins. You will be able to find arrowheads of Tunath orc marksmans. If you don't know how to find the ruins, ask Guard Kenyos. They are not merely for my private purposes, I plan to donate some to Sedrick's Training Hall for exhibition, so please bring back ten arrowheads.
[30029-04.htm] Master Minia: Please gather ten arrowheads used by the Tunath orc marksmans and bring them to me. I am not collecting them simply for my private purposes, but plan to donate some to Sedrick's Training Hall for exhibition. Tunath orcs are in the Elven Ruins. If you don't know how to go there, ask Guard Kenyos.
[30029-05.htm] Master Minia: Thank you very much. With this, I can now add Tunath orc arrowheads to my weapons collection list. I plan to donate about five to Sedrick's Training Hall for exhibition purposes. I will compensate you as promised. Please take this as a token of my thanks for your trouble.
Исходник условий и наград (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.Q00303_CollectArrowheads;
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 Q00303_CollectArrowheads extends Quest
{
// Item
private static final int ORCISH_ARROWHEAD = 963;
public Q00303_CollectArrowheads()
{
super(303, "Collect Arrowheads");
registerQuestItems(ORCISH_ARROWHEAD);
addStartNpc(30029); // Minia
addTalkId(30029);
addKillId(20361);
}
@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("30029-03.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:
{
htmltext = (player.getLevel() < 10) ? "30029-01.htm" : "30029-02.htm";
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = "30029-04.htm";
}
else
{
htmltext = "30029-05.htm";
takeItems(player, ORCISH_ARROWHEAD, -1);
giveAdena(player, 1000, true);
addExpAndSp(player, 2000, 0);
st.exitQuest(true, true);
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final QuestState st = getQuestState(player, false);
if ((st == null) || !st.isCond(1))
{
return;
}
if (getRandom(10) < 4)
{
giveItems(player, ORCISH_ARROWHEAD, 1);
if (getQuestItemsCount(player, ORCISH_ARROWHEAD) < 10)
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
else
{
st.setCond(2, true);
}
}
}
}