Path to an Orc Shaman
- ID
- 416
- Название
- Path to an Orc Shaman
- start_npcs_json
- [30585]
- npc_ids_json
- [20038,20043,20335,20415,20478,20479,27056,27319,30502,30585,30592,30593,31979,32057,32090]
- constants_json
- {"TATARU_ZU_HESTUI":30585,"UMOS":30502,"HESTUI_TOTEM_SPIRIT":30592,"DUDA_MARA_TOTEM_SPIRIT":30593,"MOIRA":31979,"TOTEM_SPIRIT_OF_GANDI":32057,"DEAD_LEOPARD_CARCASS":32090,"VENOMOUS_SPIDER":20038,"ARACHNID_TRACKER":20043,"GRIZZLY_BEAR":20335,"SCARLET_SALAMANDER":20415,"KASHA_BLADE_SPIDER":20478,"KASHA_BEAR":20479,"DURKA_SPIRIT":27056,"BLACK_LEOPARD":27319,"FIRE_CHARM":1616,"KASHA_BEAR_PELT":1617,"KASHA_BLADE_SPIDER_HUSK":1618,"FIERY_EGG_1":1619,"HESTUI_MASK":1620,"FIERY_EGG_2":1621,"TOTEM_SPIRIT_CLAW":1622,"TATARU_LETTER":1623,"FLAME_CHARM":1624,"GRIZZLY_BLOOD":1625,"BLOOD_CAULDRON":1626,"SPIRIT_NET":1627,"BOUND_DURKA_SPIRIT":1628,"DURKA_PARASITE":1629,"TOTEM_SPIRIT_BLOOD":1630,"MASK_OF_MEDIUM":1631}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00416_PathOfTheOrcShaman/Q00416_PathOfTheOrcShaman.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 20038 | Venomous Spider | Нет | 18 |
| 20043 | Arachnid Tracker | Нет | 19 |
| 20335 | Grizzly Bear | Нет | 17 |
| 20415 | Scarlet Salamander | Нет | 17 |
| 20478 | Kasha Blade Spider | Нет | 17 |
| 20479 | Kasha Bear | Нет | 15 |
| 27056 | Durka Spirit | Нет | 18 |
| 27319 | Black Leopard | Нет | 18 |
| 30502 | Umos | Нет | 70 |
| 30585 | Tataru Zu Hestui | Да | 70 |
| 30592 | Hestui Totem Spirit | Нет | 70 |
| 30593 | Duda-Mara Totem Spirit | Нет | 70 |
| 31979 | Moira | Нет | 70 |
| 32057 | Totem Spirit of Gandi | Нет | 70 |
| 32090 | Dead Leopard's Carcass | Нет | 70 |
Условия уровней: выражения из Java
else if (player.getLevel() < 19)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, FIRE_CHARM, 1); giveItems(player, TATARU_LETTER, 1); giveItems(player, TOTEM_SPIRIT_CLAW, 1); giveItems(player, SPIRIT_NET, 1); giveItems(player, MASK_OF_MEDIUM, 1); addExpAndSp(player, 3200, 2600); giveItems(player, FIERY_EGG_2, 1); giveItems(player, HESTUI_MASK, 1); giveItems(player, FLAME_CHARM, 1); giveItems(player, BLOOD_CAULDRON, 1); giveItems(player, MASK_OF_MEDIUM, 1); addExpAndSp(player, 3200, 3250); giveItems(player, TOTEM_SPIRIT_BLOOD, 1); giveItems(player, KASHA_BEAR_PELT, 1); giveItems(player, KASHA_BLADE_SPIDER_HUSK, 1); giveItems(player, FIERY_EGG_1, 1); giveItems(player, GRIZZLY_BLOOD, 1); giveItems(player, DURKA_PARASITE, 1); giveItems(player, BOUND_DURKA_SPIRIT, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30502-01.htm] Seer Umos: To meet an Orc brother in such a foreign place as this, I am truly glad to see you. From Tataru's letter, I see you have received the language of flame from the Hestui Totem Spirit. You have passed the first step in becoming an Orc shaman. However, to become a true Orc Shaman, you need more than just the ability to speak the language of the spirits. To control the spirits and rule their power, you must be able to shout out their names. However, I cannot teach you the ninety-nine names of the spirits nor are they recorded anywhere. To learn them you must meet the Duda-Mara Totem Spirit, which is called the "one that holds names." The spider web of time and space that he has spun meets various places in the continent, and one of those places is Gludio. Before you meet the Duda-Mara Totem Spirit, you must prepare some things. Hunt the grizzly bear which lives in Gludio and bring back its blood. When you have collected three full bottles of blood, then bring them back to me.
[30502-02.htm] Seer Umos: As I already explained, you must prepare something before meeting the Duda-Mara Totem Spirit. Hunt the grizzly bear that lives in Gludio and bring back its blood. If you collect enough to fill three bottles, bring it back to me.
[30502-03.htm] Seer Umos: I will put the grizzly's blood you have brought in this cauldron. Take this to the Duda-Mara Totem Spirit. If it tries to threaten you, quickly offer the cauldron as a gift. If you are a single second late, you may spend eternity tied up in its spider web. When you offer the blood as a gift, ask to be taught about the names of the spirits ... You must keep this in mind. The totem spirit is located north of the Arena in Gludin Village. Well then, I hope you return having learned the secret of the spirits. May the divine protection of flame be with you.
[30502-04.htm] Seer Umos: I see you have not left yet. Find the Duda-Mara Totem Spirit and learn the names of the spirits. Only then, will you acquire the true power of a shaman and be able to change profession to an Orc Shaman. The totem spirit is located north of the Arena in Gludin Village. Dejakyar Lamme! May the protection of flame be with you.
[30502-05.htm] Seer Umos: The Duda-Mara Totem Spirit will not teach you the names of the spirits without receiving anything in return. Even though it is difficult, you must complete the task that the totem spirit asks you. Only then will you be able to learn the hidden names of the spirits. Dejakyar Lamme! May the protection of flame be with you.
[30502-06.htm] Seer Umos: Tejakar Pa'agrio! You have safely returned. And you have brought the blood of the totem spirit. Congratulations! Now, after you perform the ritual of drinking the totem spirit's blood, you will be able to call the names of the ninety-nine spirits. Then you will have the power to become a true Shaman. Perform the ritual
[30502-07.htm] Seer Umos: All those that manage the names of spirits, those that spin the spider web of time and space, we receive the secret of the spirits contained in the blood of the Duda-Mara Totem Spirit. You, young shaman, have received the true authority of flame to be able to call the names of spirits and control their power. Now take this mask. It is a token that shows you have earned the qualifications to become a shaman. Congratulations, singer of chants! Take the mask and go to the high prefect to change profession to Orc Shaman. Tejakar Pa'agrio! May the flame guide you to the path of righteousness.
[30585-01.htm] Tataru Zu Hestui: An Orc Mystic acts as an intermediary between this world and the spirit world, supplicating the spirits for the power to command nature. That is how we breathe power into our allies and cure even the most grievous wounds of battle. Even our enemies quake before this mighty power! Say you want to be an Orc Shaman.
[30585-02.htm] Tataru Zu Hestui: We Orc Shamans perform miracles with the authority of fire -- we do not teach this power lightly! Only Orc Mystics may be permitted to seek the secret of the eternal flame. You do not meet the qualifications.
[30585-02a.htm] Tataru Zu Hestui: You are already an Orc Shaman! Why do you waste your time here? Your path lies elsewhere!
[30585-03.htm] Tataru Zu Hestui: An Orc Mystic must ask the spirits to lend him some of their power, while an Orc Shaman uses the authority of Pa'agrio to actually control them. But you have not yet met the requirements to wield that authority. Dedicate yourself to the task! Return to me when you have reached level 19.
[30585-04.htm] Tataru Zu Hestui: Have you not already acquired the Mask of Medium? It is the token that proves your readiness to become an Orc Shaman. Travel now to the Human lands and show it to the High Prefect. Then he will confer on you the title of Orc Shaman. Tejakar Pa'agrio! May the powers of fire be with you!
[30585-05.htm] Tataru Zu Hestui: To master the authority of flame and truly govern the spirits, you must learn 2 things. First, you must learn the language of flame, which is the language of the spirits, in order to communicate with them. Second, you must learn the names of the 99 spirits in order to acquire power over them. Unless you accomplish both tasks, you cannot become a true Orc Shaman. Say you want to become a true Orc Shaman.
[30585-06.htm] Tataru Zu Hestui: The language of flame cannot be taught, only learned. Confused? Ha! If you wish to learn the language of flame, my young friend, you must summon the Hestui Totem Spirit. The spirit, who takes the form of a Kasha Bear, symbolizes dignity and wisdom. Before attempting the summoning, however, you must first bring me a Kasha Bear Pelt and Kasha Bladespider Husk. You must also hunt the Scarlet Salamander and obtain one of its Fiery Eggs.
[30585-07.htm] Tataru Zu Hestui: Why do you hesitate? If you wish to summon the Hestui Totem Spirit, bring me a Kasha Bear Pelt and Kasha Bladespider Husk. Also, obtain a Fiery Egg from the Scarlet Salamander!
[30585-08.htm] Tataru Zu Hestui: Now I will make you a totem mask from the Kasha Bear Pelt and Kasha Bladespider Husk you brought. It will enable you to learn the language of flame when you meet our Hestui Totem Spirit. The Fiery Egg you obtained from the Scarlet Salamander contains an unborn spirit whose existence is not yet ordained. It is truly a valuable item, fit to offer to the Totem Spirit as a gift. Now go to the Ruins south of the Temple of Pa'agrio and seek the Hestui Totem Spirit. Dejakyar Lamme! May the eternal flame guide your path.
[30585-09.htm] Tataru Zu Hestui: Now that you have prepared the Hestui Mask and the Fiery Egg, seek the Hestui Totem Spirit at the Ruins south of the Temple of Pa'agrio. Dejakyar Lamme! May the eternal flame guide your path.
[30585-10.htm] Tataru Zu Hestui: Dejakyar Lamme! You have brought the Claw of the Totem Spirit! Magnificent! Young Mystic, now we shall perform a ritual in which we prick your tongue with the claw. Then you shall be able to speak the language of flame! Perform the ritual.
[30585-11.htm] Tataru Zu Hestui: The great Hestui Totem Spirit guards the very secret of the universe: the means through which we communicate with the spirits. The language of flame cannot be taught nor recorded on scrolls -- it can only be learned, as you have done, through fire and pain and blood. Your first step is complete. Now, if you wish to be able to command the spirits themselves, you must learn the Names of the 99 Spirits. Go to Gludin in the Human land of Aden and show Seer Umos this letter of recommendation. He will guide you to the next step...
[30585-11a.htm] Tataru Zu Hestui: Thanks to the great Hestui Totem Spirit, you have mastered the secret language of flame! Now you can communicate with the spirits -- but you cannot yet command them. If you wish to do so, you must either learn the Names of the 99 Spirits or acquire the Wisdom of the 99 Spirits. Which method will you choose? Learn the Names of the 99 Spirits. Acquire the Wisdom of the 99 Spirits.
[30585-11b.htm] Tataru Zu Hestui: You wish to learn the Names of the 99 Spirits? Then go to Gludin Village in the Human land of Gludio and show this letter of recommendation to Seer Umos. He will tell you what you must do next.
[30585-11c.htm] Tataru Zu Hestui: You wish to acquire the Wisdom of the 99 Spirits? Then seek Seer Moira in the Town of Schuttgart beyond the Valley of the Lords to discover you what you must do.
[30585-12.htm] Tataru Zu Hestui: You have done well in learning the language of flame, young Mystic. Now you must journey to the Human land of Gludio to learn the Names of the 99 Spirits. Seek Seer Umos in Gludin Village to discover what you must do.
[30585-13.htm] Tataru Zu Hestui: Though you have learned the language of flame, unless you know the Names of the 99 Spirits you will not be able to control them. You must pass this trial to become a true Shaman, so steel yourself for the perils ahead. Dejakyar Lamme! May the eternal flame protect you!
[30592-01.htm] Hestui Totem Spirit: ... growl ... Who dares to speak to me? I have poor eyesight so I cannot see you well, but I can smell ... You smell like a shaman! You are no doubt one who has come to steal the secrets of the spirits! Go away, before I bite off your head and swallow your heart! Wear Hestui Mask
[30592-02.htm] Hestui Totem Spirit: ... growl ... Hmm ... Come closer! Looking at your face ... No doubt you are a descendant of Hestui! Yes, yes ... The offspring of the kasha bear are always welcome! ... growl ... I'm sure you have come to learn the language of flame. It is one of the secrets you must learn to communicate with the spirits. Of course, I could teach it to you, but ... My young Orc ... What can you give me in return for my teachings? Give fiery egg
[30592-03.htm] Hestui Totem Spirit: ... Why, isn't this the fiery egg! Where did you find such a valuable item? I, the guardian spirit of the Hestui, am greatly pleased with your gift ...! I will watch over the egg with delight, waiting for the birth of a new flame spirit ... Will it be a bird of flame? Or a bright blazing lizard of fire? Indeed, I am curious! ... growl ... Then I will give you a gift in return. Take this claw ... If you prick your tongue with it and let the blood run, you will be able to speak the language of the spirits ... Take it to Tataru Zu Hestui and perform the ritual. ... growl ... Well then, may the blessing of the guardian spirits be with you, offspring of Hestui!
[30592-04.htm] Hestui Totem Spirit: ... growl ... Young Orc ... Take the claw that I gave you to Tataru Zu Hestui and perform this ritual: if you prick your tongue with the claw and perform a ritual that draws blood, when you will be able to speak the language of flame ...
[30592-05.htm] Hestui Totem Spirit: ... growl ... To become a true Shaman, it is not enough to speak the language of flame ... Young Orc, if you truly wish to control the spirits you must learn the names of the ninety-nine different spirits ... Go and speak with one of my brothers, the Duda-Mara Totem Spirit, who is known as the "one who holds the names."
[30593-01.htm] Duda-Mara Totem Spirit: Oh-ho! To meet the offspring of Pa'agrio in such a remote land! What do I call you? Wait, are you a Shaman that can speak the language of spirits? You must have come to steal the secret of spirits away from me? Go away! If you do not want to be tied up tight in my web and hung for all eternity, begone! Show the Blood Cauldron
[30593-02.htm] Duda-Mara Totem Spirit: ... Didn't I tell you to go away ...! Hmm ... Wait ...! What is that sweet smell? Such a sweet smell comes from that cauldron! The sweet smell of blood ... You are giving this to me? Thank you ...! Mmmm ... mmm ... . So, young shaman of Pa'agrio, have you come to me to learn the names of the ninety-nine spirits? Say you want to learn the names of the spirits
[30593-03.htm] Duda-Mara Totem Spirit: ... If you want, I will teach you ... But I must ask a favor in return ... ... One of the evil spirits I sealed in my web of space and time has escaped ... I have come all the way here to Gludio to catch that scoundrel ... Impertinently, it is hiding in the body of my offspring ...! Poison spiders, arachnid trackers, all my adorable children ... The Durka Spirit that I seek is hidden in my children's bodies. ... You must hunt spiders and make it reveal itself ... Take this spider web of space and time that I have spun. When you have pinned the Durka Spirit down, seal it in this net and bring it to me. Then I will teach you what you wish to learn.
[30593-04.htm] Duda-Mara Totem Spirit: ... If you capture the Durka Spirit that escaped from my web, I will teach you the names of the spirits ... However, the scoundrel is hiding in the bodies of my precious children, the poison spiders and arachnid trackers!
[30593-05.htm] Duda-Mara Totem Spirit: Well done indeed, young shaman. I will firmly seal it away so it does not escape a second time from my web to spread evil forces in the world ... Did you know, all the spirits that move the world with unseen powers were caught in my web at one time or another. As the price for freeing them, I asked for their names. That is how I came to know the names of the ninety-nine spirits. The name of all the spirits is contained in a drop of blood from the tip of my foot. I will give this to you. Take it to Seer Umos and perform a ritual with the blood in your mouth to receive the secret of the spirits.
[30593-06.htm] Duda-Mara Totem Spirit: ... Take the drop of blood I have given you to Seer Umos. By performing a ritual of drinking that blood which contains the secret of spirits, you will be able to obtain the powers of a true incantator.
[31979-01.htm] Seer Moira: Congratulations, young Orc, on taking the first step in this world! I want you to learn here in Schuttgart how to inherit the wisdom of the souls! Behold this Black Leopard in front of me! He's the Gandi Totem Spirit, the wisest of all Totem Spirits! Talk to him and receive his knowledge! He'll help you!
[31979-02.htm] Seer Moira: Look at the Black Leopard in front of me! He's the Gandi Totem Spirit, the wisest of all the Totem Spirits! Talk to him and receive his knowledge! He'll help you!
[31979-03.htm] Seer Moira: I've watched you, young Orc... You learned the Language of Flame from the Hestui Totem Spirit and the wisdom of souls from the Gandi Totem Spirit. You're now a legitimate Orc Shaman! I'll give you this Mask of Shaman as proof. Take it to the High Prefect and you'll be able to transfer class. Again, congratulations, Tazakar Oroca!
[32057-01.htm] Totem Spirit of Gandi: You stupid Orc! You're here to acquire the knowledge of the Totem Spirit, aren't you? The knowledge of the Totem Spirit can only be handed down to those in the same tribe! Different tribes could never fully understand the Totem Spirit, they'd only acquire some fragmented pieces of knowledge. Hum... You may still want to acquire the knowledge of the Totem Spirit, even though you understand the limitations... As did most others... Am I correct? "I want the knowledge."
[32057-02.htm] Totem Spirit of Gandi: I see... Grrrr... That's the Tribe of Fire, one of your Orc Tribes under the protection of our Totem Spirit... Very well! There's something you must do at once! Find the Black Leopard in the Valley of the Lords and kill him. Get the Dialogue of Souls and Wisdom of Souls when you defeat him.
[32057-03.htm] Totem Spirit of Gandi: Defeat the Black Leopard in the Valley of the Lords and then pour the blood on yourself! That will give you the wisdom!
[32057-04.htm] Totem Spirit of Gandi: Krrrr... Well...now you look more like an Orc.. Have you become a Shaman of Flame... The essence of the Wisdom of Souls... The meaning of the word "victory"... No, you're much too young... ......
[32057-05.htm] Totem Spirit of Gandi: Ha! Well, there's no need for you to feel pain, young Orc. From the time that Pa'agrio created you, you were supposed to be like this! The shape of burning fire is not one and the kind of fire is not one either. You've been cleansed with the blood of Gandi's family, now other Totem Spirits cannot ignore you... krrrr... Now, speak with Seer Moira over there. Since you have my wisdom, he'll lead you to a Shaman.
[32090-01.htm] Dead Leopard Body: The Dead Leopard Body has a compelling gaze, as if distant flames flicker in its eyes. His lips tremble with weird murmurs: [. . . and you need more blood... to acquire more blood... the blood of the Black Leopard...]
[32090-01a.htm] Dead Leopard Body: An eerie force emanates from the Dead Leopard Body.
[32090-01b.htm] Dead Leopard Body: The Dead Leopard Body's gaze is startling, flickering with the light of distant flames. His lips move disturbingly, issuing strange murmurs: [...but you need more blood...to acquire more of the sacred blood...the blood of the Black Leopard...]
[32090-02.htm] Dead Leopard's Carcass: There's a strange song coming from somewhere. At last you discover the source: it issues from the mouth of a dead leopard. The song sounds vaguely familiar yet somehow outlandish as well, like a song you might have heard a foreigner sing as a child. [. . . Zakar Gandi! Tejakar Leopa! O, forgotten song, lost amid the long tribal battles! O, my fellow warriors, once a mighty army, now scattered to the winds!] Listen carefully to the song.
[32090-03.htm] Dead Leopard's Carcass: [One fire shines its light, Two fires warm us with their might. Fires without number may Combine to chase all cold away, But let them stray and court disaster! Fire is a fearful master.] Listen to the song of fire.
[32090-04.htm] Dead Leopard's Carcass: [A ghost is much like a fire: approach it with great care, a proper distance bear, and grow as warm as you desire. But stray too close to the source, And it will eat you whole; For ghosts and fiery coals, Have no means to restrain their force. Remember the teachings of Pa'agrio! Remember the Song of Fire! In order to hear the last teaching, Drench your hands once more with the blood of the Black Leopard!]
[32090-05.htm] Dead Leopard Body: The Dead Leopard's lips tremble eerily. Is it trying to mutter something? If you obtain the blood of the Black Leopard, perhaps then you can determine if this is an illusion.
[32090-06.htm] Dead Leopard Body: The Dead Leopard Body murmurs, over and over: "Go and find the Totem Spirit of Gandi. Go and find the Totem Spirit of Gandi."
Исходник условий и наград (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.Q00416_PathOfTheOrcShaman;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.entity.actor.enums.player.PlayerClass;
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;
import org.l2jmobius.gameserver.network.enums.ChatType;
import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
public class Q00416_PathOfTheOrcShaman extends Quest
{
// NPCs
private static final int TATARU_ZU_HESTUI = 30585;
private static final int UMOS = 30502;
private static final int HESTUI_TOTEM_SPIRIT = 30592;
private static final int DUDA_MARA_TOTEM_SPIRIT = 30593;
private static final int MOIRA = 31979;
private static final int TOTEM_SPIRIT_OF_GANDI = 32057;
private static final int DEAD_LEOPARD_CARCASS = 32090;
// Monsters
private static final int VENOMOUS_SPIDER = 20038;
private static final int ARACHNID_TRACKER = 20043;
private static final int GRIZZLY_BEAR = 20335;
private static final int SCARLET_SALAMANDER = 20415;
private static final int KASHA_BLADE_SPIDER = 20478;
private static final int KASHA_BEAR = 20479;
private static final int DURKA_SPIRIT = 27056;
private static final int BLACK_LEOPARD = 27319;
// Items
private static final int FIRE_CHARM = 1616;
private static final int KASHA_BEAR_PELT = 1617;
private static final int KASHA_BLADE_SPIDER_HUSK = 1618;
private static final int FIERY_EGG_1 = 1619;
private static final int HESTUI_MASK = 1620;
private static final int FIERY_EGG_2 = 1621;
private static final int TOTEM_SPIRIT_CLAW = 1622;
private static final int TATARU_LETTER = 1623;
private static final int FLAME_CHARM = 1624;
private static final int GRIZZLY_BLOOD = 1625;
private static final int BLOOD_CAULDRON = 1626;
private static final int SPIRIT_NET = 1627;
private static final int BOUND_DURKA_SPIRIT = 1628;
private static final int DURKA_PARASITE = 1629;
private static final int TOTEM_SPIRIT_BLOOD = 1630;
private static final int MASK_OF_MEDIUM = 1631;
public Q00416_PathOfTheOrcShaman()
{
super(416, "Path to an Orc Shaman");
registerQuestItems(FIRE_CHARM, KASHA_BEAR_PELT, KASHA_BLADE_SPIDER_HUSK, FIERY_EGG_1, HESTUI_MASK, FIERY_EGG_2, TOTEM_SPIRIT_CLAW, TATARU_LETTER, FLAME_CHARM, GRIZZLY_BLOOD, BLOOD_CAULDRON, SPIRIT_NET, BOUND_DURKA_SPIRIT, DURKA_PARASITE, TOTEM_SPIRIT_BLOOD);
addStartNpc(TATARU_ZU_HESTUI);
addTalkId(TATARU_ZU_HESTUI, UMOS, HESTUI_TOTEM_SPIRIT, DUDA_MARA_TOTEM_SPIRIT, MOIRA, TOTEM_SPIRIT_OF_GANDI, DEAD_LEOPARD_CARCASS);
addKillId(VENOMOUS_SPIDER, ARACHNID_TRACKER, GRIZZLY_BEAR, SCARLET_SALAMANDER, KASHA_BLADE_SPIDER, KASHA_BEAR, DURKA_SPIRIT, BLACK_LEOPARD);
}
@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 "30585-05.htm":
{
if (player.getPlayerClass() != PlayerClass.ORC_MAGE)
{
htmltext = (player.getPlayerClass() == PlayerClass.ORC_SHAMAN) ? "30585-02a.htm" : "30585-02.htm";
}
else if (player.getLevel() < 19)
{
htmltext = "30585-03.htm";
}
else if (hasQuestItems(player, MASK_OF_MEDIUM))
{
htmltext = "30585-04.htm";
}
break;
}
case "30585-06.htm":
{
st.startQuest();
giveItems(player, FIRE_CHARM, 1);
break;
}
case "30585-11b.htm":
{
st.setCond(5, true);
takeItems(player, TOTEM_SPIRIT_CLAW, 1);
giveItems(player, TATARU_LETTER, 1);
break;
}
case "30585-11c.htm":
{
st.setCond(12, true);
takeItems(player, TOTEM_SPIRIT_CLAW, 1);
break;
}
case "30592-03.htm":
{
st.setCond(4, true);
takeItems(player, HESTUI_MASK, 1);
takeItems(player, FIERY_EGG_2, 1);
giveItems(player, TOTEM_SPIRIT_CLAW, 1);
break;
}
case "30593-03.htm":
{
st.setCond(9, true);
takeItems(player, BLOOD_CAULDRON, 1);
giveItems(player, SPIRIT_NET, 1);
break;
}
case "32057-02.htm":
{
st.setCond(14, true);
break;
}
case "32057-05.htm":
{
st.setCond(21, true);
break;
}
case "32090-04.htm":
{
st.setCond(18, true);
break;
}
case "30502-07.htm":
{
takeItems(player, TOTEM_SPIRIT_BLOOD, -1);
giveItems(player, MASK_OF_MEDIUM, 1);
addExpAndSp(player, 3200, 2600);
player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
st.exitQuest(true, 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 = "30585-01.htm";
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case TATARU_ZU_HESTUI:
{
if (cond == 1)
{
htmltext = "30585-07.htm";
}
else if (cond == 2)
{
htmltext = "30585-08.htm";
st.setCond(3, true);
takeItems(player, FIERY_EGG_1, 1);
takeItems(player, FIRE_CHARM, 1);
takeItems(player, KASHA_BEAR_PELT, 1);
takeItems(player, KASHA_BLADE_SPIDER_HUSK, 1);
giveItems(player, FIERY_EGG_2, 1);
giveItems(player, HESTUI_MASK, 1);
}
else if (cond == 3)
{
htmltext = "30585-09.htm";
}
else if (cond == 4)
{
htmltext = "30585-10.htm";
}
else if (cond == 5)
{
htmltext = "30585-12.htm";
}
else if ((cond > 5) && (cond < 12))
{
htmltext = "30585-13.htm";
}
else if (cond == 12)
{
htmltext = "30585-11c.htm";
}
break;
}
case HESTUI_TOTEM_SPIRIT:
{
if (cond == 3)
{
htmltext = "30592-01.htm";
}
else if (cond == 4)
{
htmltext = "30592-04.htm";
}
else if ((cond > 4) && (cond < 12))
{
htmltext = "30592-05.htm";
}
break;
}
case UMOS:
{
if (cond == 5)
{
htmltext = "30502-01.htm";
st.setCond(6, true);
takeItems(player, TATARU_LETTER, 1);
giveItems(player, FLAME_CHARM, 1);
}
else if (cond == 6)
{
htmltext = "30502-02.htm";
}
else if (cond == 7)
{
htmltext = "30502-03.htm";
st.setCond(8, true);
takeItems(player, FLAME_CHARM, 1);
takeItems(player, GRIZZLY_BLOOD, 3);
giveItems(player, BLOOD_CAULDRON, 1);
}
else if (cond == 8)
{
htmltext = "30502-04.htm";
}
else if ((cond == 9) || (cond == 10))
{
htmltext = "30502-05.htm";
}
else if (cond == 11)
{
htmltext = "30502-06.htm";
}
break;
}
case MOIRA:
{
if (cond == 12)
{
htmltext = "31979-01.htm";
st.setCond(13, true);
}
else if ((cond > 12) && (cond < 21))
{
htmltext = "31979-02.htm";
}
else if (cond == 21)
{
htmltext = "31979-03.htm";
giveItems(player, MASK_OF_MEDIUM, 1);
addExpAndSp(player, 3200, 3250);
player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
st.exitQuest(true, true);
}
break;
}
case TOTEM_SPIRIT_OF_GANDI:
{
if (cond == 13)
{
htmltext = "32057-01.htm";
}
else if ((cond > 13) && (cond < 20))
{
htmltext = "32057-03.htm";
}
else if (cond == 20)
{
htmltext = "32057-04.htm";
}
break;
}
case DUDA_MARA_TOTEM_SPIRIT:
{
if (cond == 8)
{
htmltext = "30593-01.htm";
}
else if (cond == 9)
{
htmltext = "30593-04.htm";
}
else if (cond == 10)
{
htmltext = "30593-05.htm";
st.setCond(11, true);
takeItems(player, BOUND_DURKA_SPIRIT, 1);
giveItems(player, TOTEM_SPIRIT_BLOOD, 1);
}
else if (cond == 11)
{
htmltext = "30593-06.htm";
}
break;
}
case DEAD_LEOPARD_CARCASS:
{
if (cond == 14)
{
htmltext = "32090-01a.htm";
}
else if (cond == 15)
{
htmltext = "32090-01.htm";
st.setCond(16, true);
}
else if (cond == 16)
{
htmltext = "32090-01b.htm";
}
else if (cond == 17)
{
htmltext = "32090-02.htm";
}
else if (cond == 18)
{
htmltext = "32090-05.htm";
}
else if (cond == 19)
{
htmltext = "32090-06.htm";
st.setCond(20, true);
}
break;
}
}
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;
}
switch (npc.getId())
{
case KASHA_BEAR:
{
if (st.isCond(1) && !hasQuestItems(player, KASHA_BEAR_PELT))
{
giveItems(player, KASHA_BEAR_PELT, 1);
if (hasQuestItems(player, FIERY_EGG_1, KASHA_BLADE_SPIDER_HUSK))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case KASHA_BLADE_SPIDER:
{
if (st.isCond(1) && !hasQuestItems(player, KASHA_BLADE_SPIDER_HUSK))
{
giveItems(player, KASHA_BLADE_SPIDER_HUSK, 1);
if (hasQuestItems(player, KASHA_BEAR_PELT, FIERY_EGG_1))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case SCARLET_SALAMANDER:
{
if (st.isCond(1) && !hasQuestItems(player, FIERY_EGG_1))
{
giveItems(player, FIERY_EGG_1, 1);
if (hasQuestItems(player, KASHA_BEAR_PELT, KASHA_BLADE_SPIDER_HUSK))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case GRIZZLY_BEAR:
{
if (st.isCond(6))
{
if (getQuestItemsCount(player, GRIZZLY_BLOOD) < 3)
{
giveItems(player, GRIZZLY_BLOOD, 1);
if (getQuestItemsCount(player, GRIZZLY_BLOOD) >= 3)
{
st.setCond(7, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
break;
}
case VENOMOUS_SPIDER:
case ARACHNID_TRACKER:
{
if (st.isCond(9))
{
final int count = getQuestItemsCount(player, DURKA_PARASITE);
final int rnd = getRandom(10);
if (((count == 5) && (rnd < 1)) || (((count == 6) || (count == 7)) && (rnd < 2)) || (count >= 8))
{
playSound(player, QuestSound.ITEMSOUND_QUEST_BEFORE_BATTLE);
takeItems(player, DURKA_PARASITE, -1);
addSpawn(DURKA_SPIRIT, npc, false, 120000);
}
else
{
giveItems(player, DURKA_PARASITE, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case DURKA_SPIRIT:
{
if (st.isCond(9))
{
st.setCond(10, true);
takeItems(player, DURKA_PARASITE, -1);
takeItems(player, SPIRIT_NET, 1);
giveItems(player, BOUND_DURKA_SPIRIT, 1);
}
break;
}
case BLACK_LEOPARD:
{
if (st.isCond(14))
{
if (st.getInt("leopard") > 0)
{
st.setCond(15, true);
if (getRandom(3) < 2)
{
npc.broadcastSay(ChatType.GENERAL, "My dear friend of " + player.getName() + ", who has gone on ahead of me!");
}
}
else
{
st.set("leopard", "1");
}
}
else if (st.isCond(16))
{
st.setCond(17, true);
if (getRandom(3) < 2)
{
npc.broadcastSay(ChatType.GENERAL, "Listen to Tejakar Gandi, young Oroka! The spirit of the slain leopard is calling you, " + player.getName() + "!");
}
}
else if (st.isCond(18))
{
st.setCond(19, true);
}
break;
}
}
}
}