Totem of the Hestui
- ID
- 276
- Название
- Totem of the Hestui
- start_npcs_json
- [30571]
- npc_ids_json
- []
- constants_json
- {"KASHA_PARASITE":1480,"KASHA_CRYSTAL":1481,"HESTUI_TOTEM":1500,"LEATHER_PANTS":29}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00276_TotemOfTheHestui/Q00276_TotemOfTheHestui.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
else if (player.getLevel() < 15)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, HESTUI_TOTEM, 1); giveItems(player, LEATHER_PANTS, 1); giveItems(player, KASHA_PARASITE, 1); giveItems(player, KASHA_CRYSTAL, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30571-00.htm] Seer Tanapi: It is difficult for a foreign race such as yourself to understand the teachings of the flame that Pa'agrio gives us Orcs. One that cannot realize the truth within flame can be of no assistance to me! (This quest may only be undertaken by an Orcish character.)
[30571-01.htm] Seer Tanapi: Young Orc, have you seen an animal called the kasha bear? It is a poor animal polluted by kasha, the evil spirit of death and decomposition. Animals polluted by evil spirits die slowly because of the curse. However, that is not the only problem. The curse is terrible because it can be spread to other animals. The gray bears are the greatest guardian totems of the Hestui tribe. Our tribe has been consecrating the gray bears since ancient times. However, as gray bears recently became contaminated by the evil spirit kasha, the status of our tribe has been trampled to the ground, and not one day passes when we can sleep in peace. We are working on purifying kasha bears, but I don't think you can take charge of this task yet. (This quest may only be undertaken by a character of level 15 and above.)
[30571-02.htm] Seer Tanapi: Young Orc, have you seen an animal called the kasha bear? It is a poor animal polluted by kasha, the evil spirit of death and decomposition. The animals contaminated by evil spirits die slowly because of the curse. However, that is not the only problem. The curse is terrible because it can be spread to other animals nearby. I am the Chief of the Hestui. We Hestuis have consecrated the gray bears and served them since ancient times. However, as gray bears recently became contaminated by the evil spirit kasha, the status of our tribe has been trampled to the ground, and not one day passes when we can sleep in peace. There is only one way to purify the gray bears polluted by the evil spirit kasha. That is to kill them. It is a difficult quest, but it is also worth undertaking. What do you think? Say you will take the challenge
[30571-03.htm] Seer Tanapi: If you kill a kasha bear, you must cut open its abdomen and take out the kasha parasite. The evil spirit kasha contaminates the gray bears through the parasites. But the true enemy to defeat is the kasha totem spirit. They say that the evil kasha spirit takes the form of the gray bear. Based on my studies, if there are enough parasites, they will call forth the kasha totem spirit. I don't know how many are needed though. If you kill the kasha totem spirit, the crystal of the kasha totem spirit will appear. Bring it to me. It is something I desperately need for my studies. If you bring it to me, I will reward you in the name of the Hestui. Good luck.
[30571-04.htm] Seer Tanapi: Do not forget. When you kill the kasha bears, their bodies will become purified when the kasha parasites come out. If there are more parasites, their energy becomes stronger and the kasha totem spirit appears. When it appears, defeat it and obtain the crystal of the kasha totem spirit.
[30571-05.htm] Seer Tanapi: You finally brought the crystal of the kasha totem spirit! Thank you. So I was right when I said the parasites were the key to calling forth the kasha totem spirit. Now I must study this crystal. I will make sure that we Hestuis do not forget your help. Here -- this is my small token of gratitude. Please accept it. It is a totem of our tribe. One day, when I discover kasha, the true source of evil, I will trust your courage and ask you another favor. Till then, my young Orc, may the protection of Pa'agrio be with you always.
Исходник условий и наград (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.Q00276_TotemOfTheHestui;
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 Q00276_TotemOfTheHestui extends Quest
{
// Items
private static final int KASHA_PARASITE = 1480;
private static final int KASHA_CRYSTAL = 1481;
// Rewards
private static final int HESTUI_TOTEM = 1500;
private static final int LEATHER_PANTS = 29;
public Q00276_TotemOfTheHestui()
{
super(276, "Totem of the Hestui");
registerQuestItems(KASHA_PARASITE, KASHA_CRYSTAL);
addStartNpc(30571); // Tanapi
addTalkId(30571);
addKillId(20479, 27044);
}
@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("30571-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 = "30571-00.htm";
}
else if (player.getLevel() < 15)
{
htmltext = "30571-01.htm";
}
else
{
htmltext = "30571-02.htm";
}
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = "30571-04.htm";
}
else
{
htmltext = "30571-05.htm";
takeItems(player, KASHA_CRYSTAL, -1);
takeItems(player, KASHA_PARASITE, -1);
giveItems(player, HESTUI_TOTEM, 1);
giveItems(player, LEATHER_PANTS, 1);
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 (!hasQuestItems(player, KASHA_CRYSTAL))
{
switch (npc.getId())
{
case 20479:
{
final int count = getQuestItemsCount(player, KASHA_PARASITE);
final int random = getRandom(100);
if ((count >= 79) || ((count >= 69) && (random <= 20)) || ((count >= 59) && (random <= 15)) || ((count >= 49) && (random <= 10)) || ((count >= 39) && (random < 2)))
{
addSpawn(27044, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
takeItems(player, KASHA_PARASITE, count);
}
else
{
giveItems(player, KASHA_PARASITE, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case 27044:
{
st.setCond(2, true);
giveItems(player, KASHA_CRYSTAL, 1);
break;
}
}
}
}
}