Long live the Pa'agrio Lord!
- ID
- 4
- Название
- Long live the Pa'agrio Lord!
- start_npcs_json
- [30578]
- npc_ids_json
- [30578]
- constants_json
- {"NAKUSIN":30578}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00004_LongLiveThePaagrioLord/Q00004_LongLiveThePaagrioLord.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 30578 | Nakusin | Да | 80 |
Условия уровней: выражения из Java
else if (player.getLevel() < 2)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, 4, 1); giveItems(player, i, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30559-01.htm] Trader Kunai: The Duda-Mara tribe is not vain or extravagant, and merely wishes for the health and well being of the Pa'agrio Lord with all our hearts. It's unbelievable, but they say that his healthy body has recently been seized by an illness. The elders of our tribe are very concerned, and offer him this mysterious medicine, spider dust, that cleanses the body and mind of all impurities! We hunted the great spiders that live high on the mountaintop and dried their legs in the sun, then finely ground them into a powder. Its fragrance has the mysterious power of purifying what is unclean!
[30559-02.htm] Trader Kunai: Why is the gift of our Duda-Mara tribe, which we sent as an expression of our concern for the Pa'agrio Lord, still in your hands! Go at once and deliver the spider dust that I asked you to deliver to Centurion Nakusin!
[30560-01.htm] Trader Uska: I represent the glorious Gandi tribe and offer this precious treasure to your lord! This is the skull of the late Lamakan, the great Seer of the Gandi, who was buried here three hundred years ago! The holy spirits of our ancestors contained within will ward off evil spirits and provide protection from the curses of our enemies and ill luck!
[30560-02.htm] Trader Uska: The treasure of the glorious Gandi tribe is a precious prize to which the trivial gifts of the other tribes cannot dare to compare! But why do you still have it! Do not spare a moment and deliver it to Centurion Nakusin!
[30562-01.htm] Warehouse Keeper Grookin: I, Grookin represent the Neruga and offer this precious gift to the Pa'agrio Lord! My tribe offers him the bloody axe. This ax is stained with the blood of many animals and encases their spirits, pulsating with strong spirits of life! It is said that merely possessing this on the body can defeat illness!
[30562-02.htm] Warehouse Keeper Grookin: I, Grookin, represented the Neruga and handed you a precious gift! But I have heard the Pa'agrio Lord had not received it yet! What is the meaning of this! Seek out Centurion Nakusin immediately, before you disgrace my tribe!
[30566-01.htm] Atuba Chief Varkees: The gift that the Atuba offer the Lord of Flame is this marvelous elixir! Born of the juice of the khandar plant and honey, this precious elixir has the power to cure all fevers and drive out ill spirits!
[30566-02.htm] Atuba Chief Varkees: Have you presented Atuba's gift to Centurion Nakusin! You must not be late! That would be a great insult to the Atuba in the presence of the Pa'agrio Lord!
[30578-00.htm] Centurion Nakusin: Dekara Lamchar Kakai! I have no time for talking to runts of other races! Go away! (This quest may only be undertaken by Orc characters.)
[30578-01.htm] Centurion Nakusin: Dekara Lamchar Kakai! Pa'agrio Lord Kakai, has not been well recently. The tribal elders have decided that each tribe should offer him something that is good for his health. Think of what you can do for the Pa'agrio Lord. (This quest may only be undertaken by an Orcish character of level 2 and above.)
[30578-02.htm] Centurion Nakusin: Dekara Lamchar Kakai! Kakai, the Pa'agrio Lord, has not been well recently. The tribal elders have decided that each tribe should offer him something that is good for his health . Meet the representatives of each tribe and bring back their gifts! Can you do it? Say you will do it
[30578-03.htm] Centurion Nakusin: I will recite the names of representatives that you have to meet. Listen carefully. I will not repeat this. Do you understand? Meet Tataru Zu Hestui of the dignified Hestui tribe! Meet Atuba Chief Varkees of the cold-hearted Atuba tribe! Meet Warehouse Keeper Grookin of the persistent Neruga tribe! Meet Gantaki Zu Urutu of the strong-willed Urutu tribe! Meet Trader Kunai of the resourceful Duda-Mara tribe! Meet Trader Uska of the merciless Gandi tribe! Receive all the gifts they offer to the lord and bring them back to me!
[30578-04.htm] Centurion Nakusin: Meet the representatives of each tribe and bring back their gifts! Don't tell me that you have forgotten what your task is? Say you forgot
[30578-05.htm] Centurion Nakusin: Fool! Where is your head! I will recite the names of representatives that you have to meet. Listen carefully. I will not repeat this again. Do you understand? Meet Tataru Zu Hestui of the dignified Hestui tribe! Meet Atuba Chief Varkees of the cold-hearted Atuba tribe! Meet Warehouse Keeper Grookin of the persistent Neruga tribe! Meet Gantaki Zu Urutu of the strong-willed Urutu tribe! Meet Trader Kunai of the resourceful Duda-Mara tribe! Meet Trader Uska of the merciless Gandi tribe! Receive all the gifts they offer to the lord and bring them back to me!
[30578-06.htm] Centurion Nakusin: Dekara Lamchar Kakai! As long as all the tribes stand united under the flag of our lord, the glory of our Orc Kingdom will never fade! I'm sure that you understand the importance of unity and loyalty to this mission. Treasure these two virtues throughout your life! Now, although this lesson is its own most valuable reward, I will grant you a small reward to thank you for working hard for our kingdom. Put it to good use.
[30585-01.htm] Tataru Zu Hestui: The gift that we Hestuis offer to the great Lord of the Flame is this bear fur cloak! This cloak keeps the body warm by keeping out the cold and preventing the loss of body heat!
[30585-02.htm] Tataru Zu Hestui: Hurry and take our gift to Centurion Nakusin! I do not want to hear that our gift arrived later than any of the other tribes! That must never happen!
[30587-01.htm] Gantaki Zu Urutu: We Urutus have decided to offer the lord a rare deep sea orb, a jewel that has been hard to find on the Immortal Plateau until now. This orb, brought out from the depths of the black seas of the west, is an object called a "pearl" by Humans! Those that carry this orb on their person gain the ability to see into the future. There is no better gift than this for the Pa'agrio Lord, leader of the Orcs!
[30587-02.htm] Gantaki Zu Urutu: Has the deep sea orb, which all of the Urutu tribe spent its efforts obtaining, been delivered to Nakusin, messenger of our lord and a member of the honored elite guards? I hear he is collecting gifts from all the tribes and will offer them to the lord, so hurry and deliver the deep sea orb to Centurion Nakusin as soon as possible!
Исходник условий и наград (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.Q00004_LongLiveThePaagrioLord;
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.entity.actor.enums.creature.Race;
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 Q00004_LongLiveThePaagrioLord extends Quest
{
private static final int NAKUSIN = 30578;
private static final Map<Integer, Integer> NPC_GIFTS = new HashMap<>();
static
{
NPC_GIFTS.put(30585, 1542);
NPC_GIFTS.put(30566, 1541);
NPC_GIFTS.put(30562, 1543);
NPC_GIFTS.put(30560, 1544);
NPC_GIFTS.put(30559, 1545);
NPC_GIFTS.put(30587, 1546);
}
public Q00004_LongLiveThePaagrioLord()
{
super(4, "Long live the Pa'agrio Lord!");
registerQuestItems(1541, 1542, 1543, 1544, 1545, 1546);
addStartNpc(30578); // Nakusin
addTalkId(30578, 30585, 30566, 30562, 30560, 30559, 30587);
}
@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("30578-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:
{
if (player.getRace() != Race.ORC)
{
htmltext = "30578-00.htm";
}
else if (player.getLevel() < 2)
{
htmltext = "30578-01.htm";
}
else
{
htmltext = "30578-02.htm";
}
break;
}
case State.STARTED:
{
final int cond = st.getCond();
final int npcId = npc.getId();
if (npcId == NAKUSIN)
{
if (cond == 1)
{
htmltext = "30578-04.htm";
}
else if (cond == 2)
{
htmltext = "30578-06.htm";
giveItems(player, 4, 1);
for (int item : NPC_GIFTS.values())
{
takeItems(player, item, -1);
}
st.exitQuest(false, true);
}
}
else
{
final int i = NPC_GIFTS.get(npcId);
if (hasQuestItems(player, i))
{
htmltext = "30585-02.htm";
}
else
{
giveItems(player, i, 1);
htmltext = "30585-01.htm";
int count = 0;
for (int item : NPC_GIFTS.values())
{
count += getQuestItemsCount(player, item);
}
if (count == 6)
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}