Testimony of Prosperity
- ID
- 221
- Название
- Testimony of Prosperity
- start_npcs_json
- [30104]
- npc_ids_json
- [20154,20155,20156,20157,20223,20228,20230,20231,20232,20233,20234,30005,30104,30368,30466,30517,30519,30531,30532,30533,30534,30535,30536,30553,30554,30555,30556,30597,30620,30621,30622]
- constants_json
- {"WILFORD":30005,"PARMAN":30104,"LILITH":30368,"BRIGHT":30466,"SHARI":30517,"MION":30519,"LOCKIRIN":30531,"SPIRON":30532,"BALANKI":30533,"KEEF":30534,"FILAUR":30535,"ARIN":30536,"MARYSE_REDBONNET":30553,"BOLTER":30554,"TOROCCO":30555,"TOMA":30556,"PIOTUR":30597,"EMILY":30620,"NIKOLA":30621,"BOX_OF_TITAN":30622,"MANDRAGORA_SPROUT_1":20223,"MANDRAGORA_SPROUT_2":20154,"MANDRAGORA_SAPLING":20155,"MANDRAGORA_BLOSSOM":20156,"MARSH_STAKATO":20157,"GIANT_CRIMSON_ANT":20228,"MARSH_STAKATO_WORKER":20230,"TOAD_LORD":20231,"MARSH_STAKATO_SOLDIER":20232,"MARSH_SPIDER":20233,"MARSH_STAKATO_DRONE":20234,"ADENA":57,"ANIMAL_SKIN":1867,"RECIPE_TITAN_KEY":3023,"KEY_OF_TITAN":3030,"RING_OF_TESTIMONY_1":3239,"RING_OF_TESTIMONY_2":3240,"OLD_ACCOUNT_BOOK":3241,"BLESSED_SEED":3242,"EMILY_RECIPE":3243,"LILITH_ELVEN_WAFER":3244,"MAPHR_TABLET_FRAGMENT":3245,"COLLECTION_LICENSE":3246,"LOCKIRIN_NOTICE_1":3247,"LOCKIRIN_NOTICE_2":3248,"LOCKIRIN_NOTICE_3":3249,"LOCKIRIN_NOTICE_4":3250,"LOCKIRIN_NOTICE_5":3251,"CONTRIBUTION_OF_SHARI":3252,"CONTRIBUTION_OF_MION":3253,"CONTRIBUTION_OF_MARYSE":3254,"MARYSE_REQUEST":3255,"CONTRIBUTION_OF_TOMA":3256,"RECEIPT_OF_BOLTER":3257,"RECEIPT_OF_CONTRIBUTION_1":3258,"RECEIPT_OF_CONTRIBUTION_2":3259,"RECEIPT_OF_CONTRIBUTION_3":3260,"RECEIPT_OF_CONTRIBUTION_4":3261,"RECEIPT_OF_CONTRIBUTION_5":3262,"PROCURATION_OF_TOROCCO":3263,"BRIGHT_LIST":3264,"MANDRAGORA_PETAL":3265,"CRIMSON_MOSS":3266,"MANDRAGORA_BOUQUET":3267,"PARMAN_INSTRUCTIONS":3268,"PARMAN_LETTER":3269,"CLAY_DOUGH":3270,"PATTERN_OF_KEYHOLE":3271,"NIKOLAS_LIST":3272,"STAKATO_SHELL":3273,"TOAD_LORD_SAC":3274,"SPIDER_THORN":3275,"CRYSTAL_BROOCH":3428,"MARK_OF_PROSPERITY":3238,"DIMENSIONAL_DIAMOND":7562}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00221_TestimonyOfProsperity/Q00221_TestimonyOfProsperity.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 20154 | Mandragora Sprout | Нет | 21 |
| 20155 | Mandragora Sapling | Нет | 23 |
| 20156 | Mandragora Blossom | Нет | 25 |
| 20157 | Marsh Stakato | Нет | 29 |
| 20223 | Mandragora Sprout | Нет | 20 |
| 20228 | Giant Crimson Ant | Нет | 28 |
| 20230 | Marsh Stakato Worker | Нет | 31 |
| 20231 | Toad Lord | Нет | 32 |
| 20232 | Marsh Stakato Soldier | Нет | 33 |
| 20233 | Marsh Spider | Нет | 34 |
| 20234 | Marsh Stakato Drone | Нет | 35 |
| 30005 | Wilford | Нет | 70 |
| 30104 | Parman | Да | 70 |
| 30368 | Lilith | Нет | 70 |
| 30466 | Bright | Нет | 80 |
| 30517 | Shari | Нет | 70 |
| 30519 | Mion | Нет | 70 |
| 30531 | Lockirin | Нет | 70 |
| 30532 | Spiron | Нет | 70 |
| 30533 | Balanki | Нет | 70 |
| 30534 | Keef | Нет | 70 |
| 30535 | Filaur | Нет | 70 |
| 30536 | Arin | Нет | 70 |
| 30553 | Maryse Redbonnet | Нет | 70 |
| 30554 | Bolter | Нет | 70 |
| 30555 | Torocco | Нет | 70 |
| 30556 | Toma | Нет | 70 |
| 30597 | Piotur | Нет | 70 |
| 30620 | Emily | Нет | 70 |
| 30621 | Nikola | Нет | 70 |
| 30622 | Box Of Titan | Нет | 70 |
Условия уровней: выражения из Java
if (player.getLevel() < 38) else if (player.getLevel() < 37) if (player.getLevel() < 38)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, RING_OF_TESTIMONY_1, 1); giveItems(player, DIMENSIONAL_DIAMOND, DF_REWARD_37.get(player.getRace().ordinal())); giveItems(player, PARMAN_INSTRUCTIONS, 1); giveItems(player, PARMAN_LETTER, 1); giveItems(player, RING_OF_TESTIMONY_2, 1); giveItems(player, COLLECTION_LICENSE, 1); giveItems(player, LOCKIRIN_NOTICE_1, 1); giveItems(player, LOCKIRIN_NOTICE_2, 1); giveItems(player, LOCKIRIN_NOTICE_3, 1); giveItems(player, LOCKIRIN_NOTICE_4, 1); giveItems(player, LOCKIRIN_NOTICE_5, 1); giveItems(player, RECEIPT_OF_CONTRIBUTION_3, 1); giveItems(player, CRYSTAL_BROOCH, 1); giveItems(player, BRIGHT_LIST, 1); giveItems(player, PROCURATION_OF_TOROCCO, 1); giveItems(player, LILITH_ELVEN_WAFER, 1); giveItems(player, BLESSED_SEED, 1); giveItems(player, EMILY_RECIPE, 1); giveItems(player, CLAY_DOUGH, 1); giveItems(player, PATTERN_OF_KEYHOLE, 1); giveItems(player, MAPHR_TABLET_FRAGMENT, 1); giveItems(player, PARMAN_LETTER, 1); giveItems(player, RING_OF_TESTIMONY_2, 1); giveItems(player, MARK_OF_PROSPERITY, 1); addExpAndSp(player, 12969, 1000); giveItems(player, OLD_ACCOUNT_BOOK, 1); giveItems(player, RECEIPT_OF_CONTRIBUTION_1, 1); giveItems(player, RECEIPT_OF_CONTRIBUTION_2, 1); giveItems(player, RECEIPT_OF_CONTRIBUTION_4, 1); giveItems(player, RECEIPT_OF_CONTRIBUTION_5, 1); giveItems(player, CONTRIBUTION_OF_SHARI, 1); giveItems(player, CONTRIBUTION_OF_MION, 1); giveItems(player, CONTRIBUTION_OF_MARYSE, 1); giveItems(player, MARYSE_REQUEST, 1); giveItems(player, RECEIPT_OF_BOLTER, 1); giveItems(player, CONTRIBUTION_OF_TOMA, 1); giveItems(player, MANDRAGORA_BOUQUET, 1); giveItems(player, NIKOLAS_LIST, 1); giveItems(player, RECIPE_TITAN_KEY, 1); giveItems(player, MANDRAGORA_PETAL, 1); giveItems(player, MANDRAGORA_PETAL, 1); giveItems(player, MANDRAGORA_PETAL, 1); giveItems(player, MANDRAGORA_PETAL, 1); giveItems(player, CRIMSON_MOSS, 1); giveItems(player, STAKATO_SHELL, 1); giveItems(player, STAKATO_SHELL, 1); giveItems(player, STAKATO_SHELL, 1); giveItems(player, STAKATO_SHELL, 1); giveItems(player, TOAD_LORD_SAC, 1); giveItems(player, SPIDER_THORN, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30005-01.htm] Warehouse Keeper Wilford: Welcome, young friend! So, you are taking the exam to advance within the guild? I took the same exam long ago. Ha, of course now I've forgotten all about it! So you seek the Mark of Health? I remember talking with Parman before about a similar subject... My memories are fading away... What did I tell him... A Dwarf more than 1,000 years old A turtle more than 1,000 years old An Elf more than 1,000 years old
[30005-02.htm] Warehouse Keeper Wilford: No I don't think that that was our subject. Cause I've seen only one Dwarf up to this day who lived more than 1,000 years. Besides, he died when I was young. Ever since, I've never heard of a Dwarf who lived more than 1,000 years. A turtle more than 1,000 years old An Elf more than 1,000 years old
[30005-03.htm] Warehouse Keeper Wilford: Yes, I heard something similar to that the other day when I was out drinking with Rant. They said that there was a turtle in the ruins beneath the west sea that was more than 5,000 years old. But I don't think it was about the turtle... A Dwarf more than 1,000 years old An Elf more than 1,000 years old
[30005-04.htm] Warehouse Keeper Wilford: An Elf more than 1,000 years old? Yes, that's it! You mean Lilith! Yes, she didn't just live for more than a thousand years, she has been waiting for her lover for over 1,000 years. So that means that she must be well over 1,000 years old. I don't know if Elves just have unusually long life spans, or if she missed her lover so much that she could not die. You should go and see Lilith for yourself. You can find her in the temple of this town. She is quite gloomy these days, so why don't you take her this brooch as a present? It might cheer her up, Elves adore pretty ornaments.
[30005-05.htm] Warehouse Keeper Wilford: You have not found Lilith yet? She can be found in the temple. Don't forget to present her the brooch that I gave you. That way, she'll respond to you better. Elves are helpless when it comes to flashy jewels!
[30005-06.htm] Warehouse Keeper Wilford: So you have met Lilith. You got the Lilith Elven Wafer? What a precious thing! Would you consider selling it to me? If that's not possible, please let me have just one bite! Is that impossible too? Oh, well... I guess you need it to pass the test.
[30005-07.htm] Warehouse Keeper Wilford: Maphr's Tablet Fragment? You came all the way to Talking Island to find it? Hmmm... I have not heard of any relics from the Giants on this island...
[30104-01.htm] Warehouse Keeper Parman: You must know that all dwarves such as I are union members. Dwarven society is extremely competitive by definition and their unions are even more so. You must not think that just because we are always smiling that being a union member is an easy life. In or out of the union, life for a Dwarf is a never-ending struggle for survival. (Quest for Dwarves of level 37 and above.)
[30104-01a.htm] Warehouse Keeper Parman: You should consider aspiring to be an upper-level member of the union, possibly a Bounty Hunter or a Warsmith. What do you think? Keep it in mind. In order to be an upper-level member, you must pass the Test of Prosperity. You are not yet ready to take this test. Return when you advance beyond apprentice and we will discuss your future. (Quest only for Dwarves who have changed occupations and are of level 37 or above.)
[30104-02.htm] Warehouse Keeper Parman: You joined the union and now you act like your struggle is over! You must start preparing to be an upper-level member of the union! How about a Bounty Hunter or a Warsmith? In order to advance in the union you must pass the Test of Prosperity. It is much harder than the test you took to join the union, and you are not ready for it. Return when you have more experience and we'll talk about your future. (Quest for Dwarves who have completed an occupation change and are of level 37 and above.)
[30104-03.htm] Warehouse Keeper Parman: You joined the union and now you act like your struggle is over! You must start preparing to be an upper-level member of the union! How about a Bounty Hunter or a Warsmith? In order to advance in the union you must pass the Test of Prosperity. It is much harder than the test you took to join the union, but I think you might be ready... "I will take the test!"
[30104-04.htm] Warehouse Keeper Parman: As you know, all Dwarves serve Maphr, the God of fertility. Fertility and goodness are one! It is the greatest virtue and the standard of right or wrong! The word 'fertility' derives from the ancient words for wealth, profit, rich soil and a healthy body. You must discover for yourself the true meaning of fertility. First you must find the 4 Tokens of Fertility. Wear this ring while you are taking the test. This will tell other union members that you are taking the test and they will help you. When you submit all 4 marks to the union, you have passed the first test. I wish you luck and that Maphr's will be done. Ask about the Token of Wealth Ask about the Token of Fertile Lands Ask about the Token of Fecundity. Ask about the Token of Health
[30104-04a.htm] Warehouse Keeper Parman: First Elder Lockirin has more authoritative knowledge of wealth than anyone else. He is leader of the 6 guilds that control the economy of this continent. Go to the Dwarven Village and meet Lockirin, ask him about the token that symbolizes wealth. Return
[30104-04b.htm] Warehouse Keeper Parman: In the Wastelands northwest of Gludio there is a farmer who sows crops and cultivates the land in spite of the rampaging Orcs. His name is Piotur. You should ask him about the Token of the Fertile Lands, since he is able to cultivate the Wastelands which everybody else has abandoned. Return
[30104-04c.htm] Warehouse Keeper Parman: In the Town of Dion there is a woman who bore 12 children and raised them alone. For that reason, she is called the Great Mother. She is the utmost expert of fertility. You should go and see her... I don't know her name, only that she is called the Great Mother. One of her sons is a guard of the village... Return
[30104-04d.htm] Warehouse Keeper Parman: It is said that on Talking Island there is an Elf that has been waiting for his lover's return for 1,000 years! It is very unusual, even for an Elf, to live that long, isn't it? He must have amazing health. I heard this story from the Warehouse Keeper Wilford of Talking Island. You should go and ask him to tell you more about the Elf that lived for over a thousand years. Return
[30104-04e.htm] Warehouse Freightman Parman: As you know, Dwarves worship Maphr, the god of prosperity. Prosperity is not only the highest virtue, it is the measure of morality! For your first test, you will discover what "prosperity" really means. Bring back 4 proofs of prosperity. Prosperity traditionally has 4 components: wealth, fertile lands, fertility and sound body. To pass the test, find all 4 proofs of prosperity. While performing the test, carry this ring with you. Other guildsmen will recognize it and render assistance to you. When you have found all the proofs, submit them to the guild and you will pass the first test. May Maphr grant you luck! Take this Dimension Diamond. You can trade it to the village gatekeeper for something special that may help you on your journey. Ask about the proof of wealth. Ask about the proof of fertile lands. Ask about the proof of fertility. Ask about the proof of sound body.
[30104-05.htm] Warehouse Keeper Parman: You must collect the 4 Tokens of Fertility. Ask about the Token of Wealth Ask about the Token of Fertile Lands Ask about the Token of Fecundity Ask about the Token of Health
[30104-06.htm] Warehouse Keeper Parman: So, you have found all 4 of the tokens? Let's see... The account book of the first elder Lockirin. This is indeed a suitable token of wealth! The recipe of Emily? Ah, this was given to you by the woman who bore and raised 12 children, the secret recipe passed down through her family that is traditionally eaten after giving birth to a child. It is perfect as the proof of fertility! Is the next a seed? Yes, I can smell the scent of a matured seed. I guess it must be a seed which Maphr, the God of earth has blessed. Good! Oh! Isn't this an Elven wafer? I guess it is from the Elf on Talking Island that has lived for more than a millennia. At one time wafers were common, but they have been rarely seen in modern times. I'm surprised you were able to get one, as wafers are known for not being sold nor given to other races. Well, you have gathered the 4 Tokens of Fertility. Congratulations! You have passed the first portion of test! However... It is not over yet. Now you must take the second test. Ask about the second test.
[30104-07.htm] Warehouse Keeper Parman: Now the real test has begun! The trial up to now has just been to test your skill and determination. Next you must participate in the guild association's long-cherished project and do well at it. You are not yet ready for this task. Come back when you have more experience and I will tell you what to do next.
[30104-08.htm] Warehouse Keeper Parman: Now the actual trial has begun. . Now you must take part in the Guild Guild's long-cherished project and achieve real results. The project is to excavate Maphr's Tablet and recover the Secrets of Absolute Geometry. Recently an ancient relic was unearthed by a team exploring the Cruma Tower. It is thought to be a part of Maphr's Tablet. Take this letter to Maestro Nikola at the Cruma Tower. He will tell you more. Ask about Absolute Geometry
[30104-08a.htm] Warehouse Keeper Parman: Absolute Geometry is an ancient science passed down to us by Maphr. It is the explanation of everything, the laws of space and motion for all things. He who understands Absolute Geometry can control the world. Our ancestors pursued the study of Absolute Geometry, which led to discoveries in mathematics, thermodynamics, measurement, architecture, astronomy, navigation and economics. This knowledge enabled us to build great architecture such as the sky garden of Shootguart and the great palace of Harnark. We were able to replace the barter system with the concept of monetary economy, and to develop warrior golems and such. But since the downfall of Giants, most of this technology has been lost. What a pity... Ask about Maphr's Tablet
[30104-08b.htm] Warehouse Keeper Parman: Maphr's Tablet is written in the language of the Giants, but we Dwarves are the true owners of the tablet. It was the Dwarves who learned directly from Maphr and to this day we retain our traditions of manufacturing, trading, and architecture! Other races, ignorant to our advances in math, dynamics, measurement and architecture won't even be able to follow the basics of Absolute Geometry. Obtaining Maphr's Tablet has always been our greatest wish and long-cherished dream. If only we could recover the secrets of Absolute Geometry, we would be able to rebuild our kingdom of Dwarves, and eventually control the entire continent! We could create a world where everything runs smoothly like a well-greased cogwheel...That is our heaven which we will create with our own hands. Unfortunately legend says that Maphr's Tablet was damaged when the war between the Gods and the Giants broke out. It is said that fearing the advanced technology of the Giants, the gods stole the tablet, broke it into 12 pieces and scattered it across the continent. Ask the whereabouts of Maphr's Tablet
[30104-08c.htm] Warehouse Keeper Parman: Recently news came to us of an ancient relic thought to be a part of Maphr's Tablet. Since the tablet was made during the era of the Giants, it seems very likely that it will be found somewhere among the Giants' Ruins. The investigation team exploring the Cruma Tower has reported that they have discovered a box in which they think the fragments of Maphr's Tablet are contained. You must go to the site and collect Maphr's Tablet fragments! This will not be an easy task. First, go and meet Maestro Nikola there. You should find him near the entrance of the Cruma Tower. He will tell you more.
[30104-09.htm] Warehouse Keeper Parman: Your enthusiasm is admirable but you aren't ready for the second test yet. Return when you have more experience.
[30104-10.htm] Warehouse Keeper Parman: Finally ready to take the second test, are you? Well, let's begin! You must take part in the Guild Guild's long-cherished project to excavate Maphr's Tablet and recover the Secrets of Absolute Geometry. Recently some information came to us about an ancient relic, thought to be a part of Maphr's Tablet. The investigative team exploring Cruma Tower have reported the discovery of a box thought to contain fragments of Maphr's Tablet. Take this letter and meet Maestro Nikola at the Cruma Tower. He will tell you more. Ask about Absolute Geometry
[30104-11.htm] Warehouse Keeper Parman: Why are you still here? You must take the letter to Maestro Nikola at Cruma Tower. He will tell you the details of Maphr's Tablet. Ask about Absolute Geometry
[30104-12.htm] Warehouse Keeper Parman: The recovery of the secrets of Absolute Geometry hidden within Maphr's Tablet is the long-cherished wish of our Dwarven Guild. If you can find at least one stone fragment you will pass the second test. Ask about Absolute Geometry
[30104-13.htm] Warehouse Freightman Parman: This is a piece of Maphr's Tablet! What a find you've made! Ah, Parman you old rascal, you've always had an eye for fresh talent. And look at what you've brought in! The elders will be very pleased when I relate this juicy bit of news at the next Centurions meeting. Listen . . . this is for your ears only, you understand . . . I heard that another piece of the tablet was discovered not long ago. Thanks to your discovery, we're even closer to unlocking the secrets of Maphr's mathematics. Now I have to send this piece to the Dwarven village so the elders can decode it. They're the only ones who can still read Titan, you understand -- humble folk like us have no clue what we've unearthed. Again, congratulations! You've passed the second test with flying colors, and I will now reward you with the Mark of Prosperity. Keep your nose to the grindstone, youngster, and you'll rise high in this guild. May you one day enjoy Maphr's prosperity!
[30368-01.htm] Lilith: What is a Dwarf doing on this remote island? You have come to see me? The Mark of Health? News has recently come of the death of my lover, for whom I have waited these thousand years...Do you feel my grief?... How could you bother me with something as trivial as a mark? Are all Dwarves like you? How could speak this way to a person in agony... You selfish, selfish Dwarf! Give the brooch as a present
[30368-02.htm] Lilith: A present...? What is this...! Did you really think that I would be pleased with such a thing? Could you have possibly thought that I would forget my 1,000 years of pain for the gift of a simple ornament? That's the way of the Dwarf, isn't it? You people know of nothing but worldly goods. Go away! Beg her to give the Mark of Health
[30368-03.htm] Lilith: What a nerve! You still want the Mark of Health? OK. Whatever. Take it! Are you happy now? Now that you have what you wanted, leave me! And don't ever come back again, you horrid little Dwarf!
[30368-04.htm] Lilith: I already gave you an Elven Wafer, why are you here again? I have nothing further to discuss with you.
[30368-05.htm] Lilith: I have nothing to discuss with you. Leave!
[30466-01.htm] Guard Bright: Ah, The Great Mother...? Yes, that is how my mother is known. She greatly deserves the title. She raised 12 children on her own. My father died before I was born. I was the last born child, and a posthumous one at that. My mother had no time to grieve my father's death and worked hard to raise us well. She had no rest until I was grown. Now that I have grown and settled down I can finally provide for my her. Would you like to meet her? She is probably at home right now... She is a bit shy around strangers... Lately she has been depressed and moody. I am sure she misses my father... I try to comfort her, but it is easier said than done... "How about giving your mother a present?"
[30466-02.htm] Guard Bright: A gift...? We are simple folk and rarely have the luxury of giving or receiving gifts... "It is not the gift, but the thought that counts!"
[30466-03.htm] Guard Bright: Yes, it is only the thought that counts. There is one thing that my mother loves, now that I think about it. It is a bouquet made from Mandragora Petals. I don't know the story behind it, but she always seems quietly happy whenever I give her that bouquet. I will create one for you to give her if you will bring me the materials. I will need 20 mandragora flower petals and 10 bunches of Crimson Moss. You can get the petals from the mandragoras plants that grow on the western part of the execution grounds. The moss can be found near the giant crimson ants of the Cruma marshlands. Good luck on your journey!
[30466-04.htm] Guard Bright: Do you remember all the materials needed for the bouquet? 20 mandragora flower petals and 10 bunches of Crimson Moss. You may acquire the petals from the mandragoras that grow on the west parts of the execution grounds, and the moss is found near the giant crimson ants of the Cruma marshlands. Good luck, then. I hope to make the bouquet soon and see my mother smile.
[30466-05.htm] Guard Bright: I see you have brought all the necessary materials. Good job! Now I will create a Mandragora Bouquet. Let's see, some Crimson Moss here, some petals there...hmm... There, all done! Take this bouquet of mandragora flowers to my mother. Her name is Emily. I know this will cheer her up...
[30466-06.htm] Guard Bright: Take this bouquet of mandragora flowers to my mother. Her name is Emily. I am on duty and cannot leave my post. I hope these flowers will cheer her up...
[30466-07.htm] Guard Bright: Have you found the Mark of Fertility that you sought? Mother's recipe...? Well, I'm not sure if there are any side-effects... I hope that this recipe may be of help to you.
[30466-08.htm] Guard Bright: So we meet again, Dwarf traveler! How have you been? Mother has been feeling better since she received the bouquet. I really appreciate your help with that. Thank you!
[30517-01.htm] Trader Shari: Yes, I know I need to pay my dues. But...well, my sales are way down lately. What can I do? I can't very well pay if I don't have the money, can I? I suppose I could borrow the money... In fact, I just took out a loan I was hoping to use to buy some new inventory. Oh, well...take it! Just take it and go! Now I don't know how I'm going to keep my store open...
[30517-02.htm] Trader Shari: Sob! What shall I do? How will I survive?
[30519-01.htm] Trader Mion: That bloody old fool never forgets his donation money! I have been too busy to bring it in. Here it is! Now take it to Elder Balanki. Who does he think he is? Won't even come to pick up the donation in person!
[30519-02.htm] Trader Mion: Urhh! Balanki, that bloody old man! He never forgets the donation money!
[30531-01.htm] First Elder Lockirin: Many years have passed since you left for the mainland. So, how are you? Have you managed to earn some money? Ah, yes, The Test of Prosperity. It is gratifying to see ambition in one so young...I suppose Parman told you that I am the one to see if you want the Mark of Wealth. I, First Elder Lockirin, Leader of the Dwarves, am he who holds the economy of the land in his grasp! Ask about wealth
[30531-02.htm] First Elder Lockirin: To a Dwarf, nothing in the world is more important than wealth. We serve the God Maphr because it is he from whom flows all wealth and abundance. Please don't misunderstand me, I mean no disrespect. My race possesses unfathomable wealth. Personally I could well afford a human estate. In spite of our embarrassment of riches, my race is still unsatisfied... If we could just get our hands on all of the fragments of Maphr's Tablet, we could buy the entire continent...our wealth would finally eclipse that of the humans! Only Maphr knows if I shall live to see this come to pass... Oh, pardon the idle musings of an old man. We have business to discuss. Let's talk about that Mark of Wealth that you are looking for. I would be happy to oblige, if only you would run a simple errand for me. Is this acceptable? Say you will run the errand
[30531-03.htm] First Elder Lockirin: This won't be very difficult. I only ask that you collect some overdue guild dues on my behalf. All guild members must pay dues periodically, but there are some who have not yet paid, even though their due dates have long passed. The Steel Gate Guild dues have all been collected, but some of the other guilds have some delinquent members. I would like you to visit them and collect their guild dues. I'm sure this will be a swift task for you. Here, take this badge and report to the 5 Elders here with me. They will give you the names of the delinquent members. Go and collect the dues and return them to the Elders. Collect 5 receipts from the other Elders and bring them to me.
[30531-04.htm] First Elder Lockirin: Remember to speak with all 5 Elders about overdue guild dues and make collections immediately. The elders will each give you a receipt when you turn in the dues to them. Collect all 5 receipts and bring them to me. Then you shall have your Mark of Wealth.
[30531-05.htm] First Elder Lockirin: Golden Wheel, Silver Balance, Black Anvil, Bronze Key, and Gray Pillar... Yes, that is all 5 receipts. Thank you for your troubles. I find overdue payment collections so tiresome. As the First Elder, I don't have time to chase down every freeloader. Thanks to you, all the accounts are settled. We are in your debt. You mentioned a Mark of Wealth? This should do nicely. Here is an accounting book that I have been keeping since I was a very young Dwarf. If you read this, you will discover the secrets of my wealth. Good luck with you future in the guild!
[30531-06.htm] First Elder Lockirin: Ah, a searcher for the four marks of abundance... That is not an uncomplicated task. Money alone will not solve all problems. Tenacity is essential to your success.
[30531-07.htm] First Elder Lockirin: If I could only get my hands on one the fragments of Maphr's Tablet I would be able to buy the entire continent! At last the humans would be subservient to us! Just one fragment!
[30532-01.htm] Elder Spiron: May you be blessed with wealth and the virtue of generosity! I am Spiron, the Chief Elder of the Golden Wheel Guild. Ah! I remember you. Did you not rid us of the goblin brigand? Though my memory has faded somewhat... You have grown much since I last saw you. So, you have come to collect guild dues on behalf of the First Elder? Let's have a look at the delinquent payments... Oh! I see Trader Shari of the weapons shop has not yet made his payment. I hear business has been bad since travelers have started to trade among themselves... I guess his financial worries are as bad as they say... Go to Shari and collect his dues, and then return with his payment.
[30532-02.htm] Elder Spiron: Go see Trader Shari of the weapons shop, collect his guild dues and bring them to me.
[30532-03.htm] Elder Spiron: Thank you very much. With this payment all of our members have paid their dues. Here is the receipt. Please take this to First Elder Lockirin. I hear Shari's business is not doing so well. I wonder how she managed to pay her dues...? What? She went into debt to make this payment? My my! I didn't know her financial status was that bad! I'll help her this time. I cannot ignore the troubles of a fellow guild member. I'll make her payment for her, and return her money. Good job, you can be on your way. I'll take care of the rest.
[30532-04.htm] Elder Spiron: I see you are working hard to collect the guild payment receipts. You will be generously rewarded for your efforts. Have faith!
[30533-01.htm] Elder Balanki: Pleased to meet you, very pleased indeed. I am Balanki Rollingrock. I am the lead Elder of the renowned Silver Balance Guild. So you are the one that the First Elder has sent to collect overdue guild dues? Let me see... Who has yet not paid... Hmm... Trader Mion of the grocery shop has not paid yet. I hear business is good, so why is she not paying her dues? And another one! Maryse Redbonnet! I guess revenge is more important to her than guild dues. Go at once and collect the guild dues from these two!
[30533-02.htm] Elder Balanki: Trader Mion of the grocery shop, and Maryse Redbonnet! Those 2 have not yet paid their dues! Go at once and collect the guild dues from them!
[30533-03.htm] Elder Balanki: Ah, Mion... So rich, but always late with guild payments. This is not the first time this has happened. She ignores her obligations on purpose. She must be taught a lesson! I see you have received Maryse Redbonnet's dues. I thought she was so blinded by revenge that she couldn't see anything else. At least she knows how to pay. Many thanks for your troubles! Here is the receipt. Take this to the First Elder.
[30533-04.htm] Elder Balanki: I see you are working hard to fulfill First Elder Lockirin's request. Hmmm... Well, the First Elder cannot go and personally collect the dues himself... Maybe you should work harder...
[30534-01.htm] Elder Keef: May the abundance of Maphr be with you! Well, look at you! Aren't you the one that hunted blade bats for me? So, how are you doing? I'm sure your situation has improved thanks to the hard work you did back then.. You look good! I wouldn't be surprised to see you get a promotion soon! Ah! You are collecting guild dues on behalf of the First Elder? Wait a minute. All right... Let's see who has not paid his dues yet! Oh my! That infamous rascal Carrier Torocco has not yet paid! I knew it. Always the troublemaker, he is! Go and collect the guild dues from Torocco.
[30534-02.htm] Elder Keef: Most of our guild members pay their dues in a timely manner. However, Torocco is always late. Please. Go to Carrier Torocco and collect his guild dues.
[30534-03.htm] Elder Keef: Hmm.... A piece of paper in lieu of payment? Another one of Torocco's tricks? Let me see... 'The bearer of this document hereby agrees to pay the Bronze Key Guild dues in place of Carrier Torocco.' Hmm... How generous of you! Offering to pay dues in place of that rascal. Well, I have no complaints as long as the dues are paid. I understand. You may make the payment for him. Pay Torocco's guild dues
[30534-03a.htm] Elder Keef: There is not enough money here! You don't have enough money to pay the guild dues? This is a problem!
[30534-03b.htm] Elder Keef: Guild dues of 5000 adena, paid. I see Torocco has a good friend. Here, take this receipt. First Elder Lockirin has been very concerned about overdue payments, so take the receipts to him immediately!
[30534-04.htm] Elder Keef: Hello, young friend, we meet again! I see you are working hard to collect the guild payment receipts! Please renew your efforts and think of the First Elder, who must be frustrated that guild dues are not being collected in a timely manner!
[30535-01.htm] Filaur of the Gray Pillar: May the blessings of the rich earth be with you. You have come to collect the dues in place of the First Elder? But... You look strangely familiar... Let me see... Yes! Aren't you the one that helped me find the Map of the hidden vein? It's been too long! I am glad to see you again. So, how is life treating you these days? Have you managed to earn some money? Oh yes! Right...I should not waste my time like this! Gossiping while you have so many things to do. Let me see, who has not paid his dues... Oh my! Miner Bolter has not yet paid. Strange that a diligent Dwarf like him has not paid. Go to him and find out why.
[30535-02.htm] Filaur of the Gray Pillar: Have you met Miner Bolter yet? No? He has not yet paid his guild dues. Go and collect payment from him.
[30535-03.htm] Filaur of the Gray Pillar: What? He already paid 13 days ago? That can't be... Wait a minute. I need to check my books again. Hmm... Miner May paid a week ago... Let me see... Bolter.... Oh! He's right! I must have missed this notation when I transferred the figures into my new book. What a mistake that was! Miner Bolter has a good memory indeed! Our guild has collected dues from all of our members. I will create a receipt for you to deliver to the First Elder. He has been worried about all the unpaid dues. I am sure he will be greatly pleased with your success.
[30535-04.htm] Filaur of the Gray Pillar: Are you still collecting overdue guild dues? Then why are you here? On your way, finish the task! Good luck!
[30536-01.htm] Elder Arin: I am Arin Curdhammer, a representative of the Black Anvil Guild. But wait! Haven't we met before? You look very familiar. Hmmm. Very strange, I never forget a face... Oh, well, I guess I am getting old.. Let's get on with the business at hand. Let's see, who has not paid his dues... Dear, dear! Master Toma is late with his payment! Oh my...this is quite a predicament. He is certainly old enough to know better... He hasn't been here for ages, probably still off roaming about the countryside. He must have forgotten that his guild dues are due. Please! Go to Master Toma and bring back his dues payment. He won't be easy to find, as he is always wandering...
[30536-02.htm] Elder Arin: Please bring back Master Toma's contribution. No doubt he is traveling and simply forgot about the due date... Ah, he can be so elusive -- I heard some time ago that he was fishing on the northern coast...
[30536-03.htm] Elder Arin: Phew!. Ah, the guild dues of Master Toma! So, how was he? Enraged? Yes, I thought he might be. He is one strange duck, that for sure. He looked down on me when I was a child, and still treats me like one, even though I am an Elder now... Anyway, I am glad it worked out. I'm sure that there would have been a greater fuss if I had personally gone myself. Thank you. Please take this receipt and deliver it to First Elder Lockirin.
[30536-04.htm] Elder Arin: I hate all this paperwork! Don't be in such a rush and do the tasks properly!
[30553-01.htm] Maryse Redbonnet: Contribution? All I can think about is that wolf! Everything else is secondary right now. I suppose if you help me get my revenge, I'll contribute as much as you want. Bring me 100 animal skins! (Animal skins are used to produce other items.)
[30553-02.htm] Maryse Redbonnet: Bring me 100 animal skins and I'll contribute as much as you want! (Animal skins are used to produce other items.)
[30553-03.htm] Maryse Redbonnet: Excellent! 100 animal skins! Now we're getting somewhere... As promised, here's my contribution! You know, that old fellow is really persistent. Sending someone to get the money! He'll get his someday too, mark my words.
[30553-04.htm] Maryse Redbonnet: That doddering old man really has his nerve! How dare he send a representative to collect money!
[30554-01.htm] Miner Bolter: Well, look what the cat dragged in! Long time no see! Seems like only yesterday that you were hunting Bearded Keltirs in these parts. Now look at you! Surprised that I remembered you, eh? Oh, I never forget a face -- especially that of a fellow guild member. So what brings you all the way out here? My dues!? I paid my dues 2 weeks ago! Are you calling me a liar?! Hmmph! I even have a receipt...somewhere around here... In any case, you'd best go straight to Filaur and get all this straightened out. Accusing honest Dwarves of cheating their guild -- hmmph!
[30554-02.htm] Miner Bolter: How dare you doubt my word! Take this receipt to Filaur of the Gray Pillar Guild and tell him I expect an apology. Hmmph! And to think I once shared my beer with you!
[30555-01.htm] Carrier Torocco: Oh, right, a donation! Uh, well, hmm... I don't seem to have any money with me... Oh, my... Excuse me, aren't you the one who found the Star Diamond for me? Could I trouble you to help me again please? Could you possibly pay the donation for me? Say you will pay for his donation
[30555-02.htm] Carrier Torocco: Thank you! Thank you so very much. I will not forget this! I will write you a warrant. It explains how you paid for my donation. You can give this warrant to Elder Keef. Again, thank you. Thank you so much!
[30555-03.htm] Carrier Torocco: Please pay the donation for me and then take the warrant that I gave you to Elder Keef. Thank you so much. I will never forget this!
[30556-01.htm] Master Toma: A donation? Let me see... Is it already time for another donation? Strange indeed! It seems like just yesterday I gave one. This wouldn't be a trick from that rascal Arin? He is so full of himself since he became an Elder... Oh, well, I can't say no to your request... Here is the donation...
[30556-02.htm] Master Toma: Stop bothering me! I gave you the donation, so take it and go! Give it to Arin, see if I'll care!
[30597-01.htm] Piotur: The land around here used to be fertile farmlands before the terrible war with Gracia. It was a peaceful place where simple farmers like myself tilled the land to make a living. When we tilled the land earnestly, mother earth would reward us with a rich harvest. But, because of the war, all the farms were burned down and the earth was devastated. Moreover, a group of Orcs has invaded our land and have settled here. Fertile lands... Gludio's best granary... Those are stories from long ago, but a memory now... But, is there not any hope?
[30597-02.htm] Piotur: Hope..., Yes, I suppose there is hope after all... These days the hired troops are taking care of the Orcs while my brothers and I work day and night to reclaim the land. Someday this farm will boast the richest land in the kingdom of Aden! So you seek the Token of the Fertile Lands? Then you shall have it. I was given this from another Dwarf. He appeared at a time when I had just come to this barren land and was having no luck growing crops. He gave me a seed and said that the blessings of Maphr were within it. When I planted this seed it enriched the soil and my harvests have been improving steadily since then. I put back some of the seeds and have saved them until this day. Now I shall share the seeds with you. This gift from one Dwarf I now give to another.
[30597-03.htm] Piotur: The seeds in which the blessings of Maphr dwell... This will be your Token of the Fertile Lands.
[30597-04.htm] Piotur: May the blessings of Maphr shine upon you and your tribe.
[30620-01.htm] Emily: Great Mother...? Yes, I have borne and raised 12 children. Surprised? People are always telling me that I do not look my age. People call me the 'Great Mother'. So embarrassing... There's nothing great about it. I loved my husband and children so much that I bore and raised as many as I could. It was terribly hard when I lost my husband in battle. Raising the children alone became so hard that I considered sending them away to foster homes. But we carried on through it all, and my children have all grown up and married. Well, all but my youngest. My work will be done when my youngest has married and set up house for himself. I will feel relief and sadness at the same time. Present her with the bouquet of flowers
[30620-02.htm] Emily: This bouquet...? Ah...! This bouquet holds a very special meaning for me... Bright said to give this to me? Oh my... When my husband proposed to me, he risked his life hunting the mandragoras to create this bouquet. And he proposed to me with it! I still remember that day so clearly... Oh my... I apologize, I still cry at that memory. Is there anything I can do for you? Ask about the Proof of Fertility
[30620-03.htm] Emily: The Mark of Fertility...that reminds me of something. There's a reason why I am so healthy, even though I have produced 12 children. It is because of the secret dish that has been passed on to me by my mother. Whoever eats this dish experiences less pain with childbirth and an easier time with the next pregnancy. This recipe is a closely guarded secret that is passed down only to the daughters of my family... But I will make an exception and give you the recipe. Here is the recipe for the dish. I think this will serve as sufficient proof of the Mark of Fertility. I hope this will help you..
[30620-04.htm] Emily: This recipe I have given you... I hope that it signifies the Mark of Fertility that you seek.
[30620-05.htm] Emily: My word! So we meet again. Thank you for delivering the gift from my son. By the way, was the recipe I gave you of any help?
[30621-01.htm] Maestro Nikola: So, you were sent by the guild! We have been looking forward to meeting you! If you're ready I'll get right down to business. A week ago, I went into the tower alone to do research. I admit it was a dangerous thing to do, since field investigations are not my specialty. During the search I found a very old, tightly locked box. The box appeared to be constructed of a material not of this earth. Ask about the box
[30621-02.htm] Maestro Nikola: Totally fascinated by the locked box, I devoted all my time to investigating it. The lock was impossible to pick, and the box seemed unbreakable. The box remained unopened for a while as I investigated its surroundings. This tower is well known as a former research center in the age of the Late Giants. On the floor I found some rather otherwise-ordinary looking stones that seemed to be engraved with the language of Giants... Before I go on, you must swear that you will not tell anyone of these stones... "Why shouldn't I?"
[30621-03.htm] Maestro Nikola: Well, actually, decoding of the Giant's characters is only allowed by the Elders of the guild. They keep all the knowledge from Giant records for themselves. I will probably not be suspected of breaking this rule since I secretly taught myself. It is an unfair rule anyway. I don't know what they are thinking... Anyway, as soon as I saw the stone, I knew that Maphr's Tablet Fragments were hidden inside the box. Suddenly I heard roars from the creatures all over the tower. I had to run away immediately. As I said earlier, I am not much of a fighter, so if I was attacked by the creatures I would most likely be killed. It has been a week since that day, and still I cannot bring myself to enter the tower. But I have an idea... I know where the box is and have determined that a special key must be used to open it. I have researched the materials and methods of creating such a key, and am quite sure I can do it! Ask about the key manufacturing
[30621-04.htm] Maestro Nikola: I know the materials needed to create the key, but still lack the shape. I need your help with this. Please go to the tower and copy the pattern of the keyhole! If we have a copy of the keyhole we can write down the recipe for making the key. Now take this clay and copy the pattern of the keyhole.
[30621-05.htm] Maestro Nikola: Now go into the tower and find the box. Do not try to open the box by yourself. All you have to do is make a copy of the keyhole with the clay I gave you!
[30621-06.htm] Maestro Nikola: Excellent! You have copied the keyhole! Well done! Now give me a moment while I write down the recipe for the key. Now... shall we get started Mapping the key's structure? Hmmm...I see that it is a very complicated structure in which many triple spirals are layered and connected to double spirals. I have never seen such a fantastic thing. But it won't be a problem for me! Done! I guarantee that you will be able to open the box if you follow the recipe. Just collect the needed materials. I will tell you which creatures you must hunt, as well. You will find everything in the Cruma Marshlands, so don't worry. I don't think this will be a problem for you. If everything is clear, let's get started!
[30621-07.htm] Maestro Nikola: Simply follow the recipe and you'll be able to make the key to open the box. Here is the list of the creatures that are needed and you will find the recipe materials in the Marshland of Cruma. If this is clear, then be on your way!
[30621-08.htm] Maestro Nikola: Once the key is done, take it to the tower and open the box. Wouldn't you like to know what is in the box?
[30621-09.htm] Maestro Nikola: Yes, we have finally obtained Maphr's Tablet Fragment! This is amazing. let me see... Hmm... Could it be? Knowing the characters is not enough to decipher this language. It will be impossible for us to interpret the tablet without the help of the Elders... Very well, then! Now deliver this to Warehouse Keeper Parman. This is all we can do now. I plan to return to Shootguart after looking around the tower a bit more...
[30622-01.htm] Box of Titan: This box was created during the period of Titan. Make a pattern of the keyhole
[30622-02.htm] Box of Titan: Make a keyhole pattern out of clay.
[30622-03.htm] Box of Titan: This box was created during the period of Titan. Use the Key of Titan
[30622-04.htm] Box of Titan: You have found 'Maphr's Tablet Fragment'.
[30622-05.htm] Box of Titan: The box is locked.
Исходник условий и наград (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.Q00221_TestimonyOfProsperity;
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;
import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
public class Q00221_TestimonyOfProsperity extends Quest
{
// NPCs
private static final int WILFORD = 30005;
private static final int PARMAN = 30104;
private static final int LILITH = 30368;
private static final int BRIGHT = 30466;
private static final int SHARI = 30517;
private static final int MION = 30519;
private static final int LOCKIRIN = 30531;
private static final int SPIRON = 30532;
private static final int BALANKI = 30533;
private static final int KEEF = 30534;
private static final int FILAUR = 30535;
private static final int ARIN = 30536;
private static final int MARYSE_REDBONNET = 30553;
private static final int BOLTER = 30554;
private static final int TOROCCO = 30555;
private static final int TOMA = 30556;
private static final int PIOTUR = 30597;
private static final int EMILY = 30620;
private static final int NIKOLA = 30621;
private static final int BOX_OF_TITAN = 30622;
// Monsters
private static final int MANDRAGORA_SPROUT_1 = 20223;
private static final int MANDRAGORA_SPROUT_2 = 20154;
private static final int MANDRAGORA_SAPLING = 20155;
private static final int MANDRAGORA_BLOSSOM = 20156;
private static final int MARSH_STAKATO = 20157;
private static final int GIANT_CRIMSON_ANT = 20228;
private static final int MARSH_STAKATO_WORKER = 20230;
private static final int TOAD_LORD = 20231;
private static final int MARSH_STAKATO_SOLDIER = 20232;
private static final int MARSH_SPIDER = 20233;
private static final int MARSH_STAKATO_DRONE = 20234;
// Items
private static final int ADENA = 57;
private static final int ANIMAL_SKIN = 1867;
private static final int RECIPE_TITAN_KEY = 3023;
private static final int KEY_OF_TITAN = 3030;
private static final int RING_OF_TESTIMONY_1 = 3239;
private static final int RING_OF_TESTIMONY_2 = 3240;
private static final int OLD_ACCOUNT_BOOK = 3241;
private static final int BLESSED_SEED = 3242;
private static final int EMILY_RECIPE = 3243;
private static final int LILITH_ELVEN_WAFER = 3244;
private static final int MAPHR_TABLET_FRAGMENT = 3245;
private static final int COLLECTION_LICENSE = 3246;
private static final int LOCKIRIN_NOTICE_1 = 3247;
private static final int LOCKIRIN_NOTICE_2 = 3248;
private static final int LOCKIRIN_NOTICE_3 = 3249;
private static final int LOCKIRIN_NOTICE_4 = 3250;
private static final int LOCKIRIN_NOTICE_5 = 3251;
private static final int CONTRIBUTION_OF_SHARI = 3252;
private static final int CONTRIBUTION_OF_MION = 3253;
private static final int CONTRIBUTION_OF_MARYSE = 3254;
private static final int MARYSE_REQUEST = 3255;
private static final int CONTRIBUTION_OF_TOMA = 3256;
private static final int RECEIPT_OF_BOLTER = 3257;
private static final int RECEIPT_OF_CONTRIBUTION_1 = 3258;
private static final int RECEIPT_OF_CONTRIBUTION_2 = 3259;
private static final int RECEIPT_OF_CONTRIBUTION_3 = 3260;
private static final int RECEIPT_OF_CONTRIBUTION_4 = 3261;
private static final int RECEIPT_OF_CONTRIBUTION_5 = 3262;
private static final int PROCURATION_OF_TOROCCO = 3263;
private static final int BRIGHT_LIST = 3264;
private static final int MANDRAGORA_PETAL = 3265;
private static final int CRIMSON_MOSS = 3266;
private static final int MANDRAGORA_BOUQUET = 3267;
private static final int PARMAN_INSTRUCTIONS = 3268;
private static final int PARMAN_LETTER = 3269;
private static final int CLAY_DOUGH = 3270;
private static final int PATTERN_OF_KEYHOLE = 3271;
private static final int NIKOLAS_LIST = 3272;
private static final int STAKATO_SHELL = 3273;
private static final int TOAD_LORD_SAC = 3274;
private static final int SPIDER_THORN = 3275;
private static final int CRYSTAL_BROOCH = 3428;
// Rewards
private static final int MARK_OF_PROSPERITY = 3238;
private static final int DIMENSIONAL_DIAMOND = 7562;
public Q00221_TestimonyOfProsperity()
{
super(221, "Testimony of Prosperity");
registerQuestItems(RING_OF_TESTIMONY_1, RING_OF_TESTIMONY_2, OLD_ACCOUNT_BOOK, BLESSED_SEED, EMILY_RECIPE, LILITH_ELVEN_WAFER, MAPHR_TABLET_FRAGMENT, COLLECTION_LICENSE, LOCKIRIN_NOTICE_1, LOCKIRIN_NOTICE_2, LOCKIRIN_NOTICE_3, LOCKIRIN_NOTICE_4, LOCKIRIN_NOTICE_5, CONTRIBUTION_OF_SHARI, CONTRIBUTION_OF_MION, CONTRIBUTION_OF_MARYSE, MARYSE_REQUEST, CONTRIBUTION_OF_TOMA, RECEIPT_OF_BOLTER, RECEIPT_OF_CONTRIBUTION_1, RECEIPT_OF_CONTRIBUTION_2, RECEIPT_OF_CONTRIBUTION_3, RECEIPT_OF_CONTRIBUTION_4, RECEIPT_OF_CONTRIBUTION_5, PROCURATION_OF_TOROCCO, BRIGHT_LIST, MANDRAGORA_PETAL, CRIMSON_MOSS, MANDRAGORA_BOUQUET, PARMAN_INSTRUCTIONS, PARMAN_LETTER, CLAY_DOUGH, PATTERN_OF_KEYHOLE, NIKOLAS_LIST, STAKATO_SHELL, TOAD_LORD_SAC, SPIDER_THORN, CRYSTAL_BROOCH);
addStartNpc(PARMAN);
addTalkId(WILFORD, PARMAN, LILITH, BRIGHT, SHARI, MION, LOCKIRIN, SPIRON, BALANKI, KEEF, FILAUR, ARIN, MARYSE_REDBONNET, BOLTER, TOROCCO, TOMA, PIOTUR, EMILY, NIKOLA, BOX_OF_TITAN);
addKillId(MANDRAGORA_SPROUT_1, MANDRAGORA_SAPLING, MANDRAGORA_BLOSSOM, MARSH_STAKATO, MANDRAGORA_SPROUT_2, GIANT_CRIMSON_ANT, MARSH_STAKATO_WORKER, TOAD_LORD, MARSH_STAKATO_SOLDIER, MARSH_SPIDER, MARSH_STAKATO_DRONE);
}
@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 "30104-04.htm":
{
st.startQuest();
giveItems(player, RING_OF_TESTIMONY_1, 1);
if (!player.getVariables().getBoolean("secondClassChange37", false))
{
htmltext = "30104-04e.htm";
giveItems(player, DIMENSIONAL_DIAMOND, DF_REWARD_37.get(player.getRace().ordinal()));
player.getVariables().set("secondClassChange37", true);
}
break;
}
case "30104-07.htm":
{
takeItems(player, BLESSED_SEED, 1);
takeItems(player, EMILY_RECIPE, 1);
takeItems(player, LILITH_ELVEN_WAFER, 1);
takeItems(player, OLD_ACCOUNT_BOOK, 1);
takeItems(player, RING_OF_TESTIMONY_1, 1);
if (player.getLevel() < 38)
{
st.setCond(3, true);
giveItems(player, PARMAN_INSTRUCTIONS, 1);
}
else
{
htmltext = "30104-08.htm";
st.setCond(4, true);
giveItems(player, PARMAN_LETTER, 1);
giveItems(player, RING_OF_TESTIMONY_2, 1);
}
break;
}
case "30531-02.htm":
{
if (hasQuestItems(player, COLLECTION_LICENSE))
{
htmltext = "30531-04.htm";
}
break;
}
case "30531-03.htm":
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, COLLECTION_LICENSE, 1);
giveItems(player, LOCKIRIN_NOTICE_1, 1);
giveItems(player, LOCKIRIN_NOTICE_2, 1);
giveItems(player, LOCKIRIN_NOTICE_3, 1);
giveItems(player, LOCKIRIN_NOTICE_4, 1);
giveItems(player, LOCKIRIN_NOTICE_5, 1);
break;
}
case "30534-03a.htm":
{
if (getQuestItemsCount(player, ADENA) >= 5000)
{
htmltext = "30534-03b.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, ADENA, 5000);
takeItems(player, PROCURATION_OF_TOROCCO, 1);
giveItems(player, RECEIPT_OF_CONTRIBUTION_3, 1);
}
break;
}
case "30005-04.htm":
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, CRYSTAL_BROOCH, 1);
break;
}
case "30466-03.htm":
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, BRIGHT_LIST, 1);
break;
}
case "30555-02.htm":
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, PROCURATION_OF_TOROCCO, 1);
break;
}
case "30368-03.htm":
{
takeItems(player, CRYSTAL_BROOCH, 1);
giveItems(player, LILITH_ELVEN_WAFER, 1);
if (hasQuestItems(player, BLESSED_SEED, OLD_ACCOUNT_BOOK, EMILY_RECIPE))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30597-02.htm":
{
giveItems(player, BLESSED_SEED, 1);
if (hasQuestItems(player, OLD_ACCOUNT_BOOK, EMILY_RECIPE, LILITH_ELVEN_WAFER))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30620-03.htm":
{
takeItems(player, MANDRAGORA_BOUQUET, 1);
giveItems(player, EMILY_RECIPE, 1);
if (hasQuestItems(player, BLESSED_SEED, OLD_ACCOUNT_BOOK, LILITH_ELVEN_WAFER))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30621-04.htm":
{
st.setCond(5, true);
giveItems(player, CLAY_DOUGH, 1);
break;
}
case "30622-02.htm":
{
st.setCond(6, true);
takeItems(player, CLAY_DOUGH, 1);
giveItems(player, PATTERN_OF_KEYHOLE, 1);
break;
}
case "30622-04.htm":
{
st.setCond(9, true);
takeItems(player, KEY_OF_TITAN, 1);
takeItems(player, NIKOLAS_LIST, 1);
takeItems(player, RECIPE_TITAN_KEY, 1);
takeItems(player, STAKATO_SHELL, 20);
takeItems(player, SPIDER_THORN, 10);
takeItems(player, TOAD_LORD_SAC, 10);
giveItems(player, MAPHR_TABLET_FRAGMENT, 1);
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.getRace() != Race.DWARF)
{
htmltext = "30104-01.htm";
}
else if (player.getLevel() < 37)
{
htmltext = "30104-02.htm";
}
else if (player.getPlayerClass().level() != 1)
{
htmltext = "30104-01a.htm";
}
else
{
htmltext = "30104-03.htm";
}
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case PARMAN:
{
if (cond == 1)
{
htmltext = "30104-05.htm";
}
else if (cond == 2)
{
htmltext = "30104-06.htm";
}
else if (cond == 3)
{
if (player.getLevel() < 38)
{
htmltext = "30104-09.htm";
}
else
{
htmltext = "30104-10.htm";
st.setCond(4, true);
takeItems(player, PARMAN_INSTRUCTIONS, 1);
giveItems(player, PARMAN_LETTER, 1);
giveItems(player, RING_OF_TESTIMONY_2, 1);
}
}
else if ((cond > 3) && (cond < 7))
{
htmltext = "30104-11.htm";
}
else if ((cond == 7) || (cond == 8))
{
htmltext = "30104-12.htm";
}
else if (cond == 9)
{
htmltext = "30104-13.htm";
takeItems(player, MAPHR_TABLET_FRAGMENT, 1);
takeItems(player, RING_OF_TESTIMONY_2, 1);
giveItems(player, MARK_OF_PROSPERITY, 1);
addExpAndSp(player, 12969, 1000);
player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
st.exitQuest(false, true);
}
break;
}
case LOCKIRIN:
{
if ((cond == 1) || (cond == 2))
{
if (hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, RECEIPT_OF_CONTRIBUTION_1, RECEIPT_OF_CONTRIBUTION_2, RECEIPT_OF_CONTRIBUTION_3, RECEIPT_OF_CONTRIBUTION_4, RECEIPT_OF_CONTRIBUTION_5))
{
htmltext = "30531-05.htm";
takeItems(player, COLLECTION_LICENSE, 1);
takeItems(player, RECEIPT_OF_CONTRIBUTION_1, 1);
takeItems(player, RECEIPT_OF_CONTRIBUTION_2, 1);
takeItems(player, RECEIPT_OF_CONTRIBUTION_3, 1);
takeItems(player, RECEIPT_OF_CONTRIBUTION_4, 1);
takeItems(player, RECEIPT_OF_CONTRIBUTION_5, 1);
giveItems(player, OLD_ACCOUNT_BOOK, 1);
if (hasQuestItems(player, BLESSED_SEED, EMILY_RECIPE, LILITH_ELVEN_WAFER))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
else
{
htmltext = "30531-04.htm";
}
}
else
{
htmltext = (hasQuestItems(player, OLD_ACCOUNT_BOOK)) ? "30531-06.htm" : "30531-01.htm";
}
}
else if (cond >= 4)
{
htmltext = "30531-07.htm";
}
break;
}
case SPIRON:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, LOCKIRIN_NOTICE_1))
{
htmltext = "30532-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, LOCKIRIN_NOTICE_1, 1);
}
else if (hasQuestItems(player, CONTRIBUTION_OF_SHARI))
{
htmltext = "30532-03.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, CONTRIBUTION_OF_SHARI, 1);
giveItems(player, RECEIPT_OF_CONTRIBUTION_1, 1);
}
else
{
htmltext = (hasQuestItems(player, RECEIPT_OF_CONTRIBUTION_1)) ? "30532-04.htm" : "30532-02.htm";
}
}
break;
}
case BALANKI:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, LOCKIRIN_NOTICE_2))
{
htmltext = "30533-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, LOCKIRIN_NOTICE_2, 1);
}
else if (hasQuestItems(player, CONTRIBUTION_OF_MARYSE, CONTRIBUTION_OF_MION))
{
htmltext = "30533-03.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, CONTRIBUTION_OF_MARYSE, 1);
takeItems(player, CONTRIBUTION_OF_MION, 1);
giveItems(player, RECEIPT_OF_CONTRIBUTION_2, 1);
}
else
{
htmltext = (hasQuestItems(player, RECEIPT_OF_CONTRIBUTION_2)) ? "30533-04.htm" : "30533-02.htm";
}
}
break;
}
case KEEF:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, LOCKIRIN_NOTICE_3))
{
htmltext = "30534-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, LOCKIRIN_NOTICE_3, 1);
}
else if (hasQuestItems(player, PROCURATION_OF_TOROCCO))
{
htmltext = "30534-03.htm";
}
else
{
htmltext = (hasQuestItems(player, RECEIPT_OF_CONTRIBUTION_3)) ? "30534-04.htm" : "30534-02.htm";
}
}
break;
}
case FILAUR:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, LOCKIRIN_NOTICE_4))
{
htmltext = "30535-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, LOCKIRIN_NOTICE_4, 1);
}
else if (hasQuestItems(player, RECEIPT_OF_BOLTER))
{
htmltext = "30535-03.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, RECEIPT_OF_BOLTER, 1);
giveItems(player, RECEIPT_OF_CONTRIBUTION_4, 1);
}
else
{
htmltext = (hasQuestItems(player, RECEIPT_OF_CONTRIBUTION_4)) ? "30535-04.htm" : "30535-02.htm";
}
}
break;
}
case ARIN:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, LOCKIRIN_NOTICE_5))
{
htmltext = "30536-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, LOCKIRIN_NOTICE_5, 1);
}
else if (hasQuestItems(player, CONTRIBUTION_OF_TOMA))
{
htmltext = "30536-03.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, CONTRIBUTION_OF_TOMA, 1);
giveItems(player, RECEIPT_OF_CONTRIBUTION_5, 1);
}
else
{
htmltext = (hasQuestItems(player, RECEIPT_OF_CONTRIBUTION_5)) ? "30536-04.htm" : "30536-02.htm";
}
}
break;
}
case SHARI:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, CONTRIBUTION_OF_SHARI))
{
htmltext = "30517-02.htm";
}
else if (!hasAtLeastOneQuestItem(player, LOCKIRIN_NOTICE_1, RECEIPT_OF_CONTRIBUTION_1))
{
htmltext = "30517-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, CONTRIBUTION_OF_SHARI, 1);
}
}
break;
}
case MION:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, CONTRIBUTION_OF_MION))
{
htmltext = "30519-02.htm";
}
else if (!hasAtLeastOneQuestItem(player, LOCKIRIN_NOTICE_2, RECEIPT_OF_CONTRIBUTION_2))
{
htmltext = "30519-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, CONTRIBUTION_OF_MION, 1);
}
}
break;
}
case MARYSE_REDBONNET:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, MARYSE_REQUEST))
{
if (getQuestItemsCount(player, ANIMAL_SKIN) < 100)
{
htmltext = "30553-02.htm";
}
else
{
htmltext = "30553-03.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, ANIMAL_SKIN, 100);
takeItems(player, MARYSE_REQUEST, 1);
giveItems(player, CONTRIBUTION_OF_MARYSE, 1);
}
}
else if (hasQuestItems(player, CONTRIBUTION_OF_MARYSE))
{
htmltext = "30553-04.htm";
}
else if (!hasAtLeastOneQuestItem(player, LOCKIRIN_NOTICE_2, RECEIPT_OF_CONTRIBUTION_2))
{
htmltext = "30553-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, MARYSE_REQUEST, 1);
}
}
break;
}
case TOROCCO:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, PROCURATION_OF_TOROCCO))
{
htmltext = "30555-03.htm";
}
else if (!hasAtLeastOneQuestItem(player, LOCKIRIN_NOTICE_3, RECEIPT_OF_CONTRIBUTION_3))
{
htmltext = "30555-01.htm";
}
}
break;
}
case BOLTER:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, RECEIPT_OF_BOLTER))
{
htmltext = "30554-02.htm";
}
else if (!hasAtLeastOneQuestItem(player, LOCKIRIN_NOTICE_4, RECEIPT_OF_CONTRIBUTION_4))
{
htmltext = "30554-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, RECEIPT_OF_BOLTER, 1);
}
}
break;
}
case TOMA:
{
if ((cond == 1) && hasQuestItems(player, COLLECTION_LICENSE))
{
if (hasQuestItems(player, CONTRIBUTION_OF_TOMA))
{
htmltext = "30556-02.htm";
}
else if (!hasAtLeastOneQuestItem(player, LOCKIRIN_NOTICE_5, RECEIPT_OF_CONTRIBUTION_5))
{
htmltext = "30556-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, CONTRIBUTION_OF_TOMA, 1);
}
}
break;
}
case PIOTUR:
{
if ((cond == 1) || (cond == 2))
{
htmltext = (hasQuestItems(player, BLESSED_SEED)) ? "30597-03.htm" : "30597-01.htm";
}
else if (cond >= 4)
{
htmltext = "30597-04.htm";
}
break;
}
case WILFORD:
{
if ((cond == 1) || (cond == 2))
{
if (hasQuestItems(player, LILITH_ELVEN_WAFER))
{
htmltext = "30005-06.htm";
}
else
{
htmltext = (hasQuestItems(player, CRYSTAL_BROOCH)) ? "30005-05.htm" : "30005-01.htm";
}
}
else if (cond >= 4)
{
htmltext = "30005-07.htm";
}
break;
}
case LILITH:
{
if ((cond == 1) || (cond == 2))
{
if (hasQuestItems(player, CRYSTAL_BROOCH))
{
htmltext = "30368-01.htm";
}
else if (hasQuestItems(player, LILITH_ELVEN_WAFER))
{
htmltext = "30368-04.htm";
}
}
else if (cond >= 4)
{
htmltext = "30368-05.htm";
}
break;
}
case BRIGHT:
{
if ((cond == 1) || (cond == 2))
{
if (hasQuestItems(player, EMILY_RECIPE))
{
htmltext = "30466-07.htm";
}
else if (hasQuestItems(player, MANDRAGORA_BOUQUET))
{
htmltext = "30466-06.htm";
}
else if (hasQuestItems(player, BRIGHT_LIST))
{
if ((getQuestItemsCount(player, CRIMSON_MOSS) + getQuestItemsCount(player, MANDRAGORA_PETAL)) < 30)
{
htmltext = "30466-04.htm";
}
else
{
htmltext = "30466-05.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, BRIGHT_LIST, 1);
takeItems(player, CRIMSON_MOSS, 10);
takeItems(player, MANDRAGORA_PETAL, 20);
giveItems(player, MANDRAGORA_BOUQUET, 1);
}
}
else
{
htmltext = "30466-01.htm";
}
}
else if (cond >= 4)
{
htmltext = "30466-08.htm";
}
break;
}
case EMILY:
{
if ((cond == 1) || (cond == 2))
{
if (hasQuestItems(player, EMILY_RECIPE))
{
htmltext = "30620-04.htm";
}
else if (hasQuestItems(player, MANDRAGORA_BOUQUET))
{
htmltext = "30620-01.htm";
}
}
else if (cond >= 4)
{
htmltext = "30620-05.htm";
}
break;
}
case NIKOLA:
{
if (cond == 4)
{
htmltext = "30621-01.htm";
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, PARMAN_LETTER, 1);
}
else if (cond == 5)
{
htmltext = "30621-05.htm";
}
else if (cond == 6)
{
htmltext = "30621-06.htm";
st.setCond(7, true);
takeItems(player, PATTERN_OF_KEYHOLE, 1);
giveItems(player, NIKOLAS_LIST, 1);
giveItems(player, RECIPE_TITAN_KEY, 1);
}
else if ((cond == 7) || (cond == 8))
{
htmltext = (hasQuestItems(player, KEY_OF_TITAN)) ? "30621-08.htm" : "30621-07.htm";
}
else if (cond == 9)
{
htmltext = "30621-09.htm";
}
break;
}
case BOX_OF_TITAN:
{
if (cond == 5)
{
htmltext = "30622-01.htm";
}
else if ((cond == 8) && hasQuestItems(player, KEY_OF_TITAN))
{
htmltext = "30622-03.htm";
}
else
{
htmltext = "30622-05.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 MANDRAGORA_SPROUT_1:
{
if (hasQuestItems(player, BRIGHT_LIST) && (getQuestItemsCount(player, MANDRAGORA_PETAL) < 20) && (getRandom(10) < 3))
{
giveItems(player, MANDRAGORA_PETAL, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case MANDRAGORA_SPROUT_2:
{
if (hasQuestItems(player, BRIGHT_LIST) && (getQuestItemsCount(player, MANDRAGORA_PETAL) < 20) && (getRandom(10) < 6))
{
giveItems(player, MANDRAGORA_PETAL, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case MANDRAGORA_SAPLING:
{
if (hasQuestItems(player, BRIGHT_LIST) && (getQuestItemsCount(player, MANDRAGORA_PETAL) < 20) && (getRandom(10) < 8))
{
giveItems(player, MANDRAGORA_PETAL, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case MANDRAGORA_BLOSSOM:
{
if (hasQuestItems(player, BRIGHT_LIST) && (getQuestItemsCount(player, MANDRAGORA_PETAL) < 20))
{
giveItems(player, MANDRAGORA_PETAL, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case GIANT_CRIMSON_ANT:
{
if (hasQuestItems(player, BRIGHT_LIST) && (getQuestItemsCount(player, CRIMSON_MOSS) < 10))
{
giveItems(player, CRIMSON_MOSS, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case MARSH_STAKATO:
{
if (st.isCond(7) && (getQuestItemsCount(player, STAKATO_SHELL) < 20) && (getRandom(10) < 2))
{
giveItems(player, STAKATO_SHELL, 1);
if ((getQuestItemsCount(player, STAKATO_SHELL) >= 20) && ((getQuestItemsCount(player, TOAD_LORD_SAC) + getQuestItemsCount(player, SPIDER_THORN)) == 20))
{
st.setCond(8, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case MARSH_STAKATO_WORKER:
{
if (st.isCond(7) && (getQuestItemsCount(player, STAKATO_SHELL) < 20) && (getRandom(10) < 3))
{
giveItems(player, STAKATO_SHELL, 1);
if ((getQuestItemsCount(player, STAKATO_SHELL) >= 20) && ((getQuestItemsCount(player, TOAD_LORD_SAC) + getQuestItemsCount(player, SPIDER_THORN)) == 20))
{
st.setCond(8, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case MARSH_STAKATO_SOLDIER:
{
if (st.isCond(7) && (getQuestItemsCount(player, STAKATO_SHELL) < 20) && (getRandom(10) < 5))
{
giveItems(player, STAKATO_SHELL, 1);
if ((getQuestItemsCount(player, STAKATO_SHELL) >= 20) && ((getQuestItemsCount(player, TOAD_LORD_SAC) + getQuestItemsCount(player, SPIDER_THORN)) == 20))
{
st.setCond(8, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case MARSH_STAKATO_DRONE:
{
if (st.isCond(7) && (getQuestItemsCount(player, STAKATO_SHELL) < 20) && (getRandom(10) < 6))
{
giveItems(player, STAKATO_SHELL, 1);
if ((getQuestItemsCount(player, STAKATO_SHELL) >= 20) && ((getQuestItemsCount(player, TOAD_LORD_SAC) + getQuestItemsCount(player, SPIDER_THORN)) == 20))
{
st.setCond(8, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case TOAD_LORD:
{
if (st.isCond(7) && (getQuestItemsCount(player, TOAD_LORD_SAC) < 10) && (getRandom(10) < 2))
{
giveItems(player, TOAD_LORD_SAC, 1);
if ((getQuestItemsCount(player, TOAD_LORD_SAC) >= 10) && ((getQuestItemsCount(player, STAKATO_SHELL) + getQuestItemsCount(player, SPIDER_THORN)) == 30))
{
st.setCond(8, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case MARSH_SPIDER:
{
if (st.isCond(7) && (getQuestItemsCount(player, SPIDER_THORN) < 10) && (getRandom(10) < 2))
{
giveItems(player, SPIDER_THORN, 1);
if ((getQuestItemsCount(player, SPIDER_THORN) >= 10) && ((getQuestItemsCount(player, STAKATO_SHELL) + getQuestItemsCount(player, TOAD_LORD_SAC)) == 30))
{
st.setCond(8, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
}
}
}