Path to an Artisan
- ID
- 418
- Название
- Path to an Artisan
- start_npcs_json
- [30527]
- npc_ids_json
- [30298,30317,30527,30531,31956,31963,32052]
- constants_json
- {"SILVERA":30527,"KLUTO":30317,"PINTER":30298,"OBI":32052,"HITCHI":31963,"LOCKIRIN":30531,"RYDEL":31956,"SILVERA_RING":1632,"FIRST_PASS_CERTIFICATE":1633,"SECOND_PASS_CERTIFICATE":1634,"FINAL_PASS_CERTIFICATE":1635,"BOOGLE_RATMAN_TOOTH":1636,"BOOGLE_RATMAN_LEADER_TOOTH":1637,"KLUTO_LETTER":1638,"FOOTPRINT_OF_THIEF":1639,"STOLEN_SECRET_BOX":1640,"SECRET_BOX":1641}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00418_PathOfTheArtisan/Q00418_PathOfTheArtisan.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 30298 | Pinter | Нет | 70 |
| 30317 | Kluto | Нет | 70 |
| 30527 | Silvera | Да | 70 |
| 30531 | Lockirin | Нет | 70 |
| 31956 | Rydel | Нет | 70 |
| 31963 | Hitchi | Нет | 70 |
| 32052 | Obi | Нет | 70 |
Условия уровней: выражения из Java
else if (player.getLevel() < 19)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, SILVERA_RING, 1); giveItems(player, FIRST_PASS_CERTIFICATE, 1); giveItems(player, KLUTO_LETTER, 1); giveItems(player, FINAL_PASS_CERTIFICATE, 1); addExpAndSp(player, 3200, 6980); giveItems(player, FINAL_PASS_CERTIFICATE, 1); addExpAndSp(player, 3200, 3490); giveItems(player, FOOTPRINT_OF_THIEF, 1); giveItems(player, SECOND_PASS_CERTIFICATE, 1); giveItems(player, SECRET_BOX, 1); giveItems(player, BOOGLE_RATMAN_TOOTH, 1); giveItems(player, BOOGLE_RATMAN_LEADER_TOOTH, 1); giveItems(player, STOLEN_SECRET_BOX, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30298-01.htm] Blacksmith Pinter: Ah, this letter! Have you really brought this from Kluto? It is beyond my power, what should I do ... "What is the matter?"
[30298-02.htm] Blacksmith Pinter: Actually, Kluto asked me for something before... I kept it hidden in the corner of the blacksmith's shop for a long time, but oh dear, the item has been stolen! If I don't have it, Kluto will be terribly angry... he may seem like a gentleman but he has a temper like fire. When he is angry, not even the head blacksmith can calm him. How will I find that item? "I will find it."
[30298-03.htm] Blacksmith Pinter: Are you sure? Could you do that? If so, I can give you one clue. This is a footprint that was discovered on the floor of the blacksmith shop on the night of the robbery. I think that it is probably the footprint of the thief. Looking at the footprint, there is no doubt that it is one of a Vuku Orc Fighter. If you catch them and destroy them, I'm sure something will come out. Here, I will give you an impression of the footstep to use as a clue in catching the thief. By the way, the thing that was stolen was a large box. Thank you.
[30298-04.htm] Blacksmith Pinter: I see you have not found the stolen item yet. Please hurry and find it. My life depends upon your success. You know who the thieves are, right? We strongly suspect the Vuku Orc Fighters. Hurry and catch them!
[30298-05.htm] Blacksmith Pinter: Yes, this is it! Thank you so much. Let me look it over once more, then I hope you will take it to Kluto. "Look here, shouldn't my efforts receive some kind of compensation?"
[30298-06.htm] Blacksmith Pinter: Compensation ... right. Dwarves do not operate without something in return ... Hmm, what would you like? Ah, you are in the midst of taking the test of the Artisan, aren't you? If that is so, then I will give you this. However, you must not tell anyone what you have done. If this becomes known, we could all be permanently removed from the Black Anvil Guild. Well then, please take this box back to Kluto. Thank you.
[30298-07.htm] Blacksmith Pinter: Go and take the item to him. Isn't that enough compensation? I tell you again, this task is an absolute secret. If things go wrong, I'll be ruined for the rest of my life!
[30317-01.htm] Blacksmith Kluto: Oh! Do you want to be an Artisan? I see you've already passed the first test! That Silvera, who gave you the first test, has a strange way of speaking, but she's actually quite a good-natured girl. Traveling has changed her accent though ... oh well ... My son is infatuated with that girl these days. He's quite a good boy, not just because he's my son ... What do you think? Do you think you can help my son? "Fine, I am a genius in matchmaking, though I may not look like one." "Look here, sir, I'm here to take a test!"
[30317-02.htm] Blacksmith Kluto: Oh, really? But aren't you here to take the test? One who has come to take a test mustn't let his mind wander to other things ... How will you take the test properly with such an attitude? I was only testing you with the story of my son ... I'm taking off points! Oh dear ...! It will be difficult to pass the test, I fear .... "Please give me another chance."
[30317-03.htm] Blacksmith Kluto: Give you another chance? Hmm ... Very well! In return, you must do one thing that I ask you without fail. If you complete it properly, I will give you one more chance. What do you say, will you do as I tell you? "Just give me the orders."
[30317-04.htm] Blacksmith Kluto: Good! So now listen carefully to what I have to say. First, take this letter to Blacksmith Pinter in the town of Gludio. If you give him this letter, he will give you something. Bring that back to me. What do you think? It's very easy, isn't it? If you've understood, go and get started!
[30317-05.htm] Blacksmith Kluto: Ah, look at myself. I said something unnecessary. My apologies. But it seems you have quite a strong character. Actually, all that I said was simply to test your qualifications. You have passed, for now. I see you are a fine Dwarf. It is an unwritten law that we Dwarves do not put our efforts into something that is unprofitable, and I can see that you have some talent! But ... There is something I must confess ... There is a bit of a problem ... You cannot take a test in these circumstances ... What should I do ...? "What is it?"
[30317-06.htm] Blacksmith Kluto: Hmm ... Actually ... It is a complicated matter that is a bit difficult to explain to you. However, if you help me, I will make some arrangements so you can definitely take the test of the Artisan. What do you think? Will you help me? "I have no choice, I will help you."
[30317-07.htm] Blacksmith Kluto: Thank you, youngster. So, from now on I want you to listen carefully to what I say. Take this letter that I give you to Blacksmith Pinter in the town of Gludio. If you give him the letter, he will give you something. Bring that back to me. What do you think? It's very easy, isn't it? Now that you know, depart quickly! Every moment is critical!
[30317-08.htm] Blacksmith Kluto: What, you haven't left yet? Hurry up and take the letter to Blacksmith Pinter in the town of Gludio. Then, you must return to me with the item he gives you. If you understand, then be off!
[30317-09.htm] Blacksmith Kluto: Ha ha ha, you have finally brought it. Well done! Hmmm, but isn't this the certificate for the second test of the Artisan? Where did you get it? (Now, what was I going to do with these? I have no idea.) "Blacksmith Pinter gave it to me."
[30317-10.htm] Blacksmith Kluto: Ha Ha Ha, with this, you have passed the final test. Congratulations! Are you confused? I was testing your loyalty to see if you would keep a secret until the last moment. All that you have done until now was actually part of the test. The box that you brought is in fact just an empty box. I am sorry if I seemed like I was tricking you for a while, but this is how we Dwarves give our tests. "Always pursue profit" and "Never betray your colleague in a crisis" are two very different proverbs, and it is difficult to live up to them both. Since you have done both splendidly, I will give you the final certificate for passing the test of the Artisan. Now take this and go to Head Blacksmith Tapoy to change profession to an Artisan. Of course, you know the required level is 20, right? If you understand, go on now and become an Artisan. From now on, we are colleagues!
[30317-11.htm] Blacksmith Kluto: Are you sure? Did Blacksmith Pinter really give this to you? I see I have no choice. What a shame, but we will have to eternally banish our old friend from our Black Anvil guild. How could he have done such a thing, what a foolish friend ... "No, I have been mistaken. A kind Dwarf on the road gave it to me, so I unknowingly accepted it."
[30317-12.htm] Blacksmith Kluto: Really? So you've met such a kind-hearted Dwarf. Then I guess I have no choice. Ha ha ha, do you think that I would fall for a lie like that? But anyway, with this, you have passed the final test. Congratulations! Are you confused? My question was to test your loyalty and see if you would keep a secret until under pressure. All that you have done was actually part of the test. The box that you brought is just an empty box. I am sorry if I seemed like I was tricking you for a while, but this is how we Dwarves give our tests. "Always pursue profits" and "Never betray your colleague in a crisis" are two very different proverbs, and it is difficult to live up to them. Since you have done both splendidly, I will give you the final certificate for passing the test of the Artisan. Now take this and go to Head Blacksmith Tapoy to change profession to an Artisan. Of course, you know the required level is 20, right? If you've understand, go on now and become an Artisan. From now on, we are colleagues!
[30527-01.htm] Blacksmith Silvera: I teach young Dwarves and manage the Test of the Artisan. All apprentice Dwarves arrive at an important turning point where they must decide their future occupations. Dwarves may choose the path of the Artisan or the Scavenger. Artisans, who I'm responsible for testing, create something from nothing. They have unbelievable talents and use the most modern techniques available in the world today for their creations. The Artisan is the middle step in the process of becoming a Warsmith. If you wish to become the greatest skilled craftsman in Aden, you must walk the path of the Artisan. Say you want to be an Artisan.
[30527-02.htm] Blacksmith Silvera: But one moment! You wish to be an Artisan? You must be mistaken. You cannot become an Artisan! Impossible! Go walk your own path. I do not have time to spare for dealing with those who are not qualified.
[30527-02a.htm] Blacksmith Silvera: You! You must be mistaken. You are already an Artisan! Are you joking?!
[30527-03.htm] Blacksmith Silvera: I'm sorry but you don't have the qualifications to become an Artisan. It troubles me if you think it is an easy job. Only those who have at least the minimum qualifications are allowed to take the test. Go gather more experience. Do not come back until you are at least level 19.
[30527-04.htm] Blacksmith Silvera: What are you doing, loitering around here when you've already taken the test? Go on and change profession to an Artisan!
[30527-05.htm] Blacksmith Silvera: I see your mind is completely made up. First then, let me tell you about the test of the Artisan. It is conducted by three blacksmiths, including me. I am in charge of the first part. The second is conducted by Kluto in Gludin, and the third by Pinter in the town of Gludio. First, you must pass my test in order to be qualified to take the other two. Take first test
[30527-06.htm] Blacksmith Silvera: The first test is very easy; Though the Artisan's main task is making things, to be sure, he must also be able to find the materials needed for manufacture by himself, and not depend on others. The first test puts its focus on those basic skills. Oh, and by the way, take this ring while you are taking the test. Ok? Now I will give you the task. If you look around the Abandoned Coal Mines, you will come face to face with the nasty boogle ratman gang. They are the bad guys that trouble us Dwarves. Kill them and come back. But when you look at them, you'll see that they have nasty front teeth. The funny thing is that their front teeth are very useful materials. You know the famous motto of the Dwarves, right? "Whatever it is, there is nothing to throw out!" Catch boogle ratmen and boogle ratman leaders and bring their front teeth. This is my task. See that you bring me ten boogle ratman teeth and two teeth of the boogle ratman leaders. If you come up short, you fail! So make sure you have the right number.
[30527-07.htm] Blacksmith Silvera: Ok, if you've brought your homework, let me take a look! One, two, three ... There's not enough! You don't want to fail your first test do you? I told you clearly! Ten boogle ratman front teeth, and two from the boogle ratman leaders! If you understand that, go and find them! Hurry up!
[30527-08.htm] Blacksmith Silvera: Let us see, then, the front teeth of the Boogle Ratmen. Did you get them all?... Yes, the count is correct. My congratulations! The first test is completed. The second test is held in one of two places, and you may choose where you take it: Gludio Territory or Schuttgart Territory. Which do you choose? Gludio Territory Schuttgart Territory
[30527-08a.htm] Blacksmith Silvera: Very well, then! Seek Blacksmith Kluto in Gludin Village. From him you will receive the second of the tests. Good fortune to you!
[30527-08b.htm] Blacksmith Silvera: Let it be so! Seek out Railroad Worker Obi on the Plains of Plunder. He shall instruct you in what to do next. Good luck, candidate!
[30527-09.htm] Blacksmith Silvera: Why are you still here? To take the second test, I told you to go to Gludin ... Quickly go and meet Blacksmith Kluto. He will give you detailed instructions for the second test. Well then, good luck!
[30527-09a.htm] Blacksmith Silvery: Ho, now! Why do you tarry? Your next test lies on the Plains of Plunder, not in my shop! Go there at once, and good luck!
[30531-01.htm] Lockirin of the Iron Gate: Hmm. I see you have come a long way, and I thank you, but... since you are here, I infer that you failed the Artisan Test. "What do you mean? What is the Artisan Test?"
[30531-02.htm] Lockirin of the Iron Gate: Well, it's not a fatal problem. However, I'll have to give you a bit of a history lesson - specifically, the history concerning the war between the Orcs and the Elves. Listen.
[30531-03.htm] Lockirin of the Iron Gate: We Dwarves sold weapons to the Orcs. Armed with our steel, they were a match and more for the Elves. However, we also sold weapons to the Humans, once they arrived on the scene. We were shortsighted; all we thought of was the profit in the arms trade. Can you predict what happened? Listen.
[30531-04.htm] Lockirin of the Iron Gate: The Orcs were defeated with the help of the Humans, and then the Elves turned on us. They held us responsible for the losses they suffered in the war. They killed the great Dwarf King, and the fall of the Dwarves soon followed. After that, the Black Anvil Guild made a new rule: they would no longer sell weapons to outsiders. You see? It is not enough that you can do something; you should always ask if you should do it. "I understand."
[30531-05.htm] Lockirin of the Iron Gate: Very well. You have passed this test and I shall certify that. When you become an Artisan, remember the lesson you learned today, and always consider the consequences of what you make.
[31956-01.htm] Warehouse Keeper Rydel: What brings you here? You aren't here to apply to be a Warehouse Keeper, are you? "I've got good news you've been waiting for. I'll take the reward now."
[31956-02.htm] Warehouse Keeper Rydel: Oh, you're the one who is taking the Path to an Artisan! What a surprise! I haven't seen anyone taking the Path to an Artisan in a long time! Let me see, the good news... Means you're qualified to be an Artisan! "Can you tell me more?"
[31956-03.htm] Warehouse Keeper Rydel: Well, the stories? They are all kinds of passwords for the test. Some are stories about a hard mission, considering the question and coming up with an answer. Don't worry, it probably won't fail this test. Keep this in mind! You and I, we're both Dwarves. "I've got it."
[31956-04.htm] Warehouse Keeper Rydel: Good, then take this certificate. You've passed the Path to an Artisan! Go see Head Blacksmith Tapoy in Gludin Village and he'll make you an Artisan. Good luck!
[31963-01.htm] Mineral Trader Hitchi: Is this the test of the Artisan? Then you definitely have something to tell me! Huh, then the final execution day is...! Well, what is it? Please tell me! "Well you see, it's like this..." "I'll have to think about it."
[31963-02.htm] Mineral Trader Hitchi: The golden wagon wheels shake..! By the way, do you have any idea what you just said? "I don't think. Thinking is someone else's job." "I did think about it and decided to say something."
[31963-03.htm] Mineral Trader Hitchi: Ha! Awesome! Just like a craftsman, eh? Thanks for telling me that story. Now you should go talk to Lockirin in Dwarven Village at the Iron Gate Guild. He'll tell you what you need to do next. Ha!
[31963-04.htm] Mineral Trader Hitchi: Thank you for telling me the story. Now go to Lockirin in Dwarven Village at the Iron Gate Guild. He'll tell you what you need to do next. Ha!
[31963-05.htm] Mineral Trader Hitchi: Is that so? Well, that has nothing to do with me, anyway! Please go and speak with the Railroad Worker Obi and deliver this: Registration complete. Will wait for execution date.
[31963-06.htm] Mineral Trader Hitchi: Do you need something else? "No, not at all. I'll deliver the message." "I don't want to get involved in this! I'm leaving."
[31963-06a.htm] Mineral Trader Hitchi: Please give this message to Railroad Worker Obi. Registration complete. Will wait for execution date. That's it.
[31963-07.htm] Mineral Trader Hitchi: Is that so? Oh, it's not that bad! Please deliver this to Warehouse Keeper Rydel in the Town of Schuttgart. Good news arrived that you've been waiting for. Give messenger appropriate reward.
[31963-08.htm] Mineral Trader Hitchi: Please deliver this to Warehouse Keeper Rydel in the Town of Schuttgart. Good news arrived that you've been waiting for. Give messenger appropriate reward.
[31963-09.htm] Mineral Trader Hitchi: Just a minute, what's the hurry? Come on, why don't you wait here for a while? Wouldn't you like to be an Artisan? Don't get me wrong... I just wanted to find out what you thought about our six Dwarven guilds. "Stop right there."
[31963-10.htm] Mineral Trader Hitchi: I think Obi probably told me this story... The six Dwarven Guilds are like the columns that support the house of Dwarves. Architecture, trade, iron manufacture, warehousing, collecting, craftmanship. Dwarves would cease to exist if even one of the six Guilds went missing. We Dwarves must put the good of our entire race above personal enrichment! We must never forget the bitter experiences that we've had in the past... We were enslaved by a tribe of savages... Only to see them destroyed by the very weapons they forced us to make for them! You passed the test! I'll give you this Pass Certificate and the Head Blacksmith will make you an Artisan.
[32052-01.htm] Railroad Worker Obi: The Artisan's test? Isn't that test conducted by the Black Anvil Guild? Obviously, I'm a miner from the Gray Pillar Guild. I have nothing to do with Artisans! "Oh, I'm sorry." "I was sent to see you."
[32052-02.htm] Railroad Worker Obi: Hey, why did you give up so easy? It doesn't matter whether I belong to the Gray Pillar guild or not, does it? All six guilds are closely related and share collaborative relationships with each other. I even know some Collectors who work in Blacksmith Shops! Then, it shouldn't be so strange for me to give the test of an Artisan, right? "I'm sorry."
[32052-02a.htm] Railroad Worker Obi: Oh, well, you're a youngster, and youngsters make a lot of mistakes! Just don't forget that all of our guilds have the same aim, that is, we exist to protect all Dwarves and independence! Are you ready to hear about the test? "Tell me about the test."
[32052-03.htm] Railroad Worker Obi: You have a good mind, and I think you'll make a good Artisan. Never forget, we Dwarves stick together, no matter which guild we belong to. "Tell me about the test."
[32052-04.htm] Railroad Worker Obi: The test isn't very hard at all. All you have to do is listen to a story and deliver it Mineral Trader Hitchi in the Town of Schuttgart as it is, and follow his orders. Isn't that simple? "Yes."
[32052-05.htm] Railroad Worker Obi: OK, but remember, you must never tell this story to anyone else! All Artisans must learn the importance of keeping secrets! And, you must suppress your curiousity as well. Your role is only to deliver my words just as they are. Well, are you ready? "I'm ready."
[32052-06.htm] Railroad Worker Obi: The Golden Wheels are shaking. If you hit now, you can change the balance of the six pillars Deliver these words to Mineral Trader Hitchi in the Town of Schuttgart. I'll answer no questions! If you want to pass the test, follow my words to the letter.
[32052-06a.htm] Railroad Worker Obi: I already told you. Deliver the message to Mineral Trader Hitchi in the Town of Schuttgart.
[32052-07.htm] Railroad Worker Obi: You're back so soon? Do you have a message for me? Message received, will wait for the execution date
[32052-08.htm] Railroad Worker Obi: I see. Then I'll proceed with my assignment. Haven't you felt anything while doing this? "Why did you use me?"
[32052-09.htm] Railroad Worker Obi: I didn't use you! That was the test! Well, let's call it your education. Artisans make things. Once things are made, they are out of our control. Therefore, we must always think carefully about what we're making. "I thought about it."
[32052-10.htm] Railroad Worker Obi: That's right! That's the conclusion after serious thought, but doesn't just want to admit fostering trouble in our Dwarven Guilds. We, Dwarves have been persecuted too long. Even though we're extremely dextrous, and quite rich, we lack any real political power! Why? We've been too selfish! We should think more about our entire race, not just personal wealth! Just the words of an old Railroad Worker who remains alone at the place of dreams... "I got it."
[32052-11.htm] Railroad Worker Obi: Now I'll give you this Final Pass Certificate. You're fully qualified to become an Artisan. Speak with the Head Blacksmith near here. Congratulations!
Исходник условий и наград (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.Q00418_PathOfTheArtisan;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.entity.actor.enums.player.PlayerClass;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestSound;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
public class Q00418_PathOfTheArtisan extends Quest
{
// NPCs
private static final int SILVERA = 30527;
private static final int KLUTO = 30317;
private static final int PINTER = 30298;
private static final int OBI = 32052;
private static final int HITCHI = 31963;
private static final int LOCKIRIN = 30531;
private static final int RYDEL = 31956;
// Items
private static final int SILVERA_RING = 1632;
private static final int FIRST_PASS_CERTIFICATE = 1633;
private static final int SECOND_PASS_CERTIFICATE = 1634;
private static final int FINAL_PASS_CERTIFICATE = 1635;
private static final int BOOGLE_RATMAN_TOOTH = 1636;
private static final int BOOGLE_RATMAN_LEADER_TOOTH = 1637;
private static final int KLUTO_LETTER = 1638;
private static final int FOOTPRINT_OF_THIEF = 1639;
private static final int STOLEN_SECRET_BOX = 1640;
private static final int SECRET_BOX = 1641;
public Q00418_PathOfTheArtisan()
{
super(418, "Path to an Artisan");
registerQuestItems(SILVERA_RING, FIRST_PASS_CERTIFICATE, SECOND_PASS_CERTIFICATE, BOOGLE_RATMAN_TOOTH, BOOGLE_RATMAN_LEADER_TOOTH, KLUTO_LETTER, FOOTPRINT_OF_THIEF, STOLEN_SECRET_BOX, SECRET_BOX);
addStartNpc(SILVERA);
addTalkId(SILVERA, KLUTO, PINTER, OBI, HITCHI, LOCKIRIN, RYDEL);
addKillId(20389, 20390, 20017);
}
@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 "30527-05.htm":
{
if (player.getPlayerClass() != PlayerClass.DWARVEN_FIGHTER)
{
htmltext = (player.getPlayerClass() == PlayerClass.ARTISAN) ? "30527-02a.htm" : "30527-02.htm";
}
else if (player.getLevel() < 19)
{
htmltext = "30527-03.htm";
}
else if (hasQuestItems(player, FINAL_PASS_CERTIFICATE))
{
htmltext = "30527-04.htm";
}
break;
}
case "30527-06.htm":
{
st.startQuest();
giveItems(player, SILVERA_RING, 1);
break;
}
case "30527-08a.htm":
{
st.setCond(3, true);
takeItems(player, BOOGLE_RATMAN_LEADER_TOOTH, -1);
takeItems(player, BOOGLE_RATMAN_TOOTH, -1);
takeItems(player, SILVERA_RING, 1);
giveItems(player, FIRST_PASS_CERTIFICATE, 1);
break;
}
case "30527-08b.htm":
{
st.setCond(8, true);
takeItems(player, BOOGLE_RATMAN_LEADER_TOOTH, -1);
takeItems(player, BOOGLE_RATMAN_TOOTH, -1);
takeItems(player, SILVERA_RING, 1);
break;
}
case "30317-04.htm":
case "30317-07.htm":
{
st.setCond(4, true);
giveItems(player, KLUTO_LETTER, 1);
break;
}
case "30317-10.htm":
{
takeItems(player, FIRST_PASS_CERTIFICATE, 1);
takeItems(player, SECOND_PASS_CERTIFICATE, 1);
takeItems(player, SECRET_BOX, 1);
giveItems(player, FINAL_PASS_CERTIFICATE, 1);
addExpAndSp(player, 3200, 6980);
player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
st.exitQuest(true, true);
break;
}
case "30317-12.htm":
case "30531-05.htm":
case "32052-11.htm":
case "31963-10.htm":
case "31956-04.htm":
{
takeItems(player, FIRST_PASS_CERTIFICATE, 1);
takeItems(player, SECOND_PASS_CERTIFICATE, 1);
takeItems(player, SECRET_BOX, 1);
giveItems(player, FINAL_PASS_CERTIFICATE, 1);
addExpAndSp(player, 3200, 3490);
player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
st.exitQuest(true, true);
break;
}
case "30298-03.htm":
{
st.setCond(5, true);
takeItems(player, KLUTO_LETTER, -1);
giveItems(player, FOOTPRINT_OF_THIEF, 1);
break;
}
case "30298-06.htm":
{
st.setCond(7, true);
takeItems(player, FOOTPRINT_OF_THIEF, -1);
takeItems(player, STOLEN_SECRET_BOX, -1);
giveItems(player, SECOND_PASS_CERTIFICATE, 1);
giveItems(player, SECRET_BOX, 1);
break;
}
case "32052-06.htm":
{
st.setCond(9, true);
break;
}
case "31963-04.htm":
{
st.setCond(10, true);
break;
}
case "31963-05.htm":
{
st.setCond(11, true);
break;
}
case "31963-07.htm":
{
st.setCond(12, true);
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
switch (st.getState())
{
case State.CREATED:
{
htmltext = "30527-01.htm";
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case SILVERA:
{
if (cond == 1)
{
htmltext = "30527-07.htm";
}
else if (cond == 2)
{
htmltext = "30527-08.htm";
}
else if (cond == 3)
{
htmltext = "30527-09.htm";
}
else if (cond == 8)
{
htmltext = "30527-09a.htm";
}
break;
}
case KLUTO:
{
if (cond == 3)
{
htmltext = "30317-01.htm";
}
else if (cond == 4)
{
htmltext = "30317-08.htm";
}
else if (cond == 7)
{
htmltext = "30317-09.htm";
}
break;
}
case PINTER:
{
if (cond == 4)
{
htmltext = "30298-01.htm";
}
else if (cond == 5)
{
htmltext = "30298-04.htm";
}
else if (cond == 6)
{
htmltext = "30298-05.htm";
}
else if (cond == 7)
{
htmltext = "30298-07.htm";
}
break;
}
case OBI:
{
if (cond == 8)
{
htmltext = "32052-01.htm";
}
else if (cond == 9)
{
htmltext = "32052-06a.htm";
}
else if (cond == 11)
{
htmltext = "32052-07.htm";
}
break;
}
case HITCHI:
{
if (cond == 9)
{
htmltext = "31963-01.htm";
}
else if (cond == 10)
{
htmltext = "31963-04.htm";
}
else if (cond == 11)
{
htmltext = "31963-06a.htm";
}
else if (cond == 12)
{
htmltext = "31963-08.htm";
}
break;
}
case LOCKIRIN:
{
if (cond == 10)
{
htmltext = "30531-01.htm";
}
break;
}
case RYDEL:
{
if (cond == 12)
{
htmltext = "31956-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;
}
switch (npc.getId())
{
case 20389:
{
if (st.isCond(1) && (getRandom(10) < 7))
{
if (getQuestItemsCount(player, BOOGLE_RATMAN_TOOTH) < 10)
{
giveItems(player, BOOGLE_RATMAN_TOOTH, 1);
}
if ((getQuestItemsCount(player, BOOGLE_RATMAN_TOOTH) >= 10) && (getQuestItemsCount(player, BOOGLE_RATMAN_LEADER_TOOTH) >= 2))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case 20390:
{
if (st.isCond(1) && (getRandom(10) < 5))
{
if (getQuestItemsCount(player, BOOGLE_RATMAN_LEADER_TOOTH) < 2)
{
giveItems(player, BOOGLE_RATMAN_LEADER_TOOTH, 1);
}
if ((getQuestItemsCount(player, BOOGLE_RATMAN_LEADER_TOOTH) >= 2) && (getQuestItemsCount(player, BOOGLE_RATMAN_TOOTH) >= 10))
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
break;
}
case 20017:
{
if (st.isCond(5) && (getRandom(10) < 2))
{
giveItems(player, STOLEN_SECRET_BOX, 1);
st.setCond(6, true);
}
break;
}
}
}
}