Sync with L2jServer HighFive Sep 6th 2015.
This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30839-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30839-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Holly:<br>
|
||||
How did you know that I'm researching the history of the empire? I'm trying to convince everyone I'm just a pure and naive girl...<br>
|
||||
History is my passion! My grandfather was also a researcher studying the history of the Elmoreden empire. I'm currently researching the genealogy of the royal family.<br>
|
||||
If you come across any books dealing with that subject, please bring them to me. You wouldn't refuse an innocent and naive girl's request, would you? Well... I wouldn't ask you to do it for free... If bring me all the records of genealogy of the empire, I'll give you a few valuable relics my grandfather left me.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30839-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30839-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Holly:<br>
|
||||
Amazing! Please give it to me. Hmm... I knew it! Baium wasn't the last emperor of the Elmoreden empire! Although his reign was brief, Printes, Baium's son, ruled the empire. He eventually went missing somewhere in the Goddard region...
|
||||
<br>Thank you for bringing me the book! I find it so fascinating! Here is your reward. If you find any other books like this, please bring them to me!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Recently, some fearless people have gone into the Tower of Insolence. They are frantically searching for ancient, secret treasure. We of the Gray Pillar Guild cannot be left out of what's going on in there. That tower was built by dwarves! We can't allow outsiders to plunder it! We already have a team in there, are you interested? Well, come to think of it, you don't look very experienced... I wouldn't want to have to haul your cold corpse out of there...<br>
|
||||
(This quest may only be undertaken by a character of level 59 or above.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Recently, some fearless people have gone into the Tower of Insolence. They are frantically searching for ancient, secret treasure. We of the Gray Pillar Guild cannot be left out of what's going on in there. That tower was built by dwarves! We can't allow outsiders to plunder it! We already have a team in there.<br>
|
||||
Ah, the mysteries of the Tower... How did our noble ancestors do it? It is said that the original blueprints are located somewhere in the tower. Would you be interested in recovering them for us?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-03.htm">"I'll do it."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Marvelous! In the middle section of the Tower of Insolence you will find monsters such as <font color="LEVEL">corrupt sages, erin ediunces, Hallate's inspectors, Platinum tribe overlords, Platinum guardian prefects, and messenger angels</font>. It is they who are in possession of the blueprints of the tower. Please recover the blueprints and bring them to me. In return, I will give you a very rare and precious recipe or ingredient. What do you say? Interested?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-04.htm">"I'll do it."</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
All right! Then, off you go! Make sure to bring me back the blueprints. All I need to do is to complete the blueprint for the entire tower... Although you may find some other stuff, I promise I won't touch it. The objective of our guild is to obtain the technical knowledge that was used to build the Tower of Insolence!
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-05.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-05.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Did you find anything? Or perhaps you have a question?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-05a.html">"Tell me more about the Contract I signed."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-05b.html">"I have found many other things besides blueprints..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-07.html">"I've brought you all the blueprints for 13 floors of the Tower of Insolence."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-08.html">"I'll continue to look for more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-09.html">"I want out of the Contract."</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-05a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-05a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Are you OK? How did you forget so quickly? OK, once more. Listen carefully. Bring to me the blueprints of the Tower of Insolence. There are 13 of them.<br>
|
||||
Take them from <font color="LEVEL">corrupt sages, erin ediunces, Hallate's inspectors, Platinum tribe overlords, Platinum guardian prefects and messenger angels</font>. You can keep anything else you find on them. All I want are the blueprints... If you're able to get and bring back the blueprints for all 13 floors, then, I will give you a very rare and precious recipe or ingredient.<br>
|
||||
Is that clear? Now, please, get going.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-05.html">Back</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-05b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-05b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Hmm, a book, eh? Well, we're only interested in blueprints... Wait a minute..., come to think of it, I heard that Madam Claudia Athebaldt is looking for a book titled <font color="LEVEL">"Revelation of the Seals"</font>. It seems that Magister Desmond is searching for the same book. It must be important...<br>
|
||||
Trader Holly in the Town of Aden also collects history books. She is especially interested in any documents related to <font color="LEVEL">imperial genealogy</font>.<br>
|
||||
Patrin of the Town of Oren, the antiques dealer, is wild about <font color="LEVEL">epics</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-05.html">Back</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Unfortunately, blueprints for just a couple of floors are of no use to us. We must have the design of the entire structure to truly understand its mysteries. Please bring them all to us.
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Let me see... Ah, the blueprints for all 13 floors! Excellent! Now we shall learn the secrets of the tower! One day the mighty Gray Pillar Guild will construct an even grander building! Thank you for your hard work. You'll be well-rewarded... I just received several different recipes and ingredients from the famous workshop of Maestro Reorin! Which type would you like?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-07a.html">Dark Crystal</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-07b.html">Tallum</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-07c.html">Nightmare</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-07d.html">Majestic</Button>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07a.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07a.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Here it is! This will be helpful if you're thinking of getting any A-Grade dark crystal equipment.<br>
|
||||
By the way... I've heard that there are still copies of the blueprints for the Tower of Insolence available! Would you bring me some?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-11.html">"Here are some more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-08.html">"I'll look for more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-09.html">"I want to quit."</Button>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07b.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07b.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Here it is! This will be helpful if you're thinking of getting any A-Grade tallum equipment.<br>
|
||||
By the way... I've heard that there are still copies of the blueprints for the Tower of Insolence available! Would you bring me some?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-11.html">"Here are some more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-08.html">"I'll look for more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-09.html">"I want to quit."</Button>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07c.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07c.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Here it is! This will be helpful if you're thinking of getting any A-Grade nightmare equipment.<br>
|
||||
By the way... I've heard that there are still copies of the blueprints for the Tower of Insolence available! Would you bring me some?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-11.html">"Here are some more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-08.html">"I'll look for more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-09.html">"I want to quit."</Button>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07d.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07d.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Here it is! This will be helpful if you're thinking of getting any A-Grade majestic equipment.<br>
|
||||
By the way... I've heard that there are still copies of the blueprints for the Tower of Insolence available! Would you bring me some?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-11.html">"Here are some more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-08.html">"I'll look for more blueprints."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-09.html">"I want to quit."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07e.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-07e.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
What...? I thought you said you had more blueprints...?<br>
|
||||
No, no... Just one or two floors won't be helpful at all. We must understand the structure of each floor systematically, which means knowing the weight-bearing walls, types of pillars and things like that... I must have blueprints for all 13 floors! Please continue to look for them.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Wonderful! These blueprints are actually in quite poor condition... I'd appreciate it very much if you could find some more and bring them to me! Get them from <font color="LEVEL">corrupt sages, erin ediunces, Hallate's inspectors, Platinum tribe overlords, Platinum guardian prefects and messenger angels</font>. I'll wait here.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Oh, really? Well, I can hardly blame you. Thank you for your help.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-11.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30844-11.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Oh, really? Please show it to me!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00372_LegacyOfInsolence 30844-07.html">Show him the blueprint for the Tower of Insolence.</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30855-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30855-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Desmond:<br>
|
||||
You're bringing the "Revelation of the Seals", aren't you? Here, let me see.<br>
|
||||
What's this? You didn't bring them all! Go get the rest! I'll hold onto these for now. When you bring more, I'll send them to my superior! Then you shall receive your reward.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30855-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30855-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Desmond:<br>
|
||||
Is this the entire set of the "Revelation of the Seals"? Ah, yes! Give them here! Now I am so much closer to discovering the secret of the seven seals! Soon we, the Revolutionaries of Dusk, will rule the world!<br>
|
||||
Here is your reward. If you find any more of these kind of books, bring them to me, do you understand?
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30929-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30929-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Antique Dealer Patrin:<br>
|
||||
There's a rumor that you've been collecting old scrolls at the Tower of Insolence... Have you come across a scroll of ancient epic, written by a troubadour from the ancient era? If you have such an item, it could be of great value. Artistic value is quite subjective. It may look like someone's doodling to you, but to the trained eye, it could prove to be more valuable than precious stones. If you find such an epic, please bring it to me! I'll pay you very well for it.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30929-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/30929-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Antique Dealer Patrin:<br>
|
||||
Wow! Is this an ancient epic? What a find! I'll take it!<br>
|
||||
I can pay you this much. If you find any more ancient epics, please bring them all to me. I will appraise them and give you the best possible prices.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/31001-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/31001-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Lady Claudia:<br>
|
||||
Have you brought "The Revelation of the Seals"? Remember - once you've collect all seven books, bring them straight to me! The Lords of Dawn have very high expectations of you!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/31001-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/31001-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Lady Claudia:<br>
|
||||
This is "The Revelation of the Seals"! Many wish to possess this book, my husband foremost among them....<br>
|
||||
I appreciate your hard work and hope this reward shows you just how grateful I am to you.
|
||||
</body></html>
|
711
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/Q00372_LegacyOfInsolence.java
vendored
Normal file
711
trunk/dist/game/data/scripts/quests/Q00372_LegacyOfInsolence/Q00372_LegacyOfInsolence.java
vendored
Normal file
@@ -0,0 +1,711 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J DataPack is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package quests.Q00372_LegacyOfInsolence;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.holders.QuestItemHolder;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
/**
|
||||
* Legacy Of Insolence (372)
|
||||
* @author ivantotov
|
||||
*/
|
||||
public final class Q00372_LegacyOfInsolence extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int TRADER_HOLLY = 30839;
|
||||
private static final int WAREHOUSE_KEEPER_WALDERAL = 30844;
|
||||
private static final int MAGISTER_DESMOND = 30855;
|
||||
private static final int ANTIQUE_DEALER_PATRIN = 30929;
|
||||
private static final int CLAUDIA_ATHEBALDT = 31001;
|
||||
// Items
|
||||
private static final int ANCIENT_RED_PAPYRUS = 5966;
|
||||
private static final int ANCIENT_BLUE_PAPYRUS = 5967;
|
||||
private static final int ANCIENT_BLACK_PAPYRUS = 5968;
|
||||
private static final int ANCIENT_WHITE_PAPYRUS = 5969;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_AVARICE = 5972;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_GNOSIS = 5973;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_STRIFE = 5974;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_VENGEANCE = 5975;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_AWEKENING = 5976;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_CALAMITY = 5977;
|
||||
private static final int REVELATION_OF_THE_SEALS_CHAPTER_OF_DESCENT = 5978;
|
||||
private static final int ANCIENT_EPIC_CHAPTER_1 = 5979;
|
||||
private static final int ANCIENT_EPIC_CHAPTER_2 = 5980;
|
||||
private static final int ANCIENT_EPIC_CHAPTER_3 = 5981;
|
||||
private static final int ANCIENT_EPIC_CHAPTER_4 = 5982;
|
||||
private static final int ANCIENT_EPIC_CHAPTER_5 = 5983;
|
||||
private static final int IMPERIAL_GENEALOGY_1 = 5984;
|
||||
private static final int IMPERIAL_GENEALOGY_2 = 5985;
|
||||
private static final int IMPERIAL_GENEALOGY_3 = 5986;
|
||||
private static final int IMPERIAL_GENEALOGY_4 = 5987;
|
||||
private static final int IMPERIAL_GENEALOGY_5 = 5988;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR = 5989;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR = 5990;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR = 5991;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR = 5992;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR = 5993;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR = 5994;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR = 5995;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR = 5996;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR = 5997;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR = 5998;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR = 5999;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR = 6000;
|
||||
private static final int BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR = 6001;
|
||||
// Rewards
|
||||
private static final int RECIPE_SEALED_DARK_CRYSTAL_BOOTS_60 = 5368;
|
||||
private static final int RECIPE_SEALED_TALLUM_BOOTS_60 = 5370;
|
||||
private static final int RECIPE_SEALED_BOOTS_OF_NIGHTMARE_60 = 5380;
|
||||
private static final int RECIPE_SEALED_MAJESTIC_BOOTS_60 = 5382;
|
||||
private static final int RECIPE_SEALED_DARK_CRYSTAL_GLOVES_60 = 5392;
|
||||
private static final int RECIPE_SEALED_TALLUM_GLOVES_60 = 5394;
|
||||
private static final int RECIPE_SEALED_GAUNTLETS_OF_NIGHTMARE_60 = 5404;
|
||||
private static final int RECIPE_SEALED_MAJESTIC_GAUNTLETS_60 = 5406;
|
||||
private static final int RECIPE_SEALED_DARK_CRYSTAL_HELMET_60 = 5426;
|
||||
private static final int RECIPE_SEALED_TALLUM_HELMET_60 = 5428;
|
||||
private static final int RECIPE_SEALED_HELM_OF_NIGHTMARE_60 = 5430;
|
||||
private static final int RECIPE_SEALED_MAJESTIC_CIRCLET_60 = 5432;
|
||||
private static final int SEALED_DARK_CRYSTAL_BOOTS_LINING = 5496;
|
||||
private static final int SEALED_TALLUM_BOOTS_LINING = 5497;
|
||||
private static final int SEALED_BOOTS_OF_NIGHTMARE_LINING = 5502;
|
||||
private static final int SEALED_MAJESTIC_BOOTS_LINING = 5503;
|
||||
private static final int SEALED_DARK_CRYSTAL_GLOVES_DESIGN = 5508;
|
||||
private static final int SEALED_TALLUM_GLOVES_DESIGN = 5509;
|
||||
private static final int SEALED_GAUNTLETS_OF_NIGHTMARE_DESIGN = 5514;
|
||||
private static final int SEALED_MAJESTIC_GAUNTLETS_DESIGN = 5515;
|
||||
private static final int SEALED_DARK_CRYSTAL_HELMET_DESIGN = 5525;
|
||||
private static final int SEALED_TALLUM_HELM_DESIGN = 5526;
|
||||
private static final int SEALED_HELM_OF_NIGHTMARE_DESIGN = 5527;
|
||||
private static final int SEALED_MAJESTIC_CIRCLET_DESIGN = 5528;
|
||||
// Monsters
|
||||
private static final int HALLATES_INSPECTOR = 20825;
|
||||
private static final Map<Integer, QuestItemHolder> MONSTER_REWARDS = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
MONSTER_REWARDS.put(20817, new QuestItemHolder(ANCIENT_RED_PAPYRUS, 302, 1));
|
||||
MONSTER_REWARDS.put(20821, new QuestItemHolder(ANCIENT_RED_PAPYRUS, 410, 1));
|
||||
MONSTER_REWARDS.put(HALLATES_INSPECTOR, new QuestItemHolder(ANCIENT_RED_PAPYRUS, 1, 447));
|
||||
MONSTER_REWARDS.put(20829, new QuestItemHolder(ANCIENT_BLUE_PAPYRUS, 451, 1));
|
||||
MONSTER_REWARDS.put(21062, new QuestItemHolder(ANCIENT_WHITE_PAPYRUS, 290, 1));
|
||||
MONSTER_REWARDS.put(21069, new QuestItemHolder(ANCIENT_BLACK_PAPYRUS, 280, 1));
|
||||
}
|
||||
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 59;
|
||||
|
||||
public Q00372_LegacyOfInsolence()
|
||||
{
|
||||
super(372, Q00372_LegacyOfInsolence.class.getSimpleName(), "Legacy Of Insolence");
|
||||
addStartNpc(WAREHOUSE_KEEPER_WALDERAL);
|
||||
addTalkId(WAREHOUSE_KEEPER_WALDERAL, TRADER_HOLLY, MAGISTER_DESMOND, ANTIQUE_DEALER_PATRIN, CLAUDIA_ATHEBALDT);
|
||||
addKillId(MONSTER_REWARDS.keySet());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
final int chance = getRandom(100);
|
||||
|
||||
if (qs == null)
|
||||
{
|
||||
return super.onAdvEvent(event, npc, player);
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "30844-04.htm":
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30844-07.html":
|
||||
{
|
||||
if (hasQuestItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR))
|
||||
{
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30844-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30844-09.html":
|
||||
{
|
||||
qs.exitQuest(true, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30844-07a.html":
|
||||
{
|
||||
if (hasQuestItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR))
|
||||
{
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR, 1);
|
||||
|
||||
if (chance < 10)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_BOOTS_LINING, 1);
|
||||
}
|
||||
else if (chance < 20)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_GLOVES_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 30)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_HELMET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 40)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_BOOTS_LINING, 1);
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_GLOVES_DESIGN, 1);
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_HELMET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 51)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_DARK_CRYSTAL_BOOTS_60, 1);
|
||||
}
|
||||
else if (chance < 62)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_DARK_CRYSTAL_GLOVES_60, 1);
|
||||
}
|
||||
else if (chance < 79)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_DARK_CRYSTAL_HELMET_60, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_DARK_CRYSTAL_BOOTS_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_DARK_CRYSTAL_GLOVES_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_DARK_CRYSTAL_HELMET_60, 1);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30844-07e.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30844-07b.html":
|
||||
{
|
||||
if (hasQuestItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR))
|
||||
{
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR, 1);
|
||||
|
||||
if (chance < 10)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_BOOTS_LINING, 1);
|
||||
}
|
||||
else if (chance < 20)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_GLOVES_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 30)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_HELM_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 40)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_BOOTS_LINING, 1);
|
||||
giveItems(player, SEALED_TALLUM_GLOVES_DESIGN, 1);
|
||||
giveItems(player, SEALED_TALLUM_HELM_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 51)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_TALLUM_BOOTS_60, 1);
|
||||
}
|
||||
else if (chance < 62)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_TALLUM_GLOVES_60, 1);
|
||||
}
|
||||
else if (chance < 79)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_TALLUM_HELMET_60, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_TALLUM_BOOTS_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_TALLUM_GLOVES_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_TALLUM_HELMET_60, 1);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30844-07e.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30844-07c.html":
|
||||
{
|
||||
if (hasQuestItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR))
|
||||
{
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR, 1);
|
||||
|
||||
if (chance < 17)
|
||||
{
|
||||
giveItems(player, SEALED_BOOTS_OF_NIGHTMARE_LINING, 1);
|
||||
}
|
||||
else if (chance < 34)
|
||||
{
|
||||
giveItems(player, SEALED_GAUNTLETS_OF_NIGHTMARE_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 49)
|
||||
{
|
||||
giveItems(player, SEALED_HELM_OF_NIGHTMARE_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 58)
|
||||
{
|
||||
giveItems(player, SEALED_BOOTS_OF_NIGHTMARE_LINING, 1);
|
||||
giveItems(player, SEALED_GAUNTLETS_OF_NIGHTMARE_DESIGN, 1);
|
||||
giveItems(player, SEALED_HELM_OF_NIGHTMARE_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 70)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_BOOTS_OF_NIGHTMARE_60, 1);
|
||||
}
|
||||
else if (chance < 82)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_GAUNTLETS_OF_NIGHTMARE_60, 1);
|
||||
}
|
||||
else if (chance < 92)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_HELM_OF_NIGHTMARE_60, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_BOOTS_OF_NIGHTMARE_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_GAUNTLETS_OF_NIGHTMARE_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_HELM_OF_NIGHTMARE_60, 1);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30844-07e.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30844-07d.html":
|
||||
{
|
||||
if (hasQuestItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, //
|
||||
BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR))
|
||||
{
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_1ST_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_2ND_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_3RD_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_4TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_5TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_6TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_7TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_8TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_9TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_10TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_11TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_12TH_FLOOR, 1);
|
||||
takeItems(player, BLUEPRINT_TOWER_OF_INSOLENCE_13TH_FLOOR, 1);
|
||||
|
||||
if (chance < 17)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_BOOTS_LINING, 1);
|
||||
}
|
||||
else if (chance < 34)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_GAUNTLETS_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 49)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_CIRCLET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 58)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_BOOTS_LINING, 1);
|
||||
giveItems(player, SEALED_MAJESTIC_GAUNTLETS_DESIGN, 1);
|
||||
giveItems(player, SEALED_MAJESTIC_CIRCLET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 70)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_MAJESTIC_BOOTS_60, 1);
|
||||
}
|
||||
else if (chance < 82)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_MAJESTIC_GAUNTLETS_60, 1);
|
||||
}
|
||||
else if (chance < 92)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_MAJESTIC_CIRCLET_60, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveItems(player, RECIPE_SEALED_MAJESTIC_BOOTS_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_MAJESTIC_GAUNTLETS_60, 1);
|
||||
giveItems(player, RECIPE_SEALED_MAJESTIC_CIRCLET_60, 1);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30844-07e.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30844-05b.html":
|
||||
{
|
||||
qs.setCond(2);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30844-03.htm":
|
||||
case "30844-05.html":
|
||||
case "30844-05a.html":
|
||||
case "30844-08.html":
|
||||
case "30844-10.html":
|
||||
case "30844-11.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestItemHolder item = MONSTER_REWARDS.get(npc.getId());
|
||||
if (npc.getId() == HALLATES_INSPECTOR)
|
||||
{
|
||||
if (getRandom(1000) < item.getChance())
|
||||
{
|
||||
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
|
||||
if (qs != null)
|
||||
{
|
||||
giveItems(qs.getPlayer(), item.getId(), item.getCount());
|
||||
playSound(qs.getPlayer(), QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
if (Util.checkIfInRange(1500, npc, killer, true) && (getRandom(1000) < item.getChance()))
|
||||
{
|
||||
L2PcInstance rewardedPlayer = null;
|
||||
if (!killer.isInParty())
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && qs.isStarted())
|
||||
{
|
||||
rewardedPlayer = killer;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int chance = 0;
|
||||
for (L2PcInstance partyMember : killer.getParty().getMembers())
|
||||
{
|
||||
final QuestState partyMemberQuestState = getQuestState(partyMember, false);
|
||||
if ((partyMemberQuestState != null) && partyMemberQuestState.isStarted())
|
||||
{
|
||||
final int chance2 = getRandom(1000);
|
||||
if (chance < chance2)
|
||||
{
|
||||
chance = chance2;
|
||||
rewardedPlayer = partyMember;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((rewardedPlayer != null) && Util.checkIfInRange(1500, npc, rewardedPlayer, true))
|
||||
{
|
||||
giveItems(rewardedPlayer, item.getId(), item.getCount());
|
||||
playSound(rewardedPlayer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
final int chance = getRandom(100);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (qs.isCreated())
|
||||
{
|
||||
if (npc.getId() == WAREHOUSE_KEEPER_WALDERAL)
|
||||
{
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
htmltext = "30844-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30844-02.htm";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case WAREHOUSE_KEEPER_WALDERAL:
|
||||
{
|
||||
htmltext = "30844-05.html";
|
||||
break;
|
||||
}
|
||||
case TRADER_HOLLY:
|
||||
{
|
||||
if (hasQuestItems(player, IMPERIAL_GENEALOGY_1, IMPERIAL_GENEALOGY_2, IMPERIAL_GENEALOGY_3, IMPERIAL_GENEALOGY_4, IMPERIAL_GENEALOGY_5))
|
||||
{
|
||||
takeItems(player, IMPERIAL_GENEALOGY_1, 1);
|
||||
takeItems(player, IMPERIAL_GENEALOGY_2, 1);
|
||||
takeItems(player, IMPERIAL_GENEALOGY_3, 1);
|
||||
takeItems(player, IMPERIAL_GENEALOGY_4, 1);
|
||||
takeItems(player, IMPERIAL_GENEALOGY_5, 1);
|
||||
|
||||
if (chance < 30)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_BOOTS_LINING, 1);
|
||||
}
|
||||
else if (chance < 60)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_GLOVES_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 80)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_HELMET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 90)
|
||||
{
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_BOOTS_LINING, 1);
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_GLOVES_DESIGN, 1);
|
||||
giveItems(player, SEALED_DARK_CRYSTAL_HELMET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveAdena(player, 4000, true);
|
||||
}
|
||||
htmltext = "30839-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30839-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MAGISTER_DESMOND:
|
||||
{
|
||||
if (hasQuestItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_AVARICE, REVELATION_OF_THE_SEALS_CHAPTER_OF_GNOSIS, REVELATION_OF_THE_SEALS_CHAPTER_OF_STRIFE, //
|
||||
REVELATION_OF_THE_SEALS_CHAPTER_OF_VENGEANCE, REVELATION_OF_THE_SEALS_CHAPTER_OF_AWEKENING, REVELATION_OF_THE_SEALS_CHAPTER_OF_CALAMITY, //
|
||||
REVELATION_OF_THE_SEALS_CHAPTER_OF_DESCENT))
|
||||
{
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_AVARICE, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_GNOSIS, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_STRIFE, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_VENGEANCE, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_AWEKENING, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_CALAMITY, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_DESCENT, 1);
|
||||
|
||||
if (chance < 31)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_BOOTS_LINING, 1);
|
||||
}
|
||||
else if (chance < 62)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_GAUNTLETS_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 75)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_CIRCLET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 83)
|
||||
{
|
||||
giveItems(player, SEALED_MAJESTIC_BOOTS_LINING, 1);
|
||||
giveItems(player, SEALED_MAJESTIC_GAUNTLETS_DESIGN, 1);
|
||||
giveItems(player, SEALED_MAJESTIC_CIRCLET_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveAdena(player, 4000, true);
|
||||
}
|
||||
htmltext = "30855-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30855-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ANTIQUE_DEALER_PATRIN:
|
||||
{
|
||||
if (hasQuestItems(player, ANCIENT_EPIC_CHAPTER_1, ANCIENT_EPIC_CHAPTER_2, ANCIENT_EPIC_CHAPTER_3, ANCIENT_EPIC_CHAPTER_4, ANCIENT_EPIC_CHAPTER_5))
|
||||
{
|
||||
takeItems(player, ANCIENT_EPIC_CHAPTER_1, 1);
|
||||
takeItems(player, ANCIENT_EPIC_CHAPTER_2, 1);
|
||||
takeItems(player, ANCIENT_EPIC_CHAPTER_3, 1);
|
||||
takeItems(player, ANCIENT_EPIC_CHAPTER_4, 1);
|
||||
takeItems(player, ANCIENT_EPIC_CHAPTER_5, 1);
|
||||
|
||||
if (chance < 30)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_BOOTS_LINING, 1);
|
||||
}
|
||||
else if (chance < 60)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_GLOVES_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 80)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_HELM_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 90)
|
||||
{
|
||||
giveItems(player, SEALED_TALLUM_BOOTS_LINING, 1);
|
||||
giveItems(player, SEALED_TALLUM_GLOVES_DESIGN, 1);
|
||||
giveItems(player, SEALED_TALLUM_HELM_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveAdena(player, 4000, true);
|
||||
}
|
||||
htmltext = "30929-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30929-02.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CLAUDIA_ATHEBALDT:
|
||||
{
|
||||
if (hasQuestItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_AVARICE, REVELATION_OF_THE_SEALS_CHAPTER_OF_GNOSIS, REVELATION_OF_THE_SEALS_CHAPTER_OF_STRIFE, //
|
||||
REVELATION_OF_THE_SEALS_CHAPTER_OF_VENGEANCE, REVELATION_OF_THE_SEALS_CHAPTER_OF_AWEKENING, REVELATION_OF_THE_SEALS_CHAPTER_OF_CALAMITY, //
|
||||
REVELATION_OF_THE_SEALS_CHAPTER_OF_DESCENT))
|
||||
{
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_AVARICE, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_GNOSIS, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_STRIFE, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_VENGEANCE, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_AWEKENING, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_CALAMITY, 1);
|
||||
takeItems(player, REVELATION_OF_THE_SEALS_CHAPTER_OF_DESCENT, 1);
|
||||
|
||||
if (chance < 31)
|
||||
{
|
||||
giveItems(player, SEALED_BOOTS_OF_NIGHTMARE_LINING, 1);
|
||||
}
|
||||
else if (chance < 62)
|
||||
{
|
||||
giveItems(player, SEALED_GAUNTLETS_OF_NIGHTMARE_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 75)
|
||||
{
|
||||
giveItems(player, SEALED_HELM_OF_NIGHTMARE_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 83)
|
||||
{
|
||||
giveItems(player, SEALED_BOOTS_OF_NIGHTMARE_LINING, 1);
|
||||
giveItems(player, SEALED_GAUNTLETS_OF_NIGHTMARE_DESIGN, 1);
|
||||
giveItems(player, SEALED_HELM_OF_NIGHTMARE_DESIGN, 1);
|
||||
}
|
||||
else if (chance < 100)
|
||||
{
|
||||
giveAdena(player, 4000, true);
|
||||
}
|
||||
htmltext = "31001-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31001-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@@ -104,6 +104,7 @@ import quests.Q00350_EnhanceYourWeapon.Q00350_EnhanceYourWeapon;
|
||||
import quests.Q00357_WarehouseKeepersAmbition.Q00357_WarehouseKeepersAmbition;
|
||||
import quests.Q00359_ForASleeplessDeadman.Q00359_ForASleeplessDeadman;
|
||||
import quests.Q00371_ShrieksOfGhosts.Q00371_ShrieksOfGhosts;
|
||||
import quests.Q00372_LegacyOfInsolence.Q00372_LegacyOfInsolence;
|
||||
import quests.Q00373_SupplierOfReagents.Q00373_SupplierOfReagents;
|
||||
import quests.Q00376_ExplorationOfTheGiantsCavePart1.Q00376_ExplorationOfTheGiantsCavePart1;
|
||||
import quests.Q00377_ExplorationOfTheGiantsCavePart2.Q00377_ExplorationOfTheGiantsCavePart2;
|
||||
@@ -334,6 +335,7 @@ public class QuestMasterHandler
|
||||
Q00357_WarehouseKeepersAmbition.class,
|
||||
Q00359_ForASleeplessDeadman.class,
|
||||
Q00371_ShrieksOfGhosts.class,
|
||||
Q00372_LegacyOfInsolence.class,
|
||||
Q00373_SupplierOfReagents.class,
|
||||
Q00376_ExplorationOfTheGiantsCavePart1.class,
|
||||
Q00377_ExplorationOfTheGiantsCavePart2.class,
|
||||
|
Reference in New Issue
Block a user