Secret Meeting With Ketra Orcs
- ID
- 11
- Название
- Secret Meeting With Ketra Orcs
- start_npcs_json
- [31296]
- npc_ids_json
- [31256,31296,31371]
- constants_json
- {"CADMON":31296,"LEON":31256,"WAHKAN":31371,"MUNITIONS_BOX":7231}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/Q00011_SecretMeetingWithKetraOrcs.java
NPC квеста
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 74) ? "31296-02.htm" : "31296-01.htm";
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, MUNITIONS_BOX, 1); addExpAndSp(player, 79761, 0);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[31256-01.htm] Trader Leon: All right. Guard Cadmon sent you here, didn't he? I'm glad you made it here. A number of young men have tried to come here, but they all ran away even before they reached the Orc barracks. I've sustained a great loss. As you know, the Ketra Orcs are the most daring and ferocious tribe. They never lag behind in terms of body structure or strength. So those who are weak run away at the sight of those orcs, causing me a great deal of trouble. But since Cadmon sent you here and you seem to possess great skills, I guess I don't have to worry about that. The task is simple. Take this box of supplies to the Ketra Orc outpost and deliver them to Messenger Wahkan. It won't be difficult to find Wahkan since he's staying in the base center. Although it may be a little difficult to enter the base... "OK. Entrust me with the task."
[31256-02.htm] Trader Leon: Man, you are really a dependable person. Don't forget. You must take the box of supplies to Messenger Wahkan of Ketra at the Ketra Orc base.
[31256-03.htm] Trader Leon: What are you doing? Take the box of supplies I gave you to Messenger Wahkan of Ketra. You are already running late. Hurry. They're very bad-tempered.
[31296-01.htm] Guard Cadmon: Are you interested in the Ketra Orcs, stranger? Well, if you are, I can tell you an interesting story. Right now, the Ketra Orcs are hiring mercenaries! It's a great opportunity to get into their outpost under the pretext of delivering military supplies! Are you interested? "I'm interested!"
[31296-02.htm] Guard Cadmon: I appreciate your interest, but the Ketra Orcs are some dangerous characters! You wouldn't stand a chance against them! (This quest may only be undertaken by a character of level 74 and above.)
[31296-03.htm] Guard Cadmon: Good! Find Trader Leon at the weapons and armor shop. He'll give you the details. Basically, you're delivering goods to them. The next step is up to you. You will either gain their trust or become their enemy!
[31296-04.htm] Guard Cadmon: Find Trader Leon in the weapons and armor shop to deliver military supplies to the Ketra Orcs.
[31371-01.htm] Ketra's Messenger Wahkan: What brings you to the land of the Ketra, stranger? "Here are some military supplies."
[31371-02.htm] Ketra's Messenger Wahkan: Good job, stranger. Well, are you a mercenary? Will you fight alongside the Ketra Orcs?
Исходник условий и наград (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.Q00011_SecretMeetingWithKetraOrcs;
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.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00011_SecretMeetingWithKetraOrcs extends Quest
{
// NPCs
private static final int CADMON = 31296;
private static final int LEON = 31256;
private static final int WAHKAN = 31371;
// Items
private static final int MUNITIONS_BOX = 7231;
public Q00011_SecretMeetingWithKetraOrcs()
{
super(11, "Secret Meeting With Ketra Orcs");
registerQuestItems(MUNITIONS_BOX);
addStartNpc(CADMON);
addTalkId(CADMON, LEON, WAHKAN);
}
@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 "31296-03.htm":
{
st.startQuest();
break;
}
case "31256-02.htm":
{
giveItems(player, MUNITIONS_BOX, 1);
st.setCond(2, true);
break;
}
case "31371-02.htm":
{
takeItems(player, MUNITIONS_BOX, 1);
addExpAndSp(player, 79761, 0);
st.exitQuest(false, true);
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() < 74) ? "31296-02.htm" : "31296-01.htm";
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case CADMON:
{
if (cond == 1)
{
htmltext = "31296-04.htm";
}
break;
}
case LEON:
{
if (cond == 1)
{
htmltext = "31256-01.htm";
}
else if (cond == 2)
{
htmltext = "31256-03.htm";
}
break;
}
case WAHKAN:
{
if (cond == 2)
{
htmltext = "31371-01.htm";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}