This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-00.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-00.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Dilios:<br>
|
||||
I don't know how a stranger like you happened to come here, but this is a very different place than Aden. Here the only law is power.<br>
|
||||
Gracia was originally a barren land, and the sudden appearance of monsters has made survival even tougher. The weak do not last long, and many envy the dead -- at least they are at peace.<br>
|
||||
If you've come here only to sightsee, you had better leave as fast as you can!<br>
|
||||
(Only characters who are level 75 or above may undertake this quest.)
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Dilios:<br>
|
||||
I don't know how a stranger like you happened to come here, but this is a very different place than Aden. Here the only law is power.<br>
|
||||
Gracia was originally a barren land, and the sudden appearance of monsters has made survival even tougher. The weak do not last long, and many envy the dead -- at least they are at peace.<br>
|
||||
But if have strength, courage and luck, you may forge a different path for yourself. Such individuals are rare, unfortunately. If you think you are one, I have a very important mission for you.<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32549-02.htm">"I will prove my worth."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Dilios:<br>
|
||||
I hope you mean what you said. If not, you will regret it.<br>
|
||||
So I will ask you one more time. Are you ready for this trial?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32549-03.htm">"I'm prepared to prove my worth."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Dilios:<br>
|
||||
Then you must acquire the Aerial Transformed Object. Go see <font color="LEVEL">Engineer Lekon</font> at Kucereus' clan outpost and obtain <font color="LEVEL">Lekon's Certificate</font> from him. If you can do this, you will have proven that you belong in this harsh land.<br>
|
||||
There is no time to waste. Hurry!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-04.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-04.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Dilios:<br>
|
||||
Hmm... Although I can't read this scribble, it must be <font color="LEVEL">Lekon's Certificate</font>. You managed to acquire the Aerial Transformed Object, eh? Now you are ready for a full-scale mission.<br>
|
||||
Let me ask you a question. What do you think is the best methode to fight evil? There are many opinions, of course. But I think the best answer is to use that evil against itself.<br>
|
||||
When evil suddenly appeared in Gracia, we were curious about the source of that power. We studied it as best as we could. As a result, we learned to make weapons, shileds and many other useful battle tools using that evil spirit.<br>
|
||||
Unfortunately, it requires a huge sacrifice to obtain the necessary materials. You can only get them, in fact, by killing those evil creatures. I wish I could explain in greater detail, but I'm just a simple soldier. If you wish to speak with an expert in such matters, speak with <font color="LEVEL">Special Products Broker Kutran at Kucereus' clan outpost</font>. He will be able to tell you more.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32549-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Dilios:<br>
|
||||
A method to fight evil with evil... I wish I could explain it better, but there are many aspects a simple soldier like me just doesn't fully understand.<br>
|
||||
<font color="LEVEL">Special Products Broker Kutran at Kucereus' clan outpost is a specialist in this field, however. Go visit him. He will tell you more.
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-01.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-01.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Kutran:<br>
|
||||
Would you like to know about the <font color="LEVEL">Special Seed Products</font>? They are a type of crystal that contains each Seed's power and characteristics: the source of the evil power that has reduced Gracia to this pitiful state.<br>
|
||||
Despite the danger, however, there is no doubt that this same energy could greatly strengthen weapons and armor if we could infuse them with it. As Dilios has said, we must fight fire with fire, evil with evil.<br>
|
||||
It took me a long time, but I finally succeeded. The resulting weapons and armor are far more powerful than any I have seen before.<br>
|
||||
I call these crystals <font color="LEVEL">Special Seed Products</font> and am ready to trade them to courageous adventurers. In fact, you can't afford not to have them.<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-02.htm">Keep listening.</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-02.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-02.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Kutran:<br>
|
||||
These Special Seed Products may give us the edge we need to defeat our enemies.<br>
|
||||
If you acquire the materials we need from the monsters of each Seed, I can process them. Then I'll exchange them for Special Seed Products.<br>
|
||||
You passed Dilis' test, so I suppose I can tell you exchange list:<br>
|
||||
<font color="LEVEL">5 Nuclei of an Incomplete Soul</font> from the <font color="LEVEL">Seed of Immortality</font> can be exchanged for <font color="LEVEL">1 Nucleus of a Freed Soul</font>, <font color="LEVEL">5 Mounted Troop Totems</font> from the <font color="LEVEL">Seed of Destruction</font> can be exchanged for <font color="LEVEL">1 Mounted Troop Charm</font> and <font color="LEVEL">5 Spirit Stone Dust</font> from the <font color="LEVEL">Seed of Annihilation</font> can be exchanged for <font color="LEVEL">1 Spirit Stone Fragment</font>.<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-03.htm">Keep listening.</a>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-03.htm
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-03.htm
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Kutran:<br>
|
||||
You also need to know about the <font color="LEVEL">Seed Collection</font>.<br>
|
||||
There are specific periods available for <font color="LEVEL">collection</font> depending upon each Seed's cycle. Since what you collect can usually be used as ingredients in my work, I'll give you Adena when you gather and bring any of the following:<br>
|
||||
<font color="LEVEL">Fragment of Soul</font> collected from the <font color="LEVEL">Seed of Immortality</font>, the <font color="LEVEL">Breath of Tiat</font> collected from the <font color="LEVEL">Seed of Destruction</font>, and the <font color="LEVEL">Concentrated Spirit Energy</font> collected from the <font color="LEVEL">Seed of Annihilation</font>.<br>
|
||||
They are useless to you, so an exchange will benefit us both.<br>
|
||||
Do you understand?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-01.htm">Listen to his explanation again.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-04.htm">Say you understand.</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-04.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-04.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Kutran:<br>
|
||||
These exchanges can benefit both of us. Let me recap:<br>
|
||||
<font color="LEVEL">5 Nuclei of an Incomplete Soul</font> from the <font color="LEVEL">Seed of Immortality</font> can be exchanged for <font color="LEVEL">1 Nucleus of a Freed Soul</font>, <font color="LEVEL">5 Mounted Troop Totems</font> from the <font color="LEVEL">Seed of Destruction</font> can be exchanged for <font color="LEVEL">1 Mounted Troop Charm</font>, <font color="LEVEL">5 Spirit Stone Dust</font> from the <font color="LEVEL">Seed of Annihilation</font> can be exchanged for <font color="LEVEL">1 Spirit Stone Fragment</font>.<br>
|
||||
Regarding Seed collection,<br>
|
||||
<font color="LEVEL">Fragment of Soul</font> collected from the <font color="LEVEL">Seed of Immortality</font>, the <font color="LEVEL">Breath of Tiat</font> collected from the <font color="LEVEL">Seed of Destruction</font> and the <font color="LEVEL">Concentrated Spirit Energy</font> collected from the <font color="LEVEL">Seed of Annihilation</font> can be exchanged for Adena.<br>
|
||||
Is that clear?
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-05.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-05.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Kirklan:<br>
|
||||
Well...what brings you here?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-06.htm">Exchange Special Seed Product of Seed of Infinity or Collection reward.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-11.htm">Exchange Special Seed Product of Seed of Destruction or Collection reward.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-16.htm">Exchange Special Seed Product of Seed of Extermination or Collection reward.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Say you will continue your mission.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-06.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-06.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
What do you want to exchange, Seed of Extermination's Special Seed Product or Seed Collection?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-07.htm">Exchange 5 Nuclei of an Incomplete Soul with Nucleus of a Freed Soul.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-09.htm">Receive reward for Fragment of Soul.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Back</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-07.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-07.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
You did great! Here's the reward for Nuclei of an Incomplete Soul!<br>
|
||||
Is there anything else?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Keep calculating.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Continue mission.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-08.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-08.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
My impressive counting abilities reveal that you don't have enough. We can't make an exchange like this. In order to exchange <font color="LEVEL">Nucleus of a Freed Soul</font>, you need <font color="LEVEL">5 Nuclei of an Incomplete Soul</font>.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-09.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-09.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
You did great! Here's the reward for Fragment of Soul!<br>
|
||||
Is there anything else?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Keep calculating.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Continue mission.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-10.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-10.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
Hmm, let's take a look... There's no <font color="LEVEL">Fragment of Soul</font>? We can't make an exchange like this. We have standards.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-11.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-11.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
What do you want to exchange, Seed of Extermination's Special Seed Product or Seed Collection?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-12.htm">Exchange 5 Mounted Troop Totems with Mounted Troop Charm.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-14.htm">Receive reward for Breath of Tiat.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Back</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-12.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-12.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
You did great! Here's the reward for Mounted Troop Totems!<br>
|
||||
Is there anything else?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Keep calculating.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Continue mission.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-13.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-13.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
My impressive counting abilities reveal that you don't have enough. We can't make an exchange like this. In order to exchange <font color="LEVEL">Mounted Troop Charm</font>, you need <font color="LEVEL">5 Mounted Troop Totems</font>.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-14.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-14.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
You did great! Here's the reward for Breath of Tiat!<br>
|
||||
Is there anything else?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Keep calculating.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Continue mission.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-15.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-15.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
Hmm, let's take a look... There's no <font color="LEVEL">Breath of Tiat</font>? We can't make an exchange like this. We have standards.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-16.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-16.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
What do you want to exchange, Seed of Extermination's Special Seed Product or Seed Collection?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-17.htm">Exchange 5 powders of Fragment of Soul Stone with Fragment of Soul Stone.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-19.htm">Receive reward for Condensed Energy of Life.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Back</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-17.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-17.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
You did great! Here's the reward for Powders of Fragment of Soul Stone!<br>
|
||||
Is there anything else?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Keep calculating.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Continue mission.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-18.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-18.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
My impressive counting abilities reveal that you don't have enough. We can't make an exchange like this. In order to exchange <font color="LEVEL">Fragment of Soul Stone</font>, you need <font color="LEVEL">5 Powders of Fragment of Soul Stone</font>.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-19.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-19.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kirklan:<br>
|
||||
You did great! Here's the reward for Condensed Energy of Life!<br>
|
||||
Is there anything else?<br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-05.htm">Keep calculating.</a><br>
|
||||
<a action="bypass -h Quest Q00692_HowtoOpposeEvil 32550-21.htm">Continue mission.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-20.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-20.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
Hmm, let's take a look... There's no <font color="LEVEL">Condensed Energy of Life</font>? We can't make an exchange like this. We have standards.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-21.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/32550-21.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kirklan:<br>
|
||||
Remember, getting these items is good for both of us. You want to see me happy? Bring me a pocket full of what I told you to get, and I'll show you happy.
|
||||
</body></html>
|
266
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/Q00692_HowtoOpposeEvil.java
vendored
Normal file
266
trunk/dist/game/data/scripts/quests/Q00692_HowtoOpposeEvil/Q00692_HowtoOpposeEvil.java
vendored
Normal file
@@ -0,0 +1,266 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 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.Q00692_HowtoOpposeEvil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
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.ItemHolder;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
|
||||
/**
|
||||
* How to Oppose Evil (692)
|
||||
* @author Gigiikun
|
||||
*/
|
||||
public final class Q00692_HowtoOpposeEvil extends Quest
|
||||
{
|
||||
private static final int DILIOS = 32549;
|
||||
private static final int KIRKLAN = 32550;
|
||||
private static final int LEKONS_CERTIFICATE = 13857;
|
||||
private static final int[] QUEST_ITEMS =
|
||||
{
|
||||
13863,
|
||||
13864,
|
||||
13865,
|
||||
13866,
|
||||
13867,
|
||||
15535,
|
||||
15536
|
||||
};
|
||||
|
||||
private static final Map<Integer, ItemHolder> QUEST_MOBS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
// Seed of Infinity
|
||||
QUEST_MOBS.put(22509, new ItemHolder(13863, 500));
|
||||
QUEST_MOBS.put(22510, new ItemHolder(13863, 500));
|
||||
QUEST_MOBS.put(22511, new ItemHolder(13863, 500));
|
||||
QUEST_MOBS.put(22512, new ItemHolder(13863, 500));
|
||||
QUEST_MOBS.put(22513, new ItemHolder(13863, 500));
|
||||
QUEST_MOBS.put(22514, new ItemHolder(13863, 500));
|
||||
QUEST_MOBS.put(22515, new ItemHolder(13863, 500));
|
||||
// Seed of Destruction
|
||||
QUEST_MOBS.put(22537, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22538, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22539, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22540, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22541, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22542, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22543, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22544, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22546, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22547, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22548, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22549, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22550, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22551, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22552, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22593, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22596, new ItemHolder(13865, 250));
|
||||
QUEST_MOBS.put(22597, new ItemHolder(13865, 250));
|
||||
// Seed of Annihilation
|
||||
QUEST_MOBS.put(22746, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22747, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22748, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22749, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22750, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22751, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22752, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22753, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22754, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22755, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22756, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22757, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22758, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22759, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22760, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22761, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22762, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22763, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22764, new ItemHolder(15536, 125));
|
||||
QUEST_MOBS.put(22765, new ItemHolder(15536, 125));
|
||||
}
|
||||
|
||||
public Q00692_HowtoOpposeEvil()
|
||||
{
|
||||
super(692, Q00692_HowtoOpposeEvil.class.getSimpleName(), "How to Oppose Evil");
|
||||
addStartNpc(DILIOS);
|
||||
addTalkId(DILIOS, KIRKLAN);
|
||||
addKillId(QUEST_MOBS.keySet());
|
||||
}
|
||||
|
||||
@Override
|
||||
public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
if (event.equalsIgnoreCase("32549-03.htm"))
|
||||
{
|
||||
st.startQuest();
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-04.htm"))
|
||||
{
|
||||
st.setCond(3);
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-07.htm"))
|
||||
{
|
||||
if (!giveReward(st, 13863, 5, 13796, 1))
|
||||
{
|
||||
return "32550-08.htm";
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-09.htm"))
|
||||
{
|
||||
if (!giveReward(st, 13798, 1, 57, 5000))
|
||||
{
|
||||
return "32550-10.htm";
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-12.htm"))
|
||||
{
|
||||
if (!giveReward(st, 13865, 5, 13841, 1))
|
||||
{
|
||||
return "32550-13.htm";
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-14.htm"))
|
||||
{
|
||||
if (!giveReward(st, 13867, 1, 57, 5000))
|
||||
{
|
||||
return "32550-15.htm";
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-17.htm"))
|
||||
{
|
||||
if (!giveReward(st, 15536, 5, 15486, 1))
|
||||
{
|
||||
return "32550-18.htm";
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("32550-19.htm"))
|
||||
{
|
||||
if (!giveReward(st, 15535, 1, 57, 5000))
|
||||
{
|
||||
return "32550-20.htm";
|
||||
}
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance partyMember = getRandomPartyMember(player, 3);
|
||||
if (partyMember == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
final QuestState st = getQuestState(partyMember, false);
|
||||
final int npcId = npc.getId();
|
||||
if ((st != null) && QUEST_MOBS.containsKey(npcId))
|
||||
{
|
||||
int chance = (int) (QUEST_MOBS.get(npcId).getCount() * Config.RATE_QUEST_DROP);
|
||||
int numItems = chance / 1000;
|
||||
chance = chance % 1000;
|
||||
if (getRandom(1000) < chance)
|
||||
{
|
||||
numItems++;
|
||||
}
|
||||
if (numItems > 0)
|
||||
{
|
||||
st.giveItems(QUEST_MOBS.get(npcId).getId(), numItems);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (st.isCreated())
|
||||
{
|
||||
htmltext = (player.getLevel() >= 75) ? "32549-01.htm" : "32549-00.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (npc.getId() == DILIOS)
|
||||
{
|
||||
if (st.isCond(1) && st.hasQuestItems(LEKONS_CERTIFICATE))
|
||||
{
|
||||
htmltext = "32549-04.htm";
|
||||
st.takeItems(LEKONS_CERTIFICATE, -1);
|
||||
st.setCond(2);
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32549-05.htm";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32550-01.htm";
|
||||
}
|
||||
else if (st.isCond(3))
|
||||
{
|
||||
for (int i : QUEST_ITEMS)
|
||||
{
|
||||
if (st.getQuestItemsCount(i) > 0)
|
||||
{
|
||||
return "32550-05.htm";
|
||||
}
|
||||
}
|
||||
htmltext = "32550-04.htm";
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private static final boolean giveReward(QuestState st, int itemId, int minCount, int rewardItemId, long rewardCount)
|
||||
{
|
||||
long count = st.getQuestItemsCount(itemId);
|
||||
if (count < minCount)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
count = count / minCount;
|
||||
st.takeItems(itemId, count * minCount);
|
||||
st.rewardItems(rewardItemId, rewardCount * count);
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user