Hunt of the Black Lion
- ID
- 333
- Название
- Hunt of the Black Lion
- start_npcs_json
- [30735]
- npc_ids_json
- [30130,30471,30531,30735,30736,30737]
- constants_json
- {"SOPHYA":30735,"REDFOOT":30736,"RUPIO":30471,"UNDRIAS":30130,"LOCKIRIN":30531,"MORGAN":30737,"BLACK_LION_MARK":1369,"LION_CLAW":3675,"LION_EYE":3676,"GUILD_COIN":3677,"UNDEAD_ASH":3848,"BLOODY_AXE_INSIGNIA":3849,"DELU_FANG":3850,"STAKATO_TALON":3851,"SOPHYA_LETTER_1":3671,"SOPHYA_LETTER_2":3672,"SOPHYA_LETTER_3":3673,"SOPHYA_LETTER_4":3674,"CARGO_BOX_1":3440,"CARGO_BOX_2":3441,"CARGO_BOX_3":3442,"CARGO_BOX_4":3443,"GLUDIO_APPLE":3444,"CORN_MEAL":3445,"WOLF_PELTS":3446,"MOONSTONE":3447,"GLUDIO_WHEAT_FLOWER":3448,"SPIDERSILK_ROPE":3449,"ALEXANDRITE":3450,"SILVER_TEA":3451,"GOLEM_PART":3452,"FIRE_EMERALD":3453,"SILK_FROCK":3454,"PORCELAN_URN":3455,"IMPERIAL_DIAMOND":3456,"STATUE_SHILIEN_HEAD":3457,"STATUE_SHILIEN_TORSO":3458,"STATUE_SHILIEN_ARM":3459,"STATUE_SHILIEN_LEG":3460,"COMPLETE_STATUE":3461,"TABLET_FRAGMENT_1":3462,"TABLET_FRAGMENT_2":3463,"TABLET_FRAGMENT_3":3464,"TABLET_FRAGMENT_4":3465,"COMPLETE_TABLET":3466,"ADENA":57,"SWIFT_ATTACK_POTION":735,"SCROLL_OF_ESCAPE":736,"HEALING_POTION":1061,"SOULSHOT_D":1463,"SPIRITSHOT_D":2510}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00333_HuntOfTheBlackLion/Q00333_HuntOfTheBlackLion.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 30130 | Undrias | Нет | 70 |
| 30471 | Rupio | Нет | 70 |
| 30531 | Lockirin | Нет | 70 |
| 30735 | Sophya | Да | 70 |
| 30736 | Redfoot | Нет | 70 |
| 30737 | Morgan | Нет | 70 |
Условия уровней: выражения из Java
if (player.getLevel() < 25)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, SOPHYA_LETTER_1, 1); giveItems(player, SOPHYA_LETTER_2, 1); giveItems(player, SOPHYA_LETTER_3, 1); giveItems(player, SOPHYA_LETTER_4, 1); giveItems(player, LION_EYE, 1); giveItems(player, HEALING_POTION, 20); giveItems(player, player.isMageClass() ? SPIRITSHOT_D : SOULSHOT_D, player.isMageClass() ? 50 : 100); giveItems(player, SCROLL_OF_ESCAPE, 20); giveItems(player, SWIFT_ATTACK_POTION, 3); giveItems(player, LION_EYE, 1); giveItems(player, HEALING_POTION, 25); giveItems(player, player.isMageClass() ? SPIRITSHOT_D : SOULSHOT_D, player.isMageClass() ? 100 : 200); giveItems(player, SCROLL_OF_ESCAPE, 20); giveItems(player, SWIFT_ATTACK_POTION, 3); giveItems(player, HEALING_POTION, 50); giveItems(player, player.isMageClass() ? SPIRITSHOT_D : SOULSHOT_D, player.isMageClass() ? 200 : 400); giveItems(player, SCROLL_OF_ESCAPE, 30); giveItems(player, SWIFT_ATTACK_POTION, 4); giveItems(player, ADENA, 12400); giveItems(player, GLUDIO_APPLE, 1); giveItems(player, CORN_MEAL, 1); giveItems(player, WOLF_PELTS, 1); giveItems(player, MOONSTONE, 1); giveItems(player, GLUDIO_WHEAT_FLOWER, 1); giveItems(player, SPIDERSILK_ROPE, 1); giveItems(player, ALEXANDRITE, 1); giveItems(player, SILVER_TEA, 1); giveItems(player, GOLEM_PART, 1); giveItems(player, FIRE_EMERALD, 1); giveItems(player, SILK_FROCK, 1); giveItems(player, PORCELAN_URN, 1); giveItems(player, IMPERIAL_DIAMOND, 1); giveItems(player, STATUE_SHILIEN_HEAD, 1); giveItems(player, STATUE_SHILIEN_TORSO, 1); giveItems(player, STATUE_SHILIEN_ARM, 1); giveItems(player, STATUE_SHILIEN_LEG, 1); giveItems(player, TABLET_FRAGMENT_1, 1); giveItems(player, TABLET_FRAGMENT_2, 1); giveItems(player, TABLET_FRAGMENT_3, 1); giveItems(player, TABLET_FRAGMENT_4, 1); giveItems(player, COMPLETE_STATUE, 1); giveItems(player, COMPLETE_TABLET, 1); giveItems(player, ADENA, 30000); giveItems(player, ADENA, 30000); giveItems(player, ADENA, 100); giveItems(player, ADENA, 200); giveItems(player, ADENA, 300); giveItems(player, GUILD_COIN, 1); giveItems(player, ADENA, count * 35); giveItems(player, LION_CLAW, 1); giveItems(player, LION_CLAW, 2); giveItems(player, LION_CLAW, 3); giveItems(player, info[2], 1); giveItems(player, info[4], 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30130-01.htm] Abyssal Celebrant Undrias: This sacred shrine is the only one of its kind on the entire continent. Yet the Humans spread lies about the goddess Shilen, denying that she is the giver of both life and death. When they invaded the Temple alongside those filthy Elves, many sacred objects were plundered. I especially mourn the loss of some exquisitely-crafted statues of Shilen. In fact, I have offered a sizable reward to anyone who recovers them...
[30130-02.htm] Abyssal Celebrant Undrias: Is this a piece from one of the lost statues of Shilen? Where did you find it? If you can recover enough pieces to reconstruct a whole statue, you will be richly rewarded!
[30130-03.htm] Abyssal Celebrant Undrias: One of the lost statues of Shilen! Give it to me and you will be richly rewarded, that I promise you! Give him the statue. Refuse to give him the statue.
[30130-04.htm] Abyssal Celebrant Undrias: You have helped restore some of the splendor of the Temple of Shilen that was robbed from it by those Human and Elven vermin. Take this reward with my thanks. I will give you even more if you are able to recover any other lost statues. Go and serve your goddess faithfully!
[30130-05.htm] Abyssal Celebrant Undrias: This statue is sacred to us! It is of no use to you. In fact, the Humans would burn you at the stake if they found it in your possession! Now come to your senses and give me the statue. As I told you, you will be richly rewarded for your efforts.
[30471-01.htm] Blacksmith Rupio: Are you a Black Lion mercenary? Why are you here? Have you come to have a weapon made?
[30471-02.htm] Blacksmith Rupio: What can I do to help? "Please put together the statue." "Please put together the stone tablet."
[30471-03.htm] Blacksmith Rupio: How did you know that my hobby was relic restoration? The restoration of a stone item to its original condition requires all the pieces. If you wish for me to restore this statue of the goddess, I must have all of the pieces, the head, torso, arms and legs. Do you understand?
[30471-04.htm] Blacksmith Rupio: Do you care to watch the master at work? First, I will attach the legs to the base... Then the torso above that... Now we match the joints of the arms and head properly... Voila! It's finished! The joints are still visible, but overall, it looks wonderful, don't you think? Hmm... Is this a statue of the goddess of Shilen? The detail is really quite enchanting...
[30471-05.htm] Blacksmith Rupio: Do you care to watch the master at work? First, I will attach the legs to the base... Then the torso above that... Now we match the joints of the arms and head properly... Oh my! I didn't expect that to happen! It just crumbled away... I realize that it was very old and fragile but.. I just applied some light pressure to connect... Oh, I am so sorry!
[30471-06.htm] Blacksmith Rupio: How did you know that my hobby was relic restoration? Relics like tablets upon which words are written cannot be deciphered if there is even one piece missing. It isn't worth the effort to put the other pieces together. In my experience, square relics such as stone tablets often break into four pieces.
[30471-07.htm] Blacksmith Rupio: Would you care to watch the master at work? This fragment looks like it connects to the bottom of the tablet... And this piece goes above that... Like putting together a puzzle, isn't it?... Here we go! Finished! An ancient stone tablet... I wonder whether some secrets of history are written here? Hmm... It looks vaguely familiar.. These letters look like the language of the Titans... How in the world...?!
[30471-08.htm] Blacksmith Rupio: Would you care to watch the master at work? Let's see, this fragment attaches to the bottom of the tablet... And this piece goes above that... Oh no! Why did it crumble like that? I suppose that it deteriorated from so many years exposed to the elements... I should have been more careful! How could I have been so careless! My most sincere apologies.
[30531-01.htm] First Elder Lockirin: I am fascinated by the civilization of the Titans. I'd pay anything to actually hold in my hands a Clay Tablet on which titan writing exists. I am sure that someone as well-traveled as yourself is familiar with such things. I have heard that Ancient Clay Tablets are often found in the Dion region...
[30531-02.htm] First Elder Lockirin: Oh my! This Clay Tablet... Where in the world did you find this? Of course its just a fragment, but... Maphr...! Look at this! If you can obtain the other pieces and assemble them into a single tablet, I shall reward you handsomely! I promise this in the name of the First Elder of the Guild Federation!
[30531-03.htm] First Elder Lockirin: This Clay Tablet... Where in the world did you find this? It's just one part, but... Maphr...! How did you come across such a precious thing...? Check this out, my friend! If you will give me this fragment, I will give you a gift! Hand over the tablet Don't hand over the tablet
[30531-04.htm] First Elder Lockirin: Thank you so much! Finally, our guild has a relic of our federation. Please accept this token of our appreciation! And if you should find more of these Clay Tablets in the future, please bring them to me! You will be rewarded handsomely!
[30531-05.htm] First Elder Lockirin: What! I offer you precious gifts and yet you refuse! Look here, you impertinent whip! Do you really think you can sell that tablet somewhere else for a higher price? I guarantee you that no one can best my offer. When you come to your senses, please come to see me again. You will be handsomely rewarded!
[30735-01.htm] Mercenary Captain Sophya: As I said, our mission is to drive out the evil spirits in this area. However, since the bulk of our military has been dispatched to Gludio our defensive forces are suffering a shortage. We are only just managing to keep the evil spirits at bay. I will hire as many tough-skinned fighters as I can find! (This quest may only be undertaken by a character of level 25 or above.)
[30735-02.htm] Mercenary Captain Sophya: As I said, our mission is to drive the evil spirits from this area. Unfortunately, the bulk of our military has been dispatched to Gludio. At present we are only succeeding in keeping the demons at bay. I will hire every tough-skinned warrior I can get my hands on! Say, you seem like you have a lot of experience fighting evil spirits! You would certainly qualify to join our troop...Would you be interested in taking the test to join us? If so, go and meet with Captain Leopold in Gludin. Once you pass the test and bring back the Black Lion Mark, you will be initiated as one of our brothers and given the opportunity to join in the fight. (This quest may only be undertaken by a character possessing the "Black Lion Mark".)
[30735-03.htm] Mercenary Captain Sophya: Dear brother of the Black Lion, we must drive the evil spirits from this area. Most of our troops have been dispatched to Gludio and we are only managing to hold the demons at bay. Fortunately, Captain Leopold of Gludin has sent many reinforcements, and we can finally launch a serious attack on the stronghold of the evil spirits. Please join us in this fight! "I will join in the fight!"
[30735-04.htm] Mercenary Captain Sophya: The time has come for the black lion to pounce! Now, listen carefully. We have four targets to attack: The Execution Grounds, the Fortress of Resistance, the southern shoreline area and the Cruma Marshlands. Since we lack the resources to sustain a prolonged war, we will dispatch a small group of commandos to use guerrilla tactics to drive out the evil spirits. "Tell me about the targets."
[30735-05.htm] Mercenary Captain Sophya: Which mission do you wish to learn more about? Drive the undead from the Execution Grounds Drive the ol mahum from the Fortress of Resistance Drive the delu Lizardman from the southern shore area Kill the marsh stakato in the Cruma Marshlands
[30735-06.htm] Mercenary Captain Sophya: The Execution Grounds is located in the east part of the village. It is a haunted place where the never-ending cries of dead souls can be heard. Your mission is to purge that place of the undead that infest it. It is said that those doomed souls are being punished for their massacre of innocents during the farmers' uprising. Well, whatever the reason, we have a job to do. Still, I have a bad feeling about this. "I will take on this mission." "Tell me about another mission."
[30735-07.htm] Mercenary Captain Sophya: This mission is to drive the remnants of the Grecian military force from the northwest part of Horseshoe Valley. You must not underestimate these opponents. They are the Ol Mahums of the Bloody Axe army, led by Blood Lord Nurka! "I will take on the mission." "Tell me about another mission."
[30735-08.htm] Mercenary Captain Sophya: The delu lizardmen were originally stationed by the shore area in the south of Giran. However, lately they have been infiltrating Dion territory. We don't know what they are up to yet, whether it is to find food or to prepare for a large-scale invasion. What is clear is that they are making their movements with clear determination. We must smash their units one by one and permanently discourage them from settling down in this area. "I will take on this mission." "Tell me about another mission."
[30735-09.htm] Mercenary Captain Sophya: We must rid the Cruma Marshlands of the evil stakato. The insect-like stakato is covered with tight scales and is equipped with two sharp forward claws. They are surprisingly quick. You must never underestimate them. To make matters worse, the marshlands are inhabited by giant leeches, spiders and evil spirits haunting the Tower of Giants. Needless to say, this place is quite treacherous, especially when trying to carry out military operations. "I will take on this mission." "Tell me about another mission."
[30735-10.htm] Mercenary Captain Sophya: We must drive out the undead specters, sorrow maidens, neer crawlers, neer ghoul berserkers, strains and ghouls. When an undead is destroyed, it leaves behind a handful of ashes. Bring me back those ashes as proof of your victory. The more ashes of undead that you bring, the greater shall be your reward. Since you served under Captain Leopold, you know the rules of proofs and rewards, am I right? Now hurry! Prepare for combat and leave for the Execution Grounds immediately. Prove that the undead are no match for the Black Lion guild!
[30735-11.htm] Mercenary Captain Sophya: You must defeat the ol mahum guerrillas, raiders, marksmen, sergeants and captains. As proof that you have defeated them you must bring back the Bloody Axe Insignia, the symbol of the Partisan army. The more insignias you bring, the greater shall be your reward. Since you served under Captain Leopold, you know the rules of proof and rewards, am I right? Now hurry to the Fortress of Resistance. Deliver the wrath of the Black Lion upon those Ol Mahums!
[30735-12.htm] Mercenary Captain Sophya: You must kill the delu lizardmen, including their scouts and warriors. Take care, for although they are similar to the felim and langk lizardmen, they are much more dangerous. As proof of their death you must bring me their teeth. The more of their teeth you bring, the greater shall be your reward. Since you served under Captain Leopold, you already know the rules of proofs and rewards, am I right? Time is of the essence, you must go and destroy them!
[30735-13.htm] Mercenary Captain Sophya: You must go and destroy the marsh stakatos, including their workers, soldiers and drones. As proof of your victory, bring me their claws. The more claws you bring, the greater shall be your reward. Now, prepare for combat and set off for the Cruma Marshlands immediately. Let those filthy stakatos feel the wrath of the Black Lion!
[30735-14.htm] Mercenary Captain Sophya: Dear Black Lion brother, the war with the evil spirits has begun! Will you join our struggle? "Tell me about the mission."
[30735-15.htm] Mercenary Captain Sophya: Dear brother of the Black Lion, shouldn't you be on the battlefield? Continue with the mission Discontinue the current mission
[30735-15a.htm] Mercenary Captain Sophya: Dear brother of the Black Lion, shouldn't you be on the battlefield? Ah, that box looks familiar... It's a traders union Cargo Box. Since we have no agreement regarding the return of a Cargo Box, we aren't obliged to return the cargo to the traders. But if we return it perhaps they will give us a reward! If you don't want to deal with traders, you can go see Redfoot. He is an expert in disposing of stolen property. "Tell me more about Redfoot." "Tell me about the traders union." Continue with the mission Stop the current mission
[30735-16.htm] Mercenary Captain Sophya: You must hurry to the battlefield and triumph over your enemies!
[30735-17a.htm] Mercenary Captain Sophya: Here is the mark of the Lion's Eye. It acknowledges your distinguished service on the battlefield. I am sure your victories will continue!
[30735-18b.htm] Mercenary Captain Sophya: Here is the mark of the Lion's Eye. It acknowledges your distinguished service on the battlefield. New supplies have been issued to you. These are expendable goods that are essential in combat, you must store and guard them well! I am sure your victories will continue!
[30735-19b.htm] Mercenary Captain Sophya: New supplies have been issued for you. Since they are expendable goods that are essential in combat, store and guard them well! I am confident your victories will continue.
[30735-20.htm] Mercenary Captain Sophya: Even the mightiest lion sleeps. Go to the village and rest. Mercenaries must save their energies for battle. "I want a new mission." "I wish to leave the mercenary troop."
[30735-21.htm] Mercenary Captain Sophya: Why do you wish to leave the Black Lion troop? Oh well, no need to explain yourself to me, but heed my words... There is no path for you but the one of the warrior. No matter what you do or where you go you are destined for the battlefield. Anyways, if you really want to withdraw from this Mercenary Troop, you must know this. Once you withdraw, you must return the symbol of the Black Lion Mercenaries since you are not a Black Lion mercenary any more. Moreover, you will not be able to enjoy all the benefits given to the Black Lion Mercenaries that you've been using. For instance, you cannot get a reward for collecting Cargo Boxes, Statues of Shilen, pieces of Fragment of Ancient Tablet, etc. If you want to use the benefits, you will have to obtain the symbol of the Black Lion Mercenaries first. Think about it again thoroughly. However, you will receive discharge pay according to your service. "I wish to continue working for the mercenary troop." "I wish to leave the mercenary troop."
[30735-22.htm] Mercenary Captain Sophya: Good job! You will be amply rewarded. Continue with the mission Discontinue the mission
[30735-23.htm] Mercenary Captain Sophya: Good job! You will be amply rewarded. Ah, that box looks familiar... It's a traders union Cargo Box. Since we have no agreement regarding the return of a Cargo Box, we aren't obliged to return the cargo to the traders. But if we return it perhaps they will give us a reward! If you don't want to deal with traders, you can go see Redfoot. He is an expert in disposing of stolen property. "Tell me more about Redfoot." "Tell me about the traders union." Continue with the mission Stop the current mission
[30735-24a.htm] Mercenary Captain Sophya: Ah yes, Redfoot. He is hard to be around but harder to do without. His primary job is the delivery of military supplies, he does business on the side brokering stolen loot and war trophies. He is also a valuable source of information. You should consult with him often. "Tell me about the traders union." Continue with the mission Discontinue the mission
[30735-25b.htm] Mercenary Captain Sophya: This Cargo Box bears the seal of the Aden Traders Guild. If you wish to return it to them, take it to Morgan at the magic grocery store. He works for that guild. "Tell me more about Redfoot." Continue with the mission Discontinue the mission
[30735-26.htm] Mercenary Captain Sophya: If you have your mind made up, I won't try to change it. Please return the Black Lion Mark. We are no longer comrades. Here is your pay. Take it and go. Perhaps one day we will draw our swords together again. Good luck!
[30736-01.htm] Mercenary Redfoot: Hey friend, did you say that you are on active duty? I salute your honorable service! Is there anything I can do to help? "Do you have any useful information?"
[30736-02.htm] Mercenary Redfoot: Hey friend, did you say that you are on active duty? I salute your honorable service! Is there anything I can do to help? What kind of box is that...? Oh, I recognize it now. That's a Cargo Box used by traders. Since you brought it to me I assume you have no intention of returning it to its owner, am I right? Yes, I see. Of course I'll open the box for you and give you the contents. I will charge you a small fee for my service. I think 650 adena will be appropriate. Think of it as the cost of opening the box and keeping my mouth shut. "Please open the box for me." "Do you have any useful information?"
[30736-03.htm] Mercenary Redfoot: You don't have enough money! Come back when you have 650 adena. Return
[30736-04a.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Fruit...? Ah, apples from Gludio! Yum, they look delicious. If you can get them to market before they spoil, you should be able to make some money. Return
[30736-04b.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Hmm, isn't this corn meal? Pig food! You should take it to the market and sell it since it is of no use to you. Return
[30736-04c.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? What's this, Dire Wolf Pelts? They appear to have been tanned by a leather craftman, but not very well. They could possibly be used to make hats. You should be able to sell these at the market. Return
[30736-04d.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? A gem? Ah, a Moonstone! This should fetch a good price at the market. Return
[30736-04e.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Hmm? What's this powder...? Do I dare taste it? Ah, this must be Gludio Wheat Flour! It can be used for baking bread. You should be able to get a decent price at the market. Return
[30736-04f.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? It's Spidersilk Rope! It's a very strong and light rope that is made from the spidersilk that is collected from the tarantula's webs in the Spine Mountain Range. If you take it to a store, you should be able to get a very good price for it. Return
[30736-04g.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Return
[30736-04h.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? A silver bowl and a teacup? They seem to be of high quality! It appears that they were made by Elven Artisans. I don't buy such exquisite items but if you take them to a store, you should be able to sell them for a good price. Return
[30736-04i.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Machine parts? This appears to be the mark of the Black Anvil Guild. I'm not sure, but I think these parts are used by Dwarves to repair golems. If you take them to a store you should be able to sell them for a good price. Return
[30736-04j.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? A gem...? Ah, a Fire Emerald! It's a rare and precious gemstone that gives off a red light when exposed to sunlight. You are very lucky! This will fetch a very good price at market. Return
[30736-04k.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Ah, a silk dress, and a very expensive one by the looks of it! Notice the design. This was imported from Avella of the east. Who would order such an expensive item at a time like this? This should fetch a high price at a store. Return
[30736-04l.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Return
[30736-04m.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? Oh, my, I don't believe it! An Imperial Diamond! I believe this stone once decorated the crown of the king of Elmoreden! Isn't it beautiful! You are extremely lucky! It is priceless! This gem should fetch a fortune at the market! Return
[30736-04n.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? A fragment of stone? It appears to be a piece of a statue of the goddess Shilen. Isn't she the goddess of death? I have a bad feeling about this. If this was a complete statue, it would fetch a huge amount of money. Blacksmith Rupio can repair a broken relic like this... If you collect all the fragments of the statue and take them to him, he will restore the statue. Return .
[30736-04o.htm] Mercenary Redfoot: Shall we open the box? This lock should be no problem for me... There we go... That was too easy. Now, what do we have here? A broken tablet fragment? Hmm... What are these symbols? Could this be a relic from ancient times? If this were a complete tablet, it would be a very valuable historical object. You should find all the fragments of the tablet and take them to Blacksmith Rupio. He specializes in the restoration of relics. Return
[30736-05.htm] Mercenary Redfoot: What sort of idiot asks to have a box opened when he doesn't have one? Return
[30736-06.htm] Mercenary Redfoot: Is there anything else I can help you with? "Please open the Cargo Box for me." "Do you have any useful information for me?"
[30736-07.htm] Mercenary Redfoot: Hey, you don't have enough money! You didn't think I would give you information for free, did you? This is business! Return
[30736-08.htm] Mercenary Redfoot: Sorry, I don't have any new information for you. You might try again later. Return
[30736-08a.htm] Mercenary Redfoot: Once I overheard some Dwarves talking in a blacksmith's shop... The one that seemed to be in charge was desperately seeking a scroll, something about hieroglyphs. I couldn't make out the details, but it had something to do with ancient technology. Until then I had thought that Dwarves were only capable of working in blacksmith shops and warehouses. Now I know that they have been seriously underestimated by the Humans. Return
[30736-08b.htm] Mercenary Redfoot: One time while talking with some friends in the Dark Elf Guild, I learned that Dark Elves worship the Goddess Shilen! You say everyone already knows that? Well I find it shocking. Why would anyone want to worship a goddess of death? It doesn't make sense! I have heard that the Dark Elves' Shilen Temple in the Dark Forest is spectacular. There are rumors that abyssal celebrants there are gathering fragments of the statue of Goddess Shilen from everywhere! Return
[30736-08c.htm] Mercenary Redfoot: A hatchling is a cute baby dragon hatched from the egg of a wyrm or a drake. I have heard of a pet handler named Cooper who knows how to raise a hatchling as a pet. He is the man to see if you are interested in obtaining a hatchling. Return
[30736-08d.htm] Mercenary Redfoot: I can tell you things that would be very useful for a clan leader to know. There are aristocrats in all areas who support small clans. These aristocrats include Sir Kristof Rodemai in the Town of Giran and Sir Gustav Athebaldt of the Town of Oren. They are not exactly philanthropists. They expect something in return for their support. Return
[30736-08e.htm] Mercenary Redfoot: I know of a society of ancient coin collectors. Once I thought they were collectors of cheap novelty coins, but I have discovered since that the objects of their affection have great value. They will trade very valuable things for coins that strike their fancy! If you are interested in meeting them, you should find a Dwarf named Sorint in Hunters Village. Return
[30736-08f.htm] Mercenary Redfoot: Near the Ivory Tower in Oren you will find a false alchemist. She claims to be able to create a magic potion to make wishes come true... Many have fallen victim to his trickery. Amazingly, occasionally the potion actually seems to work. The problem is that this only happens very infrequently. Return
[30736-08g.htm] Mercenary Redfoot: Shhh! Come closer and I'll tell you a secret. You will find this very useful. Recently I overheard some traders discussing the theft of a priceless gem known as the Imperial Diamond from the cargo wagon of the Aden Business Association. How I would love to gaze upon it just once before I die! Return
[30736-08h.htm] Mercenary Redfoot: Have you heard the rumor that Antharas the Land Dragon has awoken? This is terrible news! If it emerges from its lair in Dragon Valley, all of the Giran region will fall into a state of pandemonium! A woman named Gabrielle in the Town of Giran is recruiting people for a militia to catch Antharas. Does she really think that they will have any chance against the dragon? I fear they do not! Return
[30736-08i.htm] Mercenary Redfoot: In this village there is a young man named Jonas who dreams of becoming the best chef in the kingdom. He is preparing for a culinary competition and seeks an adventurer to find ingredients for some exotic dishes... Return
[30736-08j.htm] Mercenary Redfoot: There is a young guard named Belton in the Town of Giran whose heart burns for revenge on Antharas. He will not listen to reason. Every day he can be found making his special arrows. He pays well for the raw materials he needs. If you're interested, why don't you go and see him? Return
[30736-08k.htm] Mercenary Redfoot: I will tell you something every traveler should know. The law says that traders of this kingdom are prohibited from dealing with criminals. But some traders such as the grocer Pano of Floran Village and Tyra, a trader in the west part of the Dark Forest flaunt this law. Even though their desire for profit is admirable, I think it is shameful for them to break the law like that. Return
[30736-08l.htm] Mercenary Redfoot: Are you looking for a job? In the northwest part of Gludio there is a farmer named Piotur who is hiring mercenaries to drive the Turek orcs away from his farm... This sounds like a good job for you, doesn't it? By the way, are you aware that ancient relics are often found there? Many have gone there to deal with Turek orcs and come away with priceless relics! Return
[30736-08m.htm] Mercenary Redfoot: Have you heard of the association of human traders known as the Aden Business Guild? They became aware of the great profits that Dwarven traders and warehouse keepers were generating. They decided to form a guild of their own. They don't realize how important the Dwarven business instinct is. No matter how hard they try, they will never keep up with Dwarves. To add insult to injury, they have suffered great losses from attacks by evil spirits on their trade routes. Return
[30736-08n.htm] Mercenary Redfoot: One time while talking with some friends in the Dark Elf Guild, I learned that Dark Elves worship the Goddess Shilen! You say everyone already knows that? Well I find it shocking. Why would anyone want to worship a goddess of death? It doesn't make sense! I have heard that the Dark Elves' Shilen Temple in the Dark Forest is spectacular. There are rumors that abyssal celebrants there are gathering fragments of the statue of Goddess Shilen from everywhere! Return
[30736-08o.htm] Mercenary Redfoot: A hatchling is a cute baby dragon hatched from the egg of a wyrm or a drake. I have heard of a pet handler named Cooper who knows how to raise a hatchling as a pet. He is the man to see if you are interested in obtaining a hatchling! Return
[30736-08p.htm] Mercenary Redfoot: I can tell you things that would be very useful for a clan leader to know. There are aristocrats in all areas who support small clans. These aristocrats include Sir Kristof Rodemai in the Town of Giran and Sir Gustav Athebaldt of the Town of Oren. They are not exactly philanthropists. They expect something in return for their support. Return
[30736-08q.htm] Mercenary Redfoot: I know of a society of ancient coin collectors. Once I thought they were collectors of cheap novelty coins, but I have discovered since that the objects of their affection have great value. They will trade very valuable things for coins that strike their fancy! If you are interested in meeting them, you should meet a Dwarf called Sorint in Hunters Village. Return
[30736-08r.htm] Mercenary Redfoot: Near the Ivory Tower in Oren you will find a false alchemist. She claims to be able to create a magic potion to make wishes come true... Many have fallen victim to his trickery. Amazingly, occasionally the potion actually seems to work. The problem is that this only happens very infrequently. Return
[30736-08s.htm] Mercenary Redfoot: Mercenary Redfoot Return
[30736-08t.htm] Mercenary Redfoot: Have you heard the rumor that Antharas the Land Dragon has awoken? This is terrible news! If it emerges from its lair in Dragon Valley, all of Giran region will fall into a state of pandemonium! A woman named Gabrielle in the Town of Giran is recruiting people for a militia to catch Antharas. Does she really think that they will have any chance against the dragon? I fear they do not! Return
[30736-09.htm] Mercenary Redfoot: Is there anything else I can do for you? "Please open the box."
[30737-01.htm] Guildsman Morgan: Ah, a member of the Black Lion Mercenaries! I have heard of your efforts to kill the evil creatures in this area. Keep up the good work!
[30737-02.htm] Guildsman Morgan: Ah, a member of the Black Lion Mercenaries! I have heard of your efforts to kill the evil creatures in this area. Keep up the good work! Is there anything I can do for you? Give him the freight box.
[30737-03.htm] Guildsman Morgan: This freight box is from our commercial guild! It is part of the shipment that was recently stolen from our carts by evil creatures! Our losses from that robbery were staggering. Thank you for recovering this part of it. As a representative of the commercial guild, Please take these coins from our guild as a token of our appreciation. Go back
[30737-04.htm] Guildsman Morgan: Ah, another freight box! Thank you again. We are losing many of our shipments to bandits. Without the help of mercenaries like you our losses would be much greater. Please take these coins from our guild as a token of our appreciation. Keep up the good work! Go back.
[30737-05.htm] Guildsman Morgan: I cannot thank you enough for recovering our stolen freight boxes. If our commercial guild was in a better financial situation, we would hire competent mercenaries like you as bodyguards... We would surely be safe then! Your reward was substantially increased after I spoke to my superiors about the hard work you have been doing for our guild. You have earned it, please take it without refusing. Go back
[30737-06.htm] Guildsman Morgan: That's not a freight box! What are you talking about?
[30737-07.htm] Guildsman Morgan: Is there anything I can do for you? Give him the freight box.
Исходник условий и наград (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.Q00333_HuntOfTheBlackLion;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestSound;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00333_HuntOfTheBlackLion extends Quest
{
// NPCs
private static final int SOPHYA = 30735;
private static final int REDFOOT = 30736;
private static final int RUPIO = 30471;
private static final int UNDRIAS = 30130;
private static final int LOCKIRIN = 30531;
private static final int MORGAN = 30737;
// Needs for start
private static final int BLACK_LION_MARK = 1369;
// Quest items
private static final int LION_CLAW = 3675;
private static final int LION_EYE = 3676;
private static final int GUILD_COIN = 3677;
private static final int UNDEAD_ASH = 3848;
private static final int BLOODY_AXE_INSIGNIA = 3849;
private static final int DELU_FANG = 3850;
private static final int STAKATO_TALON = 3851;
private static final int SOPHYA_LETTER_1 = 3671;
private static final int SOPHYA_LETTER_2 = 3672;
private static final int SOPHYA_LETTER_3 = 3673;
private static final int SOPHYA_LETTER_4 = 3674;
private static final int CARGO_BOX_1 = 3440;
private static final int CARGO_BOX_2 = 3441;
private static final int CARGO_BOX_3 = 3442;
private static final int CARGO_BOX_4 = 3443;
private static final int GLUDIO_APPLE = 3444;
private static final int CORN_MEAL = 3445;
private static final int WOLF_PELTS = 3446;
private static final int MOONSTONE = 3447;
private static final int GLUDIO_WHEAT_FLOWER = 3448;
private static final int SPIDERSILK_ROPE = 3449;
private static final int ALEXANDRITE = 3450;
private static final int SILVER_TEA = 3451;
private static final int GOLEM_PART = 3452;
private static final int FIRE_EMERALD = 3453;
private static final int SILK_FROCK = 3454;
private static final int PORCELAN_URN = 3455;
private static final int IMPERIAL_DIAMOND = 3456;
private static final int STATUE_SHILIEN_HEAD = 3457;
private static final int STATUE_SHILIEN_TORSO = 3458;
private static final int STATUE_SHILIEN_ARM = 3459;
private static final int STATUE_SHILIEN_LEG = 3460;
private static final int COMPLETE_STATUE = 3461;
private static final int TABLET_FRAGMENT_1 = 3462;
private static final int TABLET_FRAGMENT_2 = 3463;
private static final int TABLET_FRAGMENT_3 = 3464;
private static final int TABLET_FRAGMENT_4 = 3465;
private static final int COMPLETE_TABLET = 3466;
// Neutral items
private static final int ADENA = 57;
private static final int SWIFT_ATTACK_POTION = 735;
private static final int SCROLL_OF_ESCAPE = 736;
private static final int HEALING_POTION = 1061;
private static final int SOULSHOT_D = 1463;
private static final int SPIRITSHOT_D = 2510;
// Tabs: Part, NpcId, ItemId, Item Chance, Box Id, Box Chance
private static final int[][] DROPLIST =
{
// @formatter:off
// Part #1 - Execution Ground
{SOPHYA_LETTER_1, 20160, UNDEAD_ASH, 500000, CARGO_BOX_1, 90000}, // Neer Crawler
{SOPHYA_LETTER_1, 20171, UNDEAD_ASH, 500000, CARGO_BOX_1, 60000}, // Specter
{SOPHYA_LETTER_1, 20197, UNDEAD_ASH, 500000, CARGO_BOX_1, 70000}, // Sorrow Maiden
{SOPHYA_LETTER_1, 20198, UNDEAD_ASH, 500000, CARGO_BOX_1, 80000}, // Neer Ghoul Berserker
{SOPHYA_LETTER_1, 20200, UNDEAD_ASH, 500000, CARGO_BOX_1, 100000}, // Strain
{SOPHYA_LETTER_1, 20201, UNDEAD_ASH, 500000, CARGO_BOX_1, 110000}, // Ghoul
// Part #2 - Partisan Hideaway
{SOPHYA_LETTER_2, 20207, BLOODY_AXE_INSIGNIA, 500000, CARGO_BOX_2, 60000}, // Ol Mahum Guerilla
{SOPHYA_LETTER_2, 20208, BLOODY_AXE_INSIGNIA, 500000, CARGO_BOX_2, 70000}, // Ol Mahum Raider
{SOPHYA_LETTER_2, 20209, BLOODY_AXE_INSIGNIA, 500000, CARGO_BOX_2, 80000}, // Ol Mahum Marksman
{SOPHYA_LETTER_2, 20210, BLOODY_AXE_INSIGNIA, 500000, CARGO_BOX_2, 90000}, // Ol Mahum Sergeant
{SOPHYA_LETTER_2, 20211, BLOODY_AXE_INSIGNIA, 500000, CARGO_BOX_2, 100000}, // Ol Mahum Captain
// Part #3 - Near Giran Town
{SOPHYA_LETTER_3, 20251, DELU_FANG, 500000, CARGO_BOX_3, 100000}, // Delu Lizardman
{SOPHYA_LETTER_3, 20252, DELU_FANG, 500000, CARGO_BOX_3, 110000}, // Delu Lizardman Scout
{SOPHYA_LETTER_3, 20253, DELU_FANG, 500000, CARGO_BOX_3, 120000}, // Delu Lizardman Warrior
// Part #4 - Cruma Area
{SOPHYA_LETTER_4, 20157, STAKATO_TALON, 500000, CARGO_BOX_4, 100000}, // Marsh Stakato
{SOPHYA_LETTER_4, 20230, STAKATO_TALON, 500000, CARGO_BOX_4, 110000}, // Marsh Stakato Worker
{SOPHYA_LETTER_4, 20232, STAKATO_TALON, 500000, CARGO_BOX_4, 120000}, // Marsh Stakato Soldier
{SOPHYA_LETTER_4, 20234, STAKATO_TALON, 500000, CARGO_BOX_4, 130000}, // Marsh Stakato Drone
// @formatter:on
};
public Q00333_HuntOfTheBlackLion()
{
super(333, "Hunt of the Black Lion");
registerQuestItems(LION_CLAW, LION_EYE, GUILD_COIN, UNDEAD_ASH, BLOODY_AXE_INSIGNIA, DELU_FANG, STAKATO_TALON, SOPHYA_LETTER_1, SOPHYA_LETTER_2, SOPHYA_LETTER_3, SOPHYA_LETTER_4);
addStartNpc(SOPHYA);
addTalkId(SOPHYA, REDFOOT, RUPIO, UNDRIAS, LOCKIRIN, MORGAN);
for (int[] i : DROPLIST)
{
addKillId(i[1]);
}
}
@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 "30735-04.htm":
{
st.startQuest();
break;
}
case "30735-10.htm":
{
if (!hasQuestItems(player, SOPHYA_LETTER_1))
{
giveItems(player, SOPHYA_LETTER_1, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30735-11.htm":
{
if (!hasQuestItems(player, SOPHYA_LETTER_2))
{
giveItems(player, SOPHYA_LETTER_2, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30735-12.htm":
{
if (!hasQuestItems(player, SOPHYA_LETTER_3))
{
giveItems(player, SOPHYA_LETTER_3, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30735-13.htm":
{
if (!hasQuestItems(player, SOPHYA_LETTER_4))
{
giveItems(player, SOPHYA_LETTER_4, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
case "30735-16.htm":
{
if (getQuestItemsCount(player, LION_CLAW) > 9)
{
takeItems(player, LION_CLAW, 10);
final int eyes = getQuestItemsCount(player, LION_EYE);
if (eyes < 5)
{
htmltext = "30735-17a.htm";
giveItems(player, LION_EYE, 1);
final int random = getRandom(100);
if (random < 25)
{
giveItems(player, HEALING_POTION, 20);
}
else if (random < 50)
{
giveItems(player, player.isMageClass() ? SPIRITSHOT_D : SOULSHOT_D, player.isMageClass() ? 50 : 100);
}
else if (random < 75)
{
giveItems(player, SCROLL_OF_ESCAPE, 20);
}
else
{
giveItems(player, SWIFT_ATTACK_POTION, 3);
}
}
else if (eyes < 9)
{
htmltext = "30735-18b.htm";
giveItems(player, LION_EYE, 1);
final int random = getRandom(100);
if (random < 25)
{
giveItems(player, HEALING_POTION, 25);
}
else if (random < 50)
{
giveItems(player, player.isMageClass() ? SPIRITSHOT_D : SOULSHOT_D, player.isMageClass() ? 100 : 200);
}
else if (random < 75)
{
giveItems(player, SCROLL_OF_ESCAPE, 20);
}
else
{
giveItems(player, SWIFT_ATTACK_POTION, 3);
}
}
else
{
htmltext = "30735-19b.htm";
final int random = getRandom(100);
if (random < 25)
{
giveItems(player, HEALING_POTION, 50);
}
else if (random < 50)
{
giveItems(player, player.isMageClass() ? SPIRITSHOT_D : SOULSHOT_D, player.isMageClass() ? 200 : 400);
}
else if (random < 75)
{
giveItems(player, SCROLL_OF_ESCAPE, 30);
}
else
{
giveItems(player, SWIFT_ATTACK_POTION, 4);
}
}
}
break;
}
case "30735-20.htm":
{
takeItems(player, SOPHYA_LETTER_1, -1);
takeItems(player, SOPHYA_LETTER_2, -1);
takeItems(player, SOPHYA_LETTER_3, -1);
takeItems(player, SOPHYA_LETTER_4, -1);
break;
}
case "30735-26.htm":
{
takeItems(player, LION_CLAW, -1);
takeItems(player, LION_EYE, -1);
takeItems(player, GUILD_COIN, -1);
takeItems(player, BLACK_LION_MARK, -1);
takeItems(player, SOPHYA_LETTER_1, -1);
takeItems(player, SOPHYA_LETTER_2, -1);
takeItems(player, SOPHYA_LETTER_3, -1);
takeItems(player, SOPHYA_LETTER_4, -1);
giveItems(player, ADENA, 12400);
st.exitQuest(true, true);
break;
}
case "30736-03.htm":
{
final boolean cargo1 = hasQuestItems(player, CARGO_BOX_1);
final boolean cargo2 = hasQuestItems(player, CARGO_BOX_2);
final boolean cargo3 = hasQuestItems(player, CARGO_BOX_3);
final boolean cargo4 = hasQuestItems(player, CARGO_BOX_4);
if ((cargo1 || cargo2 || cargo3 || cargo4) && (player.getAdena() > 649))
{
takeItems(player, ADENA, 650);
if (cargo1)
{
takeItems(player, CARGO_BOX_1, 1);
}
else if (cargo2)
{
takeItems(player, CARGO_BOX_2, 1);
}
else if (cargo3)
{
takeItems(player, CARGO_BOX_3, 1);
}
else
{
takeItems(player, CARGO_BOX_4, 1);
}
final int i0 = getRandom(100);
final int i1 = getRandom(100);
if (i0 < 40)
{
if (i1 < 33)
{
htmltext = "30736-04a.htm";
giveItems(player, GLUDIO_APPLE, 1);
}
else if (i1 < 66)
{
htmltext = "30736-04b.htm";
giveItems(player, CORN_MEAL, 1);
}
else
{
htmltext = "30736-04c.htm";
giveItems(player, WOLF_PELTS, 1);
}
}
else if (i0 < 60)
{
if (i1 < 33)
{
htmltext = "30736-04d.htm";
giveItems(player, MOONSTONE, 1);
}
else if (i1 < 66)
{
htmltext = "30736-04e.htm";
giveItems(player, GLUDIO_WHEAT_FLOWER, 1);
}
else
{
htmltext = "30736-04f.htm";
giveItems(player, SPIDERSILK_ROPE, 1);
}
}
else if (i0 < 70)
{
if (i1 < 33)
{
htmltext = "30736-04g.htm";
giveItems(player, ALEXANDRITE, 1);
}
else if (i1 < 66)
{
htmltext = "30736-04h.htm";
giveItems(player, SILVER_TEA, 1);
}
else
{
htmltext = "30736-04i.htm";
giveItems(player, GOLEM_PART, 1);
}
}
else if (i0 < 75)
{
if (i1 < 33)
{
htmltext = "30736-04j.htm";
giveItems(player, FIRE_EMERALD, 1);
}
else if (i1 < 66)
{
htmltext = "30736-04k.htm";
giveItems(player, SILK_FROCK, 1);
}
else
{
htmltext = "30736-04l.htm";
giveItems(player, PORCELAN_URN, 1);
}
}
else if (i0 < 76)
{
htmltext = "30736-04m.htm";
giveItems(player, IMPERIAL_DIAMOND, 1);
}
else if (getRandomBoolean())
{
htmltext = "30736-04n.htm";
if (i1 < 25)
{
giveItems(player, STATUE_SHILIEN_HEAD, 1);
}
else if (i1 < 50)
{
giveItems(player, STATUE_SHILIEN_TORSO, 1);
}
else if (i1 < 75)
{
giveItems(player, STATUE_SHILIEN_ARM, 1);
}
else
{
giveItems(player, STATUE_SHILIEN_LEG, 1);
}
}
else
{
htmltext = "30736-04o.htm";
if (i1 < 25)
{
giveItems(player, TABLET_FRAGMENT_1, 1);
}
else if (i1 < 50)
{
giveItems(player, TABLET_FRAGMENT_2, 1);
}
else if (i1 < 75)
{
giveItems(player, TABLET_FRAGMENT_3, 1);
}
else
{
giveItems(player, TABLET_FRAGMENT_4, 1);
}
}
}
else
{
htmltext = "30736-05.htm";
}
break;
}
case "30736-07.htm":
{
final int state = st.getInt("state");
if (player.getAdena() > (200 + (state * 200)))
{
if (state < 3)
{
final int i0 = getRandom(100);
if (i0 < 5)
{
htmltext = "30736-08a.htm";
}
else if (i0 < 10)
{
htmltext = "30736-08b.htm";
}
else if (i0 < 15)
{
htmltext = "30736-08c.htm";
}
else if (i0 < 20)
{
htmltext = "30736-08d.htm";
}
else if (i0 < 25)
{
htmltext = "30736-08e.htm";
}
else if (i0 < 30)
{
htmltext = "30736-08f.htm";
}
else if (i0 < 35)
{
htmltext = "30736-08g.htm";
}
else if (i0 < 40)
{
htmltext = "30736-08h.htm";
}
else if (i0 < 45)
{
htmltext = "30736-08i.htm";
}
else if (i0 < 50)
{
htmltext = "30736-08j.htm";
}
else if (i0 < 55)
{
htmltext = "30736-08k.htm";
}
else if (i0 < 60)
{
htmltext = "30736-08l.htm";
}
else if (i0 < 65)
{
htmltext = "30736-08m.htm";
}
else if (i0 < 70)
{
htmltext = "30736-08n.htm";
}
else if (i0 < 75)
{
htmltext = "30736-08o.htm";
}
else if (i0 < 80)
{
htmltext = "30736-08p.htm";
}
else if (i0 < 85)
{
htmltext = "30736-08q.htm";
}
else if (i0 < 90)
{
htmltext = "30736-08r.htm";
}
else if (i0 < 95)
{
htmltext = "30736-08s.htm";
}
else
{
htmltext = "30736-08t.htm";
}
takeItems(player, ADENA, 200 + (state * 200));
st.set("state", String.valueOf(state + 1));
}
else
{
htmltext = "30736-08.htm";
}
}
break;
}
case "30471-03.htm":
{
if (hasQuestItems(player, STATUE_SHILIEN_HEAD, STATUE_SHILIEN_TORSO, STATUE_SHILIEN_ARM, STATUE_SHILIEN_LEG))
{
takeItems(player, STATUE_SHILIEN_HEAD, 1);
takeItems(player, STATUE_SHILIEN_TORSO, 1);
takeItems(player, STATUE_SHILIEN_ARM, 1);
takeItems(player, STATUE_SHILIEN_LEG, 1);
if (getRandomBoolean())
{
htmltext = "30471-04.htm";
giveItems(player, COMPLETE_STATUE, 1);
}
else
{
htmltext = "30471-05.htm";
}
}
break;
}
case "30471-06.htm":
{
if (hasQuestItems(player, TABLET_FRAGMENT_1, TABLET_FRAGMENT_2, TABLET_FRAGMENT_3, TABLET_FRAGMENT_4))
{
takeItems(player, TABLET_FRAGMENT_1, 1);
takeItems(player, TABLET_FRAGMENT_2, 1);
takeItems(player, TABLET_FRAGMENT_3, 1);
takeItems(player, TABLET_FRAGMENT_4, 1);
if (getRandomBoolean())
{
htmltext = "30471-07.htm";
giveItems(player, COMPLETE_TABLET, 1);
}
else
{
htmltext = "30471-08.htm";
}
}
break;
}
case "30130-04.htm":
{
if (hasQuestItems(player, COMPLETE_STATUE))
{
takeItems(player, COMPLETE_STATUE, 1);
giveItems(player, ADENA, 30000);
}
break;
}
case "30531-04.htm":
{
if (hasQuestItems(player, COMPLETE_TABLET))
{
takeItems(player, COMPLETE_TABLET, 1);
giveItems(player, ADENA, 30000);
}
break;
}
case "30737-06.htm":
{
final boolean cargo1 = hasQuestItems(player, CARGO_BOX_1);
final boolean cargo2 = hasQuestItems(player, CARGO_BOX_2);
final boolean cargo3 = hasQuestItems(player, CARGO_BOX_3);
final boolean cargo4 = hasQuestItems(player, CARGO_BOX_4);
if (cargo1 || cargo2 || cargo3 || cargo4)
{
if (cargo1)
{
takeItems(player, CARGO_BOX_1, 1);
}
else if (cargo2)
{
takeItems(player, CARGO_BOX_2, 1);
}
else if (cargo3)
{
takeItems(player, CARGO_BOX_3, 1);
}
else
{
takeItems(player, CARGO_BOX_4, 1);
}
final int coins = getQuestItemsCount(player, GUILD_COIN);
if (coins < 40)
{
htmltext = "30737-03.htm";
giveItems(player, ADENA, 100);
}
else if (coins < 80)
{
htmltext = "30737-04.htm";
giveItems(player, ADENA, 200);
}
else
{
htmltext = "30737-05.htm";
giveItems(player, ADENA, 300);
}
if (coins < 80)
{
giveItems(player, GUILD_COIN, 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.getLevel() < 25)
{
htmltext = "30735-01.htm";
}
else if (!hasQuestItems(player, BLACK_LION_MARK))
{
htmltext = "30735-02.htm";
}
else
{
htmltext = "30735-03.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case SOPHYA:
{
if (!hasAtLeastOneQuestItem(player, SOPHYA_LETTER_1, SOPHYA_LETTER_2, SOPHYA_LETTER_3, SOPHYA_LETTER_4))
{
htmltext = "30735-14.htm";
}
else
{
if (!hasAtLeastOneQuestItem(player, UNDEAD_ASH, BLOODY_AXE_INSIGNIA, DELU_FANG, STAKATO_TALON))
{
htmltext = hasAtLeastOneQuestItem(player, CARGO_BOX_1, CARGO_BOX_2, CARGO_BOX_3, CARGO_BOX_4) ? "30735-15a.htm" : "30735-15.htm";
}
else
{
final int count = getQuestItemsCount(player, UNDEAD_ASH) + getQuestItemsCount(player, BLOODY_AXE_INSIGNIA) + getQuestItemsCount(player, DELU_FANG) + getQuestItemsCount(player, STAKATO_TALON);
takeItems(player, UNDEAD_ASH, -1);
takeItems(player, BLOODY_AXE_INSIGNIA, -1);
takeItems(player, DELU_FANG, -1);
takeItems(player, STAKATO_TALON, -1);
giveItems(player, ADENA, count * 35);
if ((count >= 20) && (count < 50))
{
giveItems(player, LION_CLAW, 1);
}
else if ((count >= 50) && (count < 100))
{
giveItems(player, LION_CLAW, 2);
}
else if (count >= 100)
{
giveItems(player, LION_CLAW, 3);
}
htmltext = hasAtLeastOneQuestItem(player, CARGO_BOX_1, CARGO_BOX_2, CARGO_BOX_3, CARGO_BOX_4) ? "30735-23.htm" : "30735-22.htm";
}
}
break;
}
case REDFOOT:
{
htmltext = hasAtLeastOneQuestItem(player, CARGO_BOX_1, CARGO_BOX_2, CARGO_BOX_3, CARGO_BOX_4) ? "30736-02.htm" : "30736-01.htm";
break;
}
case RUPIO:
{
if (hasQuestItems(player, STATUE_SHILIEN_HEAD, STATUE_SHILIEN_TORSO, STATUE_SHILIEN_ARM, STATUE_SHILIEN_LEG) || hasQuestItems(player, TABLET_FRAGMENT_1, TABLET_FRAGMENT_2, TABLET_FRAGMENT_3, TABLET_FRAGMENT_4))
{
htmltext = "30471-02.htm";
}
else
{
htmltext = "30471-01.htm";
}
break;
}
case UNDRIAS:
{
if (!hasQuestItems(player, COMPLETE_STATUE))
{
htmltext = hasQuestItems(player, STATUE_SHILIEN_HEAD, STATUE_SHILIEN_TORSO, STATUE_SHILIEN_ARM, STATUE_SHILIEN_LEG) ? "30130-02.htm" : "30130-01.htm";
}
else
{
htmltext = "30130-03.htm";
}
break;
}
case LOCKIRIN:
{
if (!hasQuestItems(player, COMPLETE_TABLET))
{
htmltext = hasQuestItems(player, TABLET_FRAGMENT_1, TABLET_FRAGMENT_2, TABLET_FRAGMENT_3, TABLET_FRAGMENT_4) ? "30531-02.htm" : "30531-01.htm";
}
else
{
htmltext = "30531-03.htm";
}
break;
}
case MORGAN:
{
htmltext = hasAtLeastOneQuestItem(player, CARGO_BOX_1, CARGO_BOX_2, CARGO_BOX_3, CARGO_BOX_4) ? "30737-02.htm" : "30737-01.htm";
break;
}
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final QuestState st = getQuestState(player, false);
if ((st == null) || !st.isStarted())
{
return;
}
for (int[] info : DROPLIST)
{
if (hasQuestItems(player, info[0]) && (npc.getId() == info[1]))
{
boolean playSound = false;
if (getRandom(1000000) < info[3])
{
giveItems(player, info[2], 1);
playSound = true;
}
if (getRandom(1000000) < info[5])
{
giveItems(player, info[4], 1);
playSound = true;
}
if (playSound)
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
break;
}
}
}
}