Quest 1000 years, the End of Lamentation (344).
This commit is contained in:
parent
58b9307692
commit
c950d04c56
6
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30623-01.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30623-01.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Duelist Kaien:<br>
|
||||
This is the first I've heard of that! I'm so sorry, obviously you've gone to a great deal of trouble for nothing... Wait a moment~<br>
|
||||
Could I take a closer look at that? This design is remarkably similar to the one engraved on a scabbard that I received from my father... I am beginning to believe you now.<br>
|
||||
I come from a long line of dualists! It has been a tradition in my family for over a thousand years! Charming, no?<br>
|
||||
Thank you, I will accept this... I wish I had more to offer you in return! Please accept these worthless trinkets as a token of my appreciation!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30623-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30623-02.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Duelist Kaien:<br>
|
||||
Your hilt has been taken to a Dwarven craftsman who will fashion a suitable blade for it... Aren't you excited?!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30704-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30704-01.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>High Prefect Gavarentz:<br>
|
||||
This necklace and statue prove that what you say is true. Last night I dreamed of an Orc. His large body was covered with scars and he was drenched in what must have been his enemy's blood. He gave me this necklace...<br>
|
||||
Thank you, young traveler. Now I shall give the necklace to you. Use it carefully.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30704-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30704-02.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>High Prefect Gavarentz:<br>
|
||||
I have entrusted the amulet necklace to my daughter, who I have sent north to the Orc Fortress. She will wear the necklace in battle. I pray the mighty spirit of her ancestor will watch over her.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-01.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
I've not left Dragon Valley since I led my men here so many years ago to battle Antharas...<br>
|
||||
I have accepted the inevitability of my eternal responsibility to watch over the beast. But my heart goes out to the loyal soldiers who lost their lives due to my stubborn ignorance. I have no other wish than to see their remains returned to their hometowns, but I fear that you are not up to the task...<br>
|
||||
(This quest can only be undertaken by a character of level 48 or above.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-02.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
I've not left Dragon Valley since I led my men here so many years ago to battle Antharas...<br>
|
||||
I have accepted the inevitability of my eternal responsibility to watch over the beast. But my heart goes out to the loyal soldiers who lost their lives due to my stubborn ignorance. I have no other wish than to see their remains returned to their hometowns so they can rest in peace.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-03.htm">"I will help you."</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-03.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Watcher of Antharas Gilmore:<br>
|
||||
I buried my former subordinates in a corner of this Valley in a region called the <font color="LEVEL">Watcher's Tomb</font>. However, they strangely came back from the dead after Antharas and Desparion used their magic. My mind is still strong, but they turned into monsters after blood and death... These friends... creatures... are now called... 'Cave Servants'...<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-04.htm">"Carry on."</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-04.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Watcher of Antharas Gilmore:<br>
|
||||
You probably know as well, but there were many, many people that tried to kill Antharas. None were able, but their death was not the end for all. While some were undoubtedly held by Shilen's grasp, others become Cave Servants. Right now, I don't even know how many Cave Servants exist in the <font color="LEVEL">Watcher's Tomb</font>. What I can ask of you is to destroy as many Cave Servants as possible. <font color="LEVEL">Cave Servant, Archer, Warrior, Chief... Anything that has Cave in the name</font>. Kill them and collect their relics, then bring them to me. I will reward you appropriately.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-05.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Is there something keeping you here? Why aren't you out killing cave servants? Bring me back any relics they leave behind.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-06.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Believe it or not we gave our lives willingly to save Giran! But we never counted on being here for eternity, let alone looking like this! It's been a thousand years and still I long for my mortal life...<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-08.html">Give him the relics.</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-07.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
What's that? Oh, for some reason, I was sure that you had brought back relics. You should be out killing cave servants. You must do whatever you can to release my men from their endless torment.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-08.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Thank you! Please take this as a token of my appreciation. Thanks to you the noble soldiers can finally rest in peace... I am afraid that there are many more, however, who still wander this valley. Would you be willing to continue doing this for a while?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-16.html">"I will continue the work."</button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-17.html">"I quit."</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-09.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-09.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Could it be? If my eyes aren't deceiving me this used to belong to a friend of mine...<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation relic_info">"Tell me more, Gilmore."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-10.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-10.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
My personal aide wore this key around his neck. He stood by my side during the battle with Antharas 1,000 years ago. He was the first-born son in his family... This key was very important to him.<br>
|
||||
I believe one of his descendants is living in <font color="LEVEL">the Town of Giran</font>. He has the family name of <font color="LEVEL">Rodemai</font>.<br>
|
||||
I am bound to this valley so cannot go myself. Would you please take the key to Rodemai in the Town of Giran? I will pay you for your trouble.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-11.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-11.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
This sword belonged to one of my aides who fought alongside me against Antharas 1,000 years ago. In the intervening years the blade must have rusted away and only this hilt is left. He was a swordsman without parallel...<br>
|
||||
It is said that one of his descendants is living in <font color="LEVEL">the Town of Oren</font>. It is likely that he is following the family tradition of being a <font color="LEVEL">Duelist</font>.<br>
|
||||
I am unable to leave this valley or I would take this relic to him. Would you please do this for me? I will pay you for your trouble.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-12.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-12.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
This necklace belonged to a soldier that served under my command in the battle against Antharas. He was the finest Orc I've ever known, a true intellectual. Seriously! I'm fairly certain he was of aristocratic birth.<br>
|
||||
Come to think of it, I've seen that necklace elsewhere. It was worn by an Orc who was a <font color="LEVEL">High Prefect</font> from <font color="LEVEL">Hunters Village</font>.<br>
|
||||
I would take the necklace to him if I was able to leave this valley, but alas, I cannot. Would you please take it to him? I will compensate you well for your trouble.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-13.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-13.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
This crucifix belonged to one of the brave young soldiers who accompanied me here 1,000 years ago to battle the beast Antharas. At that time it shone like the sun. Now it looks so old and weathered...<br>
|
||||
He worshipped in a temple that stood where Aden Castle stands now. Please go to <font color="LEVEL">the Town of Aden</font> and take this crucifix to the temple of Einhasad. Show it to a <font color="LEVEL">High Priest</font> at the temple, he will know what to do with it.<br>
|
||||
Even if I could leave the valley to travel there, an undead such as myself could never enter the temple. If you will do this for me I will pay you well.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-14.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-14.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Please go ahead and deliver the relic I gave you. You can come back and resume dispatching the cave servants afterwards.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-15.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-15.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Watcher of Antharas Gilmore:<br>
|
||||
Oh, you're back? Perhaps I should reward for your good work, hmm?<br>
|
||||
Now, while you're here, I'd like to ask you to help with the same task in your future endeavours, as there are other friends of mine who still cannot rest in the watcher's tomb. Would you do this for me again in a while?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-16.html">"Yes."</button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00344_1000YearsTheEndOfLamentation 30754-17.html">"Sorry, I can't."</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-16.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-16.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Oh, thank you! I knew I could depend on you. This could go on for a while. There seems to be no end of cave servants in this cursed valley.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-17.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30754-17.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Antharas Watchman Gilmore:<br>
|
||||
Oh, well, you have done much good. I knew you wouldn't stay here forever, as I and my soldiers must do. Thank you for helping me and my men. Goodbye...
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30756-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30756-01.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Kristof Rodemai:<br>
|
||||
Really! So the ancestors of the Rodemai family participated in the expedition to fight Antharas during the Elmoreden Empire?<br>
|
||||
Yes, that does sound familiar. My family has always been a self-sacrificing lot... This key proves it. So, how about that?<br>
|
||||
I appreciate your bringing me something so precious! Here, take this as a token of my appreciation for your hard work.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30756-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30756-02.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Sir Kristof Rodemai:<br>
|
||||
The recovery of this key has restored the honor of the Rodemai family. It actually traces our ancestry back to the time of the ancient empire! I hope that you will continue working for us...
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30857-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30857-01.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>High Priest Orven:<br>
|
||||
This looks like a badge from our temple...? Don't tell me... Could it be a relic from the battle against Antharas 1,000 years ago? How could it be?<br>
|
||||
I have always feared that our efforts to slay Antharas have been in vain. This old badge tells me that our responsibilities cannot be avoided, no matter the cost.<br>
|
||||
Thank you, young traveler. Please take this small token of appreciation from our temple.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30857-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00344_1000YearsTheEndOfLamentation/30857-02.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>High Priest Orven:<br>
|
||||
The badge is safe with other sacred relics deep within the temple. Many fail to grasp the significance of this old piece of metal, but I hear it calling me to my duty...
|
||||
</body></html>
|
@ -0,0 +1,383 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q00344_1000YearsTheEndOfLamentation;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
|
||||
/**
|
||||
* 1000 years, the End of Lamentation (344)
|
||||
* @author Pandragon
|
||||
*/
|
||||
public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int KAIEN = 30623;
|
||||
private static final int GARVARENTZ = 30704;
|
||||
private static final int GILMORE = 30754;
|
||||
private static final int RODEMAI = 30756;
|
||||
private static final int ORVEN = 30857;
|
||||
// Items
|
||||
private static final int ARTICLES = 4269;
|
||||
private static final ItemHolder OLD_KEY = new ItemHolder(4270, 1);
|
||||
private static final ItemHolder OLD_HILT = new ItemHolder(4271, 1);
|
||||
private static final ItemHolder TOTEM_NECKLACE = new ItemHolder(4272, 1);
|
||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||
// Monsters
|
||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||
|
||||
{
|
||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||
MONSTER_CHANCES.put(20237, 0.78); // Cave Servant Archer
|
||||
MONSTER_CHANCES.put(20239, 0.79); // Cave Servant Captain
|
||||
MONSTER_CHANCES.put(20240, 0.85); // Royal Cave Servant
|
||||
MONSTER_CHANCES.put(20272, 0.58); // Cave Servant
|
||||
MONSTER_CHANCES.put(20273, 0.78); // Cave Servant Archer
|
||||
MONSTER_CHANCES.put(20274, 0.75); // Cave Servant Warrior
|
||||
MONSTER_CHANCES.put(20275, 0.79); // Cave Servant Captain
|
||||
MONSTER_CHANCES.put(20276, 0.85); // Royal Cave Servant
|
||||
}
|
||||
|
||||
// Rewards
|
||||
private static final ItemHolder ORIHARUKON_ORE = new ItemHolder(1874, 25);
|
||||
private static final ItemHolder VARNISH_OF_PURITY = new ItemHolder(1887, 10);
|
||||
private static final ItemHolder SCROLL_EWC = new ItemHolder(951, 1);
|
||||
private static final ItemHolder RAID_SWORD = new ItemHolder(133, 1);
|
||||
private static final ItemHolder COKES = new ItemHolder(1879, 55);
|
||||
private static final ItemHolder RING_OF_AGES = new ItemHolder(885, 1);
|
||||
private static final ItemHolder LEATHER = new ItemHolder(1882, 70);
|
||||
private static final ItemHolder COARSE_BONE_POWDER = new ItemHolder(1881, 50);
|
||||
private static final ItemHolder HEAVY_DOOM_HAMMER = new ItemHolder(191, 1);
|
||||
private static final ItemHolder STONE_OF_PURITY = new ItemHolder(1875, 19);
|
||||
private static final ItemHolder SCROLL_EAC = new ItemHolder(952, 5);
|
||||
private static final ItemHolder DRAKE_LEATHER_BOOTS = new ItemHolder(2437, 1);
|
||||
// Misc
|
||||
private static final int MIN_LVL = 48;
|
||||
private static final int MAX_LVL = 55;
|
||||
|
||||
public Q00344_1000YearsTheEndOfLamentation()
|
||||
{
|
||||
super(344, Q00344_1000YearsTheEndOfLamentation.class.getSimpleName(), "1000 years, the End of Lamentation");
|
||||
addStartNpc(GILMORE);
|
||||
addTalkId(KAIEN, GARVARENTZ, GILMORE, RODEMAI, ORVEN);
|
||||
addKillId(MONSTER_CHANCES.keySet());
|
||||
registerQuestItems(ARTICLES, OLD_KEY.getId(), OLD_HILT.getId(), TOTEM_NECKLACE.getId(), CRUCIFIX.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
String htmltext = null;
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "30754-03.htm":
|
||||
case "30754-16.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30754-04.htm":
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30754-08.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
final long count = getQuestItemsCount(player, ARTICLES);
|
||||
if (count < 1)
|
||||
{
|
||||
htmltext = "30754-07.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
takeItems(player, ARTICLES, -1);
|
||||
if (getRandom(1000) >= count)
|
||||
{
|
||||
giveAdena(player, count * 60, true);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_MIDDLE);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
switch (getRandom(4))
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
qs.setMemoState(1);
|
||||
giveItems(player, OLD_HILT);
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
qs.setMemoState(2);
|
||||
giveItems(player, OLD_KEY);
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
qs.setMemoState(3);
|
||||
giveItems(player, TOTEM_NECKLACE);
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
qs.setMemoState(4);
|
||||
giveItems(player, CRUCIFIX);
|
||||
break;
|
||||
}
|
||||
}
|
||||
htmltext = "30754-09.html";
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30754-17.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = event;
|
||||
qs.exitQuest(true, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "relic_info":
|
||||
{
|
||||
switch (qs.getMemoState())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "30754-10.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "30754-11.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "30754-12.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
htmltext = "30754-13.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance talker)
|
||||
{
|
||||
final QuestState qs = getQuestState(talker, true);
|
||||
String htmltext = getNoQuestMsg(talker);
|
||||
switch (npc.getId())
|
||||
{
|
||||
case GILMORE:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = ((talker.getLevel() >= MIN_LVL) && (talker.getLevel() <= MAX_LVL)) ? "30754-02.htm" : "30754-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = (hasQuestItems(talker, ARTICLES)) ? "30754-06.html" : "30754-05.html";
|
||||
}
|
||||
else if (hasItem(talker, OLD_KEY) || hasItem(talker, OLD_HILT) || hasItem(talker, TOTEM_NECKLACE) || hasItem(talker, CRUCIFIX))
|
||||
{
|
||||
htmltext = "30754-14.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setCond(1);
|
||||
htmltext = "30754-15.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(talker);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case KAIEN:
|
||||
{
|
||||
if (qs.getMemoState() == 1)
|
||||
{
|
||||
if (hasItem(talker, OLD_HILT))
|
||||
{
|
||||
takeItems(talker, OLD_HILT.getId(), -1);
|
||||
final int rand = getRandom(100);
|
||||
if (rand <= 52)
|
||||
{
|
||||
rewardItems(talker, ORIHARUKON_ORE);
|
||||
}
|
||||
else if (rand <= 76)
|
||||
{
|
||||
rewardItems(talker, VARNISH_OF_PURITY);
|
||||
}
|
||||
else if (rand <= 98)
|
||||
{
|
||||
rewardItems(talker, SCROLL_EWC);
|
||||
}
|
||||
else
|
||||
{
|
||||
rewardItems(talker, RAID_SWORD);
|
||||
}
|
||||
qs.setCond(1);
|
||||
htmltext = "30623-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30623-02.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case RODEMAI:
|
||||
{
|
||||
if (qs.getMemoState() == 2)
|
||||
{
|
||||
if (hasItem(talker, OLD_KEY))
|
||||
{
|
||||
takeItems(talker, OLD_KEY.getId(), -1);
|
||||
final int rand = getRandom(100);
|
||||
if (rand <= 39)
|
||||
{
|
||||
rewardItems(talker, COKES);
|
||||
}
|
||||
else if (rand <= 89)
|
||||
{
|
||||
rewardItems(talker, SCROLL_EWC);
|
||||
}
|
||||
else
|
||||
{
|
||||
rewardItems(talker, RING_OF_AGES);
|
||||
}
|
||||
qs.setCond(1);
|
||||
htmltext = "30756-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30756-02.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GARVARENTZ:
|
||||
{
|
||||
if (qs.getMemoState() == 3)
|
||||
{
|
||||
if (hasItem(talker, TOTEM_NECKLACE))
|
||||
{
|
||||
takeItems(talker, TOTEM_NECKLACE.getId(), -1);
|
||||
final int rand = getRandom(100);
|
||||
if (rand <= 47)
|
||||
{
|
||||
rewardItems(talker, LEATHER);
|
||||
}
|
||||
else if (rand <= 97)
|
||||
{
|
||||
rewardItems(talker, COARSE_BONE_POWDER);
|
||||
}
|
||||
else
|
||||
{
|
||||
rewardItems(talker, HEAVY_DOOM_HAMMER);
|
||||
}
|
||||
qs.setCond(1);
|
||||
htmltext = "30704-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30704-02.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ORVEN:
|
||||
{
|
||||
if (qs.getMemoState() == 4)
|
||||
{
|
||||
if (hasItem(talker, CRUCIFIX))
|
||||
{
|
||||
takeItems(talker, CRUCIFIX.getId(), -1);
|
||||
final int rand = getRandom(100);
|
||||
if (rand <= 49)
|
||||
{
|
||||
rewardItems(talker, STONE_OF_PURITY);
|
||||
}
|
||||
else if (rand <= 69)
|
||||
{
|
||||
rewardItems(talker, SCROLL_EAC);
|
||||
}
|
||||
else
|
||||
{
|
||||
rewardItems(talker, DRAKE_LEATHER_BOOTS);
|
||||
}
|
||||
qs.setCond(1);
|
||||
htmltext = "30857-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30857-02.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getRandomPartyMemberState(killer, 1, 3, npc);
|
||||
if (qs != null)
|
||||
{
|
||||
giveItemRandomly(qs.getPlayer(), npc, ARTICLES, 1, 0, MONSTER_CHANCES.get(npc.getId()), true);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
@ -101,6 +101,7 @@ import quests.Q00307_ControlDeviceOfTheGiants.Q00307_ControlDeviceOfTheGiants;
|
||||
import quests.Q00310_OnlyWhatRemains.Q00310_OnlyWhatRemains;
|
||||
import quests.Q00336_CoinsOfMagic.Q00336_CoinsOfMagic;
|
||||
import quests.Q00337_AudienceWithTheLandDragon.Q00337_AudienceWithTheLandDragon;
|
||||
import quests.Q00344_1000YearsTheEndOfLamentation.Q00344_1000YearsTheEndOfLamentation;
|
||||
import quests.Q00359_ForASleeplessDeadman.Q00359_ForASleeplessDeadman;
|
||||
import quests.Q00371_ShrieksOfGhosts.Q00371_ShrieksOfGhosts;
|
||||
import quests.Q00373_SupplierOfReagents.Q00373_SupplierOfReagents;
|
||||
@ -388,6 +389,7 @@ final class QuestMasterHandler
|
||||
Q00310_OnlyWhatRemains.class,
|
||||
Q00336_CoinsOfMagic.class,
|
||||
Q00337_AudienceWithTheLandDragon.class,
|
||||
Q00344_1000YearsTheEndOfLamentation.class,
|
||||
Q00359_ForASleeplessDeadman.class,
|
||||
Q00371_ShrieksOfGhosts.class,
|
||||
Q00373_SupplierOfReagents.class,
|
||||
|
BIN
trunk/dist/game/data/scripts/quests/QuestsToDo.xlsx
vendored
BIN
trunk/dist/game/data/scripts/quests/QuestsToDo.xlsx
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user