ZURSULUS L2

Test of the War Spirit

ID
233
Название
Test of the War Spirit
start_npcs_json
[30510]
npc_ids_json
[20089,20090,20158,20213,20214,20215,20581,20582,20601,20602,27108,30030,30436,30507,30510,30515,30630,30649,30682]
constants_json
{"VIVYAN":30030,"SARIEN":30436,"RACOY":30507,"SOMAK":30510,"MANAKIA":30515,"ORIM":30630,"ANCESTOR_MARTANKUS":30649,"PEKIRON":30682,"NOBLE_ANT":20089,"NOBLE_ANT_LEADER":20090,"MEDUSA":20158,"PORTA":20213,"EXCURO":20214,"MORDEO":20215,"LETO_LIZARDMAN_SHAMAN":20581,"LETO_LIZARDMAN_OVERLORD":20582,"TAMLIN_ORC":20601,"TAMLIN_ORC_ARCHER":20602,"STENOA_GORGON_QUEEN":27108,"VENDETTA_TOTEM":2880,"TAMLIN_ORC_HEAD":2881,"WARSPIRIT_TOTEM":2882,"ORIM_CONTRACT":2883,"PORTA_EYE":2884,"EXCURO_SCALE":2885,"MORDEO_TALON":2886,"BRAKI_REMAINS_1":2887,"PEKIRON_TOTEM":2888,"TONAR_SKULL":2889,"TONAR_RIBBONE":2890,"TONAR_SPINE":2891,"TONAR_ARMBONE":2892,"TONAR_THIGHBONE":2893,"TONAR_REMAINS_1":2894,"MANAKIA_TOTEM":2895,"HERMODT_SKULL":2896,"HERMODT_RIBBONE":2897,"HERMODT_SPINE":2898,"HERMODT_ARMBONE":2899,"HERMODT_THIGHBONE":2900,"HERMODT_REMAINS_1":2901,"RACOY_TOTEM":2902,"VIVYAN_LETTER":2903,"INSECT_DIAGRAM_BOOK":2904,"KIRUNA_SKULL":2905,"KIRUNA_RIBBONE":2906,"KIRUNA_SPINE":2907,"KIRUNA_ARMBONE":2908,"KIRUNA_THIGHBONE":2909,"KIRUNA_REMAINS_1":2910,"BRAKI_REMAINS_2":2911,"TONAR_REMAINS_2":2912,"HERMODT_REMAINS_2":2913,"KIRUNA_REMAINS_2":2914,"MARK_OF_WARSPIRIT":2879,"DIMENSIONAL_DIAMOND":7562}
Статус разбора
metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
Источник
game/data/scripts/quests/Q00233_TestOfTheWarSpirit/Q00233_TestOfTheWarSpirit.java

NPC квеста

IDНазваниеСтарт квестаУровень
20089Noble AntНет37
20090Noble Ant LeaderНет38
20158MedusaНет34
20213PortaНет40
20214ExcuroНет41
20215MordeoНет42
20581Leto Lizardman ShamanНет39
20582Leto Lizardman OverlordНет40
20601Tamlin OrcНет41
20602Tamlin Orc ArcherНет42
27108Stenoa Gorgon QueenНет37
30030VivyanНет70
30436SarienНет70
30507RacoyНет70
30510SomakДа70
30515ManakiaНет70
30630OrimНет70
30649Ancestor MartankusНет70
30682PekironНет70

Условия уровней: выражения из Java

htmltext = (player.getLevel() < 39) ? "30510-03.htm" : "30510-04.htm";

Выдача предметов, адены и опыта: выражения из Java

giveItems(player, DIMENSIONAL_DIAMOND, DF_REWARD_39.get(player.getPlayerClass().getId()));
giveItems(player, ORIM_CONTRACT, 1);
giveItems(player, RACOY_TOTEM, 1);
giveItems(player, VIVYAN_LETTER, 1);
giveItems(player, PEKIRON_TOTEM, 1);
giveItems(player, MANAKIA_TOTEM, 1);
giveItems(player, MARK_OF_WARSPIRIT, 1);
addExpAndSp(player, 63483, 17500);
giveItems(player, VENDETTA_TOTEM, 1);
giveItems(player, BRAKI_REMAINS_2, 1);
giveItems(player, HERMODT_REMAINS_2, 1);
giveItems(player, KIRUNA_REMAINS_2, 1);
giveItems(player, TONAR_REMAINS_2, 1);
giveItems(player, WARSPIRIT_TOTEM, 1);
giveItems(player, BRAKI_REMAINS_1, 1);
giveItems(player, KIRUNA_REMAINS_1, 1);
giveItems(player, INSECT_DIAGRAM_BOOK, 1);
giveItems(player, TONAR_REMAINS_1, 1);
giveItems(player, HERMODT_REMAINS_1, 1);
giveItems(player, PORTA_EYE, 1);
giveItems(player, EXCURO_SCALE, 1);
giveItems(player, MORDEO_TALON, 1);
giveItems(player, KIRUNA_ARMBONE, 1);
giveItems(player, KIRUNA_THIGHBONE, 1);
giveItems(player, KIRUNA_RIBBONE, 1);
giveItems(player, KIRUNA_SPINE, 1);
giveItems(player, KIRUNA_SKULL, 1);
giveItems(player, TONAR_SKULL, 1);
giveItems(player, TONAR_RIBBONE, 1);
giveItems(player, TONAR_SPINE, 1);
giveItems(player, TONAR_ARMBONE, 1);
giveItems(player, TONAR_THIGHBONE, 1);
giveItems(player, HERMODT_RIBBONE, 1);
giveItems(player, HERMODT_SPINE, 1);
giveItems(player, HERMODT_ARMBONE, 1);
giveItems(player, HERMODT_THIGHBONE, 1);
giveItems(player, HERMODT_SKULL, 1);
giveItems(player, TAMLIN_ORC_HEAD, 1);

Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.

Тексты квеста

[30030-01.htm] Priestess Vivyan: What has an Orc Shaman to do with me? Just name it! I will help you in any way I can! Ask about Kiruna the Brave [30030-02.htm] Priestess Vivyan: Ah! Commander Kiruna, the only Commander in the whole Orc Kingdom. She fell in love with Paladin Kelhas... The love story of Kelhas and Kiruna is written in the history of the shrine, and I found it so touching that I read it several times. Oh, don't give me that look! I know you Orcs don't like to hear about an Orc that fell in love with a Human being. So sorry... but their story... it is so romantic... "How did Commander Kiruna die?" [30030-03.htm] Priestess Vivyan: Kiruna and Kelhas were Warriors who fought bravely against the army of the devil Beleth. They won every battle, but one day Kelhas was killed by the evil spirits of Beleth. Imagine Kiruna's sorrow when the news reached her that her lover had been killed. A few days after Kelhas's death, she took to the battlefield with grim determination and won a great victory over the army of Beleth. But unfortunately she received a mortal wound in the final battle. She was taken to the shrine for treatment, but soon died and was buried beside Kelhas. Some say that she refused treatment... Sometimes the feelings which appear to be weak-mindedness can be the source of great power. Do you see? "Where was Kiruna buried?" [30030-04.htm] Priestess Vivyan: According to the records, the graves of Kelhas and Kiruna are in the south of Gludio, a place which has now turned into a Wasteland area. But that was already a thousand years ago... I am not sure if their remains will still be there... Perhaps Sarien who knows the area well, might know of its whereabouts! I shall write you a letter. You'd better go and meet him. He is doing commerce near the southern entrance of the Wasteland. [30030-05.htm] Priestess Vivyan: It is said that the grave of Kiruna was built in the wasteland area. But that was a thousand years ago, so it might have disappeared already. Take the letter that I gave you to Sarien who lives in the southern border of the Wasteland. He knows the area well, so he will be able to give you some help. [30030-06.htm] Priestess Vivyan: What a pity. So the grave of Kiruna has disappeared already? It must be the Wasteland ants who dug up the grave. But her remains might still be preserved somewhere deep in the ant tunnel so do not lose hope. [30030-07.htm] Priestess Vivyan: You have recovered every piece of Kiruna's Remains in the Wasteland? That is awesome! I am really surprised at how devoted you Orcs are to respecting your ancestors! [30436-01.htm] Trader Sarien: A letter from Priestess Vivyan? The grave of Paladin Kelhas and Commander Kiruna? Well... Surely there were many graves of the Elmoreden era here... But sandwind was vicious, and what's even more, the giant ants excavated the place... I bet that all the graves and the relics in it have disappeared by now. Although chances are scarce... I would try the ants tunnel if I were you. According to the adventurers who investigate the Wastelands, they say that the ancient relics are found in the ant tunnel now and then. Perhaps the remains that you are looking for might have been excavated by the ants as well. If my guesses aren't wrong, it must be the soldier ants who carry such things as bones and remains. They normally cut things into pieces, such as a human corpse. Well... Perhaps 5 pieces...? I'll give you this illustrated book for reference. It will help you when you are exploring the ant tunnel. Good luck, then! [30436-02.htm] Trader Sarien: I bet that the grave of the Orc Warrior that you are looking for was already excavated and destroyed. But they say that once in a while, the ancient relics are found in the ant tunnel so if you are lucky enough you might find the bones that you are looking for. If my guesses aren't wrong, it must be the soldier ants who carry such things as bones and remains. I think they'll have cut it into 5 pieces more or less. Good luck, then! [30436-03.htm] Trader Sarien: You finally got what you wanted from the Ant Nest. You Orcs are extremely brave! You will succeed in business if you apply the same patience and skill to it. [30507-01.htm] Seer Racoy: Young shaman, do you seek the remains of the legendary Warrior Kiruna? First you must listen to her story! In a time long ago the supreme commander of our army asked for our support in a tough battle with the devil Beleth. Kiruna led a crack contingent off to the battlefield. Kiruna and her soldiers fought bravely against numerous undead and the front line did not waver. That is, until the dreaded Death Knight Mordreous appeared on the battlefield. The soldiers, overwhelmed by fear and Beleth's magic, began to retreat... However, Kiruna was fearless. She took the battlefield alone, singing hymns of victory and slaughtering hundreds of undead, and finally the death Knight Mordreous! "How did Kiruna die?" [30507-02.htm] Seer Racoy: After the death of beleth, Kiruna remained in the Human's world and became the Commanding General of the kingdom's west army. Some human poets said that Kiruna fell in love with Kelhas, the Einhasad Paladin, but that's absolute nonsense! Why would an Orc Amazon fall in love with a weak Human! Kiruna died after suffering from a mysterious fever. The Humans buried her with the other Human Warriors in the cemetery. It is obvious that a great hero like her should have a grand funeral in the Cave of Trials! However Kiruna herself asked to be buried with the other Human soldiers. I don't know where that place is exactly. But I found out that there are records left about Kiruna in the Einhasad temple of this village. Go to the temple and find out about Kiruna's Remains! I also heard that a female Human called Vivyan knows something about it. I shall give you this totem. It is a precious thing which contains our ancestor's spirits. I think it will help you in finding the heroine's remains. Now it is time for you to leave. Meet Priestess Vivyan of the village temple. [30507-03.htm] Seer Racoy: What are you waiting for? Ask about Kiruna at the Temple of Einhasad of this village. [30507-04.htm] Seer Racoy: She is buried in the Wastelands. Where, I do not know. But you should not give up, young shaman. As long as the blessings of our ancestors are with us, I am sure you'll find her remains. [30507-05.htm] Seer Racoy: It is just as the Human merchant said. If the grave of Kiruna is somewhere out there in the Wasteland, surely it must have been excavated by the ants in the area. If you have the patience and probe the ants, I am sure you will be able to regain our great ancestor's remains! Tejakar Oroka! According to the revelation, it says that the bones are divided into 5 pieces. Gather all 5 of them! [30507-06.htm] Seer Racoy: It pains my soul to see the body of Kiruna in this condition. I will enbalm the body according to our funeral traditions. ...Now, young shaman, carry these contemplatively. Handle them gently. Always remember the fighting spirit of our great heroine, no matter what road you take in the future. The glory of our forefathers who fought so nobly for our tribe is within you! [30507-07.htm] Seer Racoy: Young shaman, I see that you have not yet completed the Test of War Spirit. But there is no need to worry. I am quite sure that before long you shall become one of the greatest Warcryers, praising loudly the glory of Pa'agrio! [30510-01.htm] Seer Somak: You have no allegiance to the Lord of Flame! Why are you here! Have you come to steal the secrets of Orc magic? Go now, before I summon the war spirits and tear off your head! (Quest for Orc Shaman characters of level 39 and above.) [30510-02.htm] Seer Somak: A Warcryer is a supreme level Mystic who deals with the war spirits! Their fierce roar makes our soldiers burn with combativeness and dooms the enemies! Their hymn inspires our troop's morale and freezes the heart of our enemies! Thou, great Warrior of the Orcs! Do not forget that the Mystic is one of the most appreciated strengths on the battlefield! Thou shall bow the knees to their bright wisdom and unyielding spirits! (Quest for Orc Shaman characters of level 39 and above.) [30510-03.htm] Seer Somak: A Warcryer is a supreme level Mystic who deals with the war spirits! Their fierce roar makes our soldiers burn with combativeness and dooms the enemies! Their hymn inspires our troop's morale and freezes the heart of our enemies! Thou, Shaman of Orc! If you truly wish to be Warcryer, you can't avoid the War Spirit's Trial! However, I, Seer Somak say! You are still unprepared! (Quest for Orc Shaman characters of level 39 and above.) [30510-04.htm] Seer Somak: A Warcryer is a supreme level Mystic who deals with the war spirits! Their fierce roar makes our soldiers burn with combativeness and dooms the enemies! Their hymn inspires our troop's morale and freezes the heart of our enemies! Thou, Shaman of Orc! If you truly wish to be Warcryer, you can't avoid the War Spirit's Trial! The war spirits are the ghosts of our ancestors who died in the battlefields! You must be able to win their power over to your side! That is what the trial is all about! Will you challenge the trial? Say that you will challenge the trial [30510-05.htm] Seer Somak: To pass the test, you must first find the bones of the ancestors who passed away while fighting in a war! Then through a trial thou can win over the power of the spirits to your side! The kingdom of Aden is a place where numerous Orc Warriors fought and bled! However, now it is a territory where Humans reign, and our glorious history is gradually being forgotten! Isn't it reasonable for us to celebrate the victory we achieved in this land, and collect the remains and place them on the Immortal Plateau? I, seer Somak investigated the biography of our tribe, which was handed down from mouth to mouth, and found out about 4 warriors. Braki the Clever, Kiruna the Brave, Tonar the Super, and Hermodt the Indomitable! When you find the bones of all 4, bring them to me! Ask about Braki the Clever Ask about Kiruna the Brave Ask about Tonar the Super Ask about Hermodt the Indomitable [30510-05a.htm] Seer Somak: Braki of the Duda-Mara tribe, fought against the 3000 army troops of Elmore with only 200 soldiers, some 500 years ago. He didn't yield the camp site of Horsehoof Valley and resisted for 100 days! Braki took advantage of the steep landscape and overcame the inferiority in numbers! Moreover, there were only 3 Sorcerers in the camp but he made the most out of them and managed to weaken the leader and cause disruption among the enemies. But the very day the back-up troops arrived, Braki died of hunger, thirst, and fever! It is said that he grieved bitterly about the fact that he couldn't die in the battlefields! He was an Orc who was not only clever in the head, but also burning with combativeness in his heart! According to my research, Braki's Remains are in the hands of a Human evil magician called Orim the Shadow. How dare a filthy and wicked magician touch the remains of our honored ancestor! I shall not tolerate that! Hurry and win back the remains of Braki from him! Return [30510-05b.htm] Seer Somak: Kiruna, the amazon of Urutu! I shall tell you about she who knew no fear even in front of the hundreds and thousands of monsters. When the war between devil beleth and the Elmoreden empire broke, we Orcs sent out a crack contingent at the request of the Human emperor! While the weak Human soldiers were busy running away from the dark troop of beleth, Kiruna alone roared out victory and knocked down hundreds of undead and struck death Knight Mordreous to death! Seer Racoy of Gludio town will tell you more about Kiruna the Brave! Hurry to meet him! He will tell you where you can find the bones of Kiruna! Return [30510-05c.htm] Seer Somak: Tonar of Hetsui tribe! He was a superman who had the strength to knock down a giant wild boar with his bare hands! Long time ago, in the land which is now called Oren, there was a fierce battle between the Orcs and the lizardmen. The Hetsui warriors lead by Tonar won an overwhelming victory over the lizardmen and drove them out of the kingdom! But the Lizardman shamans played some wicked tricks on him, and he died. Afterwards they even stole his remains and ran away! You must win back the remains of the great hero from those inferior tribes! Go right now to the village of Oren and meet Seer Pekiron! He will tell you about the lizardmen who have the remains of Tonar! Return [30510-05d.htm] Seer Somak: Hermodt of the Neruga tribe! He is the one who killed more medusas than anyone else, during our bloody battle with the serpents! At that time, the Human tribe who were under our protection asked us for aid, so we sent troops to help the Human beings. Hermodt who lead that troop was called 'the indomitable warrior' because he had a strong body which could fight for 3 days and 3 nights, and had the patience not to yield to the enemies. His body is said lie in the town of Giran. Hear the story in detail from Seer Manakia of Giran! And bring back the remains of Hermodt! Return [30510-05e.htm] Seer Somak: To pass the test, you should first find the ashes of the ancestors who lost their lives warring for this land! With their ashes, you can use a ritual to harness the power of their spirits. Perhaps even more important, we can finally lay their remains to rest in the Immortal Plateau. What more fitting tribute can there be to our ancestors, whose victories once sounded from one end of this land to the other. Ah, but that was before Aden Kingdom, before the Humans began their rule. Now even our own Orc children forget our noble heritage! I, Seer Somak, have long studied our tribe's chronicle, handed down from generation to generation, and have learned the identity of the 4 warriors whose ashes you must recover: Braki the Clever, Kiruna the Brave, Tonar the Super and Hermodt the Indomitable!When you have found all of these great warriors' ashes, return here. Before you go, take this Dimension Diamond. You can trade it for something special from the village gatekeeper to assist you on your journey. Ask about Braki the Clever Ask about Kiruna the Brave Ask about Tonar the Super Ask about Hermodt the Indomitable [30510-06.htm] Seer Somak: To pass the test, you must first find the bones of the ancestors who died in battle! Then through a trial you can win over the power of the spirits to your side! The ancient heroes that I told you are 4 altogether! Braki the Clever, Kiruna the Brave, Tonar the Super, and Hermodt the Indomitable! Find their remains and bring them back to me! Ask about Braki the Clever Ask about Kiruna the Brave Ask about Tonar the Super Ask about Hermodt the Indomitable [30510-07.htm] Seer Somak: Tejakar Oroka! You have found the remains of all 4 heroes! I shall place these bones in the blessed pot. Meanwhile, you prepare for the next stage of the trial. To win over the power hidden in the remains of heroes, you must go through the War Spirit's Trial. To carry out this holy and solemn trial, you must see the forefather spirit Martankus in the Cave of Trials. But before seeing him, you should prepare an appropriate present for him. I think he will be most pleased to receive the heads of the betrayers, so go to the south of Aden and kill the Tamlin Orcs there. Bring back their heads as the present to give to Martankus! You must bring at least 13 heads! [30510-08.htm] Seer Somak: Death to the filthy betrayers! That is what they asked for! Their decapitated heads will be the best gift for our ancestor spirits. Set off now to the north of Aden! Kill the Tamlin Orcs camping in the area and bring back their heads! You must bring at least 13 heads! [30510-09.htm] Seer Somak: Well done! Death to the filthy betrayers! That is what they asked for! Their decapitated heads will be the best gift for our ancestor spirits. Now take the hero's remains to the eternal Holy Land for Orcs, the Immortal Plateau. And meet the forefather spirit Martankus which dwells in the Cave of Trials. To carry out the War Spirit's Trial we need his help for sure. If you carry this totem with you, he'll know that you came for the ceremony. Be careful to show your respect to the great ancestors. Politely offer your gift and tell him that you wish to go through the War Spirit's Trial. Tejakar Pa'agrio! May the powers of fire be with you! [30510-10.htm] Seer Somak: To carry out the ceremony of the war spirits, you need to see the forefather spirit of Martankus. Now take the heroes' remains to the eternal Holy Land for Orcs, the Immortal Plateau. And meet the forefather spirit Martankus which dwells in the Cave of Trials. Remember to show your utmost respect to the great ancestors. Politely offer your gift and tell him that you wish to go through the War Spirit's Trial. Tejakar Pa'agrio! May the powers of fire be with you! [30515-01.htm] Seer Manakia: That indomitable Hermodt! The greatest Warrior of the Neruga tribe. If you are here for his remains, first you should hear his story... Hermodt was the tribal leader when he set off to kill the serpents threatening his territory. He fought bravely and at last, drove them out. Alas he was shot by a poison arrow and died immediately after killing the leader of the serpents, Queen Gorgon! He was a true hero! Ask where the remains lie [30515-02.htm] Seer Manakia: Ever since the kingdom of Orcs first fell, Giran, has been ruled by the Humans. But Humans are weak, so the outsiders we once beat have started attacking again! What a mess! Take this totem to begin with which has our ancestors' spirits within it and it will guide you on your way! In eastern Giran, live medusas who are kin to serpents. Slay them and obtain the remains of Hermodt from them! The medusas split the bones into five pieces and distributed them among several of their kind. The important remains are held by the Gorgon Queen, Stenoa! There is no doubt that she is the descendent of the Queen that Hermodt killed! I, Seer Manakia, order you to go and kill the Queen of medusas, to revenge the death of Hermodt, and take back his skull! After you've killed the Queen, go after the other medusas as well to recover his rib-bones, backbone, arm bones, and shinbones too! [30515-03.htm] Seer Manakia: Didn't I appoint you a task? I told you to recover Hermodt's Remains, from the medusas! Hurry up and get to work! Go and kill those medusas, and recover the remains of Hermodt! And take heed! The important remains are possessed by the Gorgon Queen, Stenoa! [30515-04.htm] Seer Manakia: That was magnificent, young shaman! You have driven out the medusas and taken back the remains of our fallen hero! It is sad to see this Warrior's remains in such poor condition. I cannot feel his spirit while his remains are like this! I, Seer Manakia shall readjust Hermodt's Remains, to a more discernible shape! Oh, young Orc, even after you pass the Test and move on to a higher level, you must never forget the spirits of our great heroes! The glory of our forefathers who fought for the tribe! [30515-05.htm] Seer Manakia: Tejakar Oroka! Glory to the great Orcs! Young Shaman, go ahead and finish the Test of the War Spirits, and become a proud Warcryer! I believe in you! You shall be a great Shaman who influences the world with mighty flames! [30630-01.htm] Orim of the Shadow: Nice to meet you, Sorcerer of the Orcs. My name is Orim and my master is the great magician Hardin. What brought you to this desolate place of the shadows of the green dragon Antharas? Ask him for the Remains of Braki [30630-02.htm] Orim of the Shadow: You are indeed an Orc... So straightforward... That's right, I have the remains of Braki. I am sure that you will attempt to take it from me anyway if I resist giving it to you. I am well aware of the Orc's great power and their devotion to their hero. To tell you the truth, I don't want to fight you. I hope you don't take this the wrong way, but if we fight, you will most likely be killed. If possible we should avoid a fight that could be devastating to us both. As you know, the remains of Braki are filled with strong magic. If you will find me something that has equal power I shall gladly give you your hero's remains. Doesn't that seem fair? Accept proposal [30630-03.htm] Orim of the Shadow: Then I shall tell you. I want you to find something for me. If you go to northern Dion, there is a place called the Cruma Marshlands. In its center, there is a huge tower from the giant era. Inside the tower there dwells all sorts of weird creatures that have a special thing that grows in their bodies. More specifically, it's a strong spirit power dwelling in their bio matter. To solve the secrets of the ancient treasure of Aklantoth's chest, I need that substance. Ask what is needed exactly [30630-04.htm] Orim of the Shadow: First, I need the eye of a creature called a porta. They call it the eye but in fact it is a small and solid thing like a jewel. And scales of an excuro. Those scales of the excuro are as hard as Steel but once you kill it, it is easy to peel them off. And finally, I need a mordeo talon. It is a silver-white, hook shaped claw. I want you to find ten of each item. All the creatures that I mentioned can be found in the Cruma Tower of northern Dion. I have written down our Contract in this document. I know that it may seem absurd to you, but it is meant to prevent any shameful events that may take place later on. Take it, just in case. I will be waiting for your safe return. [30630-05.htm] Orim of the Shadow: Like it is said in the document, I will give you Braki's Remains if you find me the materials that I asked for. I will repeat one more time, just to make sure. The things that I need are porta eyes, excuro scales, and mordeo talons. Ten of each is what I need. You can find them all in the Cruma Tower. [30630-06.htm] Orim of the Shadow: Good job, thank you. You have brought ten each of porta eyes, excuro scales, and mordeo talons. Therefore, I shall give you Braki's Remains, as promised. May the shades of light lead you to the truth. Farewell then, Shaman of the Orcs. [30630-07.htm] Orim of the Shadow: Shaman of the Orcs, good to see you again. I am glad that I was able to return the remains of your hero to his people. [30649-01.htm] Ancestor Martankus: Tejakar Oroka! I am Hestui Martankus, Lord of the Grizzly Tribe who died during the war between Men on the Immortal Plateau a thousand years ago! My descendent, heed your ancestor! I have experienced a thousand years of pain watching the collapse of the kingdom and the disintegration of my race! The unending, unbearable sorrow of seeing my descendents lose the memory of their glorious past. My offspring, present me with a gift that matches my dignity and power! Give the heads of Tamlin Orcs [30649-02.htm] Ancestor Martankus: Death to the traitorous pigs that have deserted the great glory of the Orc kingdom! I am satisfied with your offering, now tell me what you want! I, Hestui Martankus, your ancestor, will grant your wish! Say you want to take the Ritual of War Spirit [30649-03.htm] Ancestor Martankus: Young Shaman of our race, I feel great strength in the bones you brought. They are bones of great heroes, no doubt! Take this strength of past Fighters and make it your own. This is the ritual of the war spirit! Pass those bones one by one to me. I, the great Martankus, give the power of spirit in the bones to you. Braki of the Duda-Mara, I give his cleverness to you! Kiruna of the Urutu, I give you her bravery! Tonar of the Hestui, I give his will of iron to you! Hermodt of the Neruga, I give his faith to you! You, a young Shaman of our race, now own the spirits of the great warriors! As proof, you will be issued the Mark of the War Spirit. It will be of great help for becoming a high-level Shaman. Do not forget the fiery spirit when you lead the warriors of your race into war! Tejakar Oroka! [30682-01.htm] Seer Pekiron: I heard the story from Seer Somak! So, you are looking for the bones of Tonar? Then, first I must tell you about superman Tonar, our great hero! As you may know, Tonar lead the crack contingent of Hetsui and drove out all the Leto Lizardmen from Oren. But as a last resort, the lizardmen shaman called out the flame wyrm. One by one, the warriors of Hetsui fell down to the ground by the fire spewing from the wyrm's mouth. Just then, Tonar, unarmed, leapt on the wyrm and broke its neck! But Tonar himself was severely burnt and died soon after! Ask where the remains are [30682-02.htm] Seer Pekiron: The Lizardman shamans understood the power hidden in Tornar's body. So they ran off with the remains. Then afterwards, with the bones, they made several fetishes. Those fetishes are still handed down among the Leto Lizardmen until this day! The Leto Lizardmen formed a strong force in the southern part of Oren. I suppose the Leto chiefs or shamans who lead the group, have the amulet made from Tonar's Remains. Go ahead and take back the remains of our hero! Those bloody lizardmen, dared to split the bones into a skull, rib bones, backbone, arm bones and shin bones. There are 5 pieces altogether! Take this with you! Our forefathers' spirits dwelling in this totem will guide you on your way! [30682-03.htm] Seer Pekiron: The bones of Tonar are in the hands of Leto Lizardmen. They say that the Leto tribe chiefs or shamans have an amulet made of Tonar's bones, so beat them and recover our hero's remains, which were divided into skull, rib bones, backbone, arm bones, and shin bones! [30682-04.htm] Seer Pekiron: How could they have desecrated the body of our hero so? I shall adjust the pieces into a recognizable shape! Young sorcerer, you must be contemplative while carrying back the bones. You are bearing the symbol of our heroes and forefathers! [30682-05.htm] Seer Pekiron: Go, young shaman, and finish the Test of the War Spirit. I believe that you shall become a proud Warcryer! Until that day when we march onto the battlefield singing the hymns of victory! Tejakar Pa'agrio!
Исходник условий и наград (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.Q00233_TestOfTheWarSpirit;

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.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.serverpackets.SocialAction;

public class Q00233_TestOfTheWarSpirit extends Quest
{
	// NPCs
	private static final int VIVYAN = 30030;
	private static final int SARIEN = 30436;
	private static final int RACOY = 30507;
	private static final int SOMAK = 30510;
	private static final int MANAKIA = 30515;
	private static final int ORIM = 30630;
	private static final int ANCESTOR_MARTANKUS = 30649;
	private static final int PEKIRON = 30682;
	
	// Monsters
	private static final int NOBLE_ANT = 20089;
	private static final int NOBLE_ANT_LEADER = 20090;
	private static final int MEDUSA = 20158;
	private static final int PORTA = 20213;
	private static final int EXCURO = 20214;
	private static final int MORDEO = 20215;
	private static final int LETO_LIZARDMAN_SHAMAN = 20581;
	private static final int LETO_LIZARDMAN_OVERLORD = 20582;
	private static final int TAMLIN_ORC = 20601;
	private static final int TAMLIN_ORC_ARCHER = 20602;
	private static final int STENOA_GORGON_QUEEN = 27108;
	
	// Items
	private static final int VENDETTA_TOTEM = 2880;
	private static final int TAMLIN_ORC_HEAD = 2881;
	private static final int WARSPIRIT_TOTEM = 2882;
	private static final int ORIM_CONTRACT = 2883;
	private static final int PORTA_EYE = 2884;
	private static final int EXCURO_SCALE = 2885;
	private static final int MORDEO_TALON = 2886;
	private static final int BRAKI_REMAINS_1 = 2887;
	private static final int PEKIRON_TOTEM = 2888;
	private static final int TONAR_SKULL = 2889;
	private static final int TONAR_RIBBONE = 2890;
	private static final int TONAR_SPINE = 2891;
	private static final int TONAR_ARMBONE = 2892;
	private static final int TONAR_THIGHBONE = 2893;
	private static final int TONAR_REMAINS_1 = 2894;
	private static final int MANAKIA_TOTEM = 2895;
	private static final int HERMODT_SKULL = 2896;
	private static final int HERMODT_RIBBONE = 2897;
	private static final int HERMODT_SPINE = 2898;
	private static final int HERMODT_ARMBONE = 2899;
	private static final int HERMODT_THIGHBONE = 2900;
	private static final int HERMODT_REMAINS_1 = 2901;
	private static final int RACOY_TOTEM = 2902;
	private static final int VIVYAN_LETTER = 2903;
	private static final int INSECT_DIAGRAM_BOOK = 2904;
	private static final int KIRUNA_SKULL = 2905;
	private static final int KIRUNA_RIBBONE = 2906;
	private static final int KIRUNA_SPINE = 2907;
	private static final int KIRUNA_ARMBONE = 2908;
	private static final int KIRUNA_THIGHBONE = 2909;
	private static final int KIRUNA_REMAINS_1 = 2910;
	private static final int BRAKI_REMAINS_2 = 2911;
	private static final int TONAR_REMAINS_2 = 2912;
	private static final int HERMODT_REMAINS_2 = 2913;
	private static final int KIRUNA_REMAINS_2 = 2914;
	
	// Rewards
	private static final int MARK_OF_WARSPIRIT = 2879;
	private static final int DIMENSIONAL_DIAMOND = 7562;
	
	public Q00233_TestOfTheWarSpirit()
	{
		super(233, "Test of the War Spirit");
		registerQuestItems(VENDETTA_TOTEM, TAMLIN_ORC_HEAD, WARSPIRIT_TOTEM, ORIM_CONTRACT, PORTA_EYE, EXCURO_SCALE, MORDEO_TALON, BRAKI_REMAINS_1, PEKIRON_TOTEM, TONAR_SKULL, TONAR_RIBBONE, TONAR_SPINE, TONAR_ARMBONE, TONAR_THIGHBONE, TONAR_REMAINS_1, MANAKIA_TOTEM, HERMODT_SKULL, HERMODT_RIBBONE, HERMODT_SPINE, HERMODT_ARMBONE, HERMODT_THIGHBONE, HERMODT_REMAINS_1, RACOY_TOTEM, VIVYAN_LETTER, INSECT_DIAGRAM_BOOK, KIRUNA_SKULL, KIRUNA_RIBBONE, KIRUNA_SPINE, KIRUNA_ARMBONE, KIRUNA_THIGHBONE, KIRUNA_REMAINS_1, BRAKI_REMAINS_2, TONAR_REMAINS_2, HERMODT_REMAINS_2, KIRUNA_REMAINS_2);
		addStartNpc(SOMAK);
		addTalkId(SOMAK, VIVYAN, SARIEN, RACOY, MANAKIA, ORIM, ANCESTOR_MARTANKUS, PEKIRON);
		addKillId(NOBLE_ANT, NOBLE_ANT_LEADER, MEDUSA, PORTA, EXCURO, MORDEO, LETO_LIZARDMAN_SHAMAN, LETO_LIZARDMAN_OVERLORD, TAMLIN_ORC, TAMLIN_ORC_ARCHER, STENOA_GORGON_QUEEN);
	}
	
	@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 "30510-05.htm":
			{
				st.startQuest();
				if (!player.getVariables().getBoolean("secondClassChange39", false))
				{
					htmltext = "30510-05e.htm";
					giveItems(player, DIMENSIONAL_DIAMOND, DF_REWARD_39.get(player.getPlayerClass().getId()));
					player.getVariables().set("secondClassChange39", true);
				}
				break;
			}
			case "30630-04.htm":
			{
				playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				giveItems(player, ORIM_CONTRACT, 1);
				break;
			}
			case "30507-02.htm":
			{
				playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				giveItems(player, RACOY_TOTEM, 1);
				break;
			}
			case "30030-04.htm":
			{
				playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				giveItems(player, VIVYAN_LETTER, 1);
				break;
			}
			case "30682-02.htm":
			{
				playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				giveItems(player, PEKIRON_TOTEM, 1);
				break;
			}
			case "30515-02.htm":
			{
				playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				giveItems(player, MANAKIA_TOTEM, 1);
				break;
			}
			case "30649-03.htm":
			{
				takeItems(player, TAMLIN_ORC_HEAD, -1);
				takeItems(player, WARSPIRIT_TOTEM, -1);
				takeItems(player, BRAKI_REMAINS_2, -1);
				takeItems(player, HERMODT_REMAINS_2, -1);
				takeItems(player, KIRUNA_REMAINS_2, -1);
				takeItems(player, TONAR_REMAINS_2, -1);
				giveItems(player, MARK_OF_WARSPIRIT, 1);
				addExpAndSp(player, 63483, 17500);
				player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
				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:
			{
				if (player.getPlayerClass() == PlayerClass.ORC_SHAMAN)
				{
					htmltext = (player.getLevel() < 39) ? "30510-03.htm" : "30510-04.htm";
				}
				else
				{
					htmltext = (player.getRace() == Race.ORC) ? "30510-02.htm" : "30510-01.htm";
				}
				break;
			}
			case State.STARTED:
			{
				final int cond = st.getCond();
				switch (npc.getId())
				{
					case SOMAK:
					{
						if (cond == 1)
						{
							htmltext = "30510-06.htm";
						}
						else if (cond == 2)
						{
							htmltext = "30510-07.htm";
							st.setCond(3, true);
							takeItems(player, BRAKI_REMAINS_1, 1);
							takeItems(player, HERMODT_REMAINS_1, 1);
							takeItems(player, KIRUNA_REMAINS_1, 1);
							takeItems(player, TONAR_REMAINS_1, 1);
							giveItems(player, VENDETTA_TOTEM, 1);
						}
						else if (cond == 3)
						{
							htmltext = "30510-08.htm";
						}
						else if (cond == 4)
						{
							htmltext = "30510-09.htm";
							st.setCond(5, true);
							takeItems(player, VENDETTA_TOTEM, 1);
							giveItems(player, BRAKI_REMAINS_2, 1);
							giveItems(player, HERMODT_REMAINS_2, 1);
							giveItems(player, KIRUNA_REMAINS_2, 1);
							giveItems(player, TONAR_REMAINS_2, 1);
							giveItems(player, WARSPIRIT_TOTEM, 1);
						}
						else if (cond == 5)
						{
							htmltext = "30510-10.htm";
						}
						break;
					}
					case ORIM:
					{
						if ((cond == 1) && !hasQuestItems(player, BRAKI_REMAINS_1))
						{
							if (!hasQuestItems(player, ORIM_CONTRACT))
							{
								htmltext = "30630-01.htm";
							}
							else if ((getQuestItemsCount(player, PORTA_EYE) + getQuestItemsCount(player, EXCURO_SCALE) + getQuestItemsCount(player, MORDEO_TALON)) == 30)
							{
								htmltext = "30630-06.htm";
								takeItems(player, EXCURO_SCALE, 10);
								takeItems(player, MORDEO_TALON, 10);
								takeItems(player, PORTA_EYE, 10);
								takeItems(player, ORIM_CONTRACT, 1);
								giveItems(player, BRAKI_REMAINS_1, 1);
								
								if (hasQuestItems(player, HERMODT_REMAINS_1, KIRUNA_REMAINS_1, TONAR_REMAINS_1))
								{
									st.setCond(2, true);
								}
								else
								{
									playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
								}
							}
							else
							{
								htmltext = "30630-05.htm";
							}
						}
						else
						{
							htmltext = "30630-07.htm";
						}
						break;
					}
					case RACOY:
					{
						if ((cond == 1) && !hasQuestItems(player, KIRUNA_REMAINS_1))
						{
							if (!hasQuestItems(player, RACOY_TOTEM))
							{
								htmltext = "30507-01.htm";
							}
							else if (hasQuestItems(player, VIVYAN_LETTER))
							{
								htmltext = "30507-04.htm";
							}
							else if (hasQuestItems(player, INSECT_DIAGRAM_BOOK))
							{
								if (hasQuestItems(player, KIRUNA_ARMBONE, KIRUNA_RIBBONE, KIRUNA_SKULL, KIRUNA_SPINE, KIRUNA_THIGHBONE))
								{
									htmltext = "30507-06.htm";
									takeItems(player, INSECT_DIAGRAM_BOOK, 1);
									takeItems(player, RACOY_TOTEM, 1);
									takeItems(player, KIRUNA_ARMBONE, 1);
									takeItems(player, KIRUNA_RIBBONE, 1);
									takeItems(player, KIRUNA_SKULL, 1);
									takeItems(player, KIRUNA_SPINE, 1);
									takeItems(player, KIRUNA_THIGHBONE, 1);
									giveItems(player, KIRUNA_REMAINS_1, 1);
									
									if (hasQuestItems(player, BRAKI_REMAINS_1, HERMODT_REMAINS_1, TONAR_REMAINS_1))
									{
										st.setCond(2, true);
									}
									else
									{
										playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
									}
								}
								else
								{
									htmltext = "30507-05.htm";
								}
							}
							else
							{
								htmltext = "30507-03.htm";
							}
						}
						else
						{
							htmltext = "30507-07.htm";
						}
						break;
					}
					case VIVYAN:
					{
						if ((cond == 1) && hasQuestItems(player, RACOY_TOTEM))
						{
							if (hasQuestItems(player, VIVYAN_LETTER))
							{
								htmltext = "30030-05.htm";
							}
							else if (hasQuestItems(player, INSECT_DIAGRAM_BOOK))
							{
								htmltext = "30030-06.htm";
							}
							else
							{
								htmltext = "30030-01.htm";
							}
						}
						else
						{
							htmltext = "30030-07.htm";
						}
						break;
					}
					case SARIEN:
					{
						if ((cond == 1) && hasQuestItems(player, RACOY_TOTEM))
						{
							if (hasQuestItems(player, VIVYAN_LETTER))
							{
								htmltext = "30436-01.htm";
								playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
								takeItems(player, VIVYAN_LETTER, 1);
								giveItems(player, INSECT_DIAGRAM_BOOK, 1);
							}
							else if (hasQuestItems(player, INSECT_DIAGRAM_BOOK))
							{
								htmltext = "30436-02.htm";
							}
						}
						else
						{
							htmltext = "30436-03.htm";
						}
						break;
					}
					case PEKIRON:
					{
						if ((cond == 1) && !hasQuestItems(player, TONAR_REMAINS_1))
						{
							if (!hasQuestItems(player, PEKIRON_TOTEM))
							{
								htmltext = "30682-01.htm";
							}
							else if (hasQuestItems(player, TONAR_ARMBONE, TONAR_RIBBONE, TONAR_SKULL, TONAR_SPINE, TONAR_THIGHBONE))
							{
								htmltext = "30682-04.htm";
								takeItems(player, PEKIRON_TOTEM, 1);
								takeItems(player, TONAR_ARMBONE, 1);
								takeItems(player, TONAR_RIBBONE, 1);
								takeItems(player, TONAR_SKULL, 1);
								takeItems(player, TONAR_SPINE, 1);
								takeItems(player, TONAR_THIGHBONE, 1);
								giveItems(player, TONAR_REMAINS_1, 1);
								
								if (hasQuestItems(player, BRAKI_REMAINS_1, HERMODT_REMAINS_1, KIRUNA_REMAINS_1))
								{
									st.setCond(2, true);
								}
								else
								{
									playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
								}
							}
							else
							{
								htmltext = "30682-03.htm";
							}
						}
						else
						{
							htmltext = "30682-05.htm";
						}
						break;
					}
					case MANAKIA:
					{
						if ((cond == 1) && !hasQuestItems(player, HERMODT_REMAINS_1))
						{
							if (!hasQuestItems(player, MANAKIA_TOTEM))
							{
								htmltext = "30515-01.htm";
							}
							else if (hasQuestItems(player, HERMODT_ARMBONE, HERMODT_RIBBONE, HERMODT_SKULL, HERMODT_SPINE, HERMODT_THIGHBONE))
							{
								htmltext = "30515-04.htm";
								takeItems(player, MANAKIA_TOTEM, 1);
								takeItems(player, HERMODT_ARMBONE, 1);
								takeItems(player, HERMODT_RIBBONE, 1);
								takeItems(player, HERMODT_SKULL, 1);
								takeItems(player, HERMODT_SPINE, 1);
								takeItems(player, HERMODT_THIGHBONE, 1);
								giveItems(player, HERMODT_REMAINS_1, 1);
								
								if (hasQuestItems(player, BRAKI_REMAINS_1, KIRUNA_REMAINS_1, TONAR_REMAINS_1))
								{
									st.setCond(2, true);
								}
								else
								{
									playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
								}
							}
							else
							{
								htmltext = "30515-03.htm";
							}
						}
						else
						{
							htmltext = "30515-05.htm";
						}
						break;
					}
					case ANCESTOR_MARTANKUS:
					{
						if (cond == 5)
						{
							htmltext = "30649-01.htm";
						}
						break;
					}
				}
				break;
			}
			case State.COMPLETED:
			{
				htmltext = getAlreadyCompletedMsg(player);
				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 PORTA:
			{
				if (hasQuestItems(player, ORIM_CONTRACT) && (getQuestItemsCount(player, PORTA_EYE) < 10))
				{
					giveItems(player, PORTA_EYE, 1);
					playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				}
				break;
			}
			case EXCURO:
			{
				if (hasQuestItems(player, ORIM_CONTRACT) && (getQuestItemsCount(player, EXCURO_SCALE) < 10))
				{
					giveItems(player, EXCURO_SCALE, 1);
					playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				}
				break;
			}
			case MORDEO:
			{
				if (hasQuestItems(player, ORIM_CONTRACT) && (getQuestItemsCount(player, MORDEO_TALON) < 10))
				{
					giveItems(player, MORDEO_TALON, 1);
					playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				}
				break;
			}
			case NOBLE_ANT:
			case NOBLE_ANT_LEADER:
			{
				if (hasQuestItems(player, INSECT_DIAGRAM_BOOK))
				{
					final int rndAnt = getRandom(100);
					if (rndAnt > 70)
					{
						if (hasQuestItems(player, KIRUNA_THIGHBONE))
						{
							if (!hasQuestItems(player, KIRUNA_ARMBONE))
							{
								giveItems(player, KIRUNA_ARMBONE, 1);
								playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
							}
						}
						else if (!hasQuestItems(player, KIRUNA_THIGHBONE))
						{
							giveItems(player, KIRUNA_THIGHBONE, 1);
							playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
						}
					}
					else if (rndAnt > 40)
					{
						if (hasQuestItems(player, KIRUNA_SPINE))
						{
							if (!hasQuestItems(player, KIRUNA_RIBBONE))
							{
								giveItems(player, KIRUNA_RIBBONE, 1);
								playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
							}
						}
						else if (!hasQuestItems(player, KIRUNA_SPINE))
						{
							giveItems(player, KIRUNA_SPINE, 1);
							playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
						}
					}
					else if ((rndAnt > 10) && !hasQuestItems(player, KIRUNA_SKULL))
					{
						giveItems(player, KIRUNA_SKULL, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
				}
				break;
			}
			case LETO_LIZARDMAN_SHAMAN:
			case LETO_LIZARDMAN_OVERLORD:
			{
				if (hasQuestItems(player, PEKIRON_TOTEM) && getRandomBoolean())
				{
					if (!hasQuestItems(player, TONAR_SKULL))
					{
						giveItems(player, TONAR_SKULL, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, TONAR_RIBBONE))
					{
						giveItems(player, TONAR_RIBBONE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, TONAR_SPINE))
					{
						giveItems(player, TONAR_SPINE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, TONAR_ARMBONE))
					{
						giveItems(player, TONAR_ARMBONE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, TONAR_THIGHBONE))
					{
						giveItems(player, TONAR_THIGHBONE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
				}
				break;
			}
			case MEDUSA:
			{
				if (hasQuestItems(player, MANAKIA_TOTEM) && getRandomBoolean())
				{
					if (!hasQuestItems(player, HERMODT_RIBBONE))
					{
						giveItems(player, HERMODT_RIBBONE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, HERMODT_SPINE))
					{
						giveItems(player, HERMODT_SPINE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, HERMODT_ARMBONE))
					{
						giveItems(player, HERMODT_ARMBONE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
					else if (!hasQuestItems(player, HERMODT_THIGHBONE))
					{
						giveItems(player, HERMODT_THIGHBONE, 1);
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
				}
				break;
			}
			case STENOA_GORGON_QUEEN:
			{
				if (hasQuestItems(player, MANAKIA_TOTEM) && !hasQuestItems(player, HERMODT_SKULL))
				{
					giveItems(player, HERMODT_SKULL, 1);
					playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
				}
				break;
			}
			case TAMLIN_ORC:
			case TAMLIN_ORC_ARCHER:
			{
				if (hasQuestItems(player, VENDETTA_TOTEM) && !st.isCond(4) && getRandomBoolean() && (getQuestItemsCount(player, TAMLIN_ORC_HEAD) < 13))
				{
					giveItems(player, TAMLIN_ORC_HEAD, 1);
					if (getQuestItemsCount(player, TAMLIN_ORC_HEAD) >= 13)
					{
						st.setCond(4, true);
					}
					else
					{
						playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
					}
				}
				break;
			}
		}
	}
}