This commit is contained in:
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32528-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32528-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Corpse of Medibal:<br>
|
||||
(You find a document after searching his chest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32528-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32528-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Corpse of Medibal:<br>
|
||||
(This is the corpse of Inspector Medibal, who was dispatched to investigate the Seed of Destruction. Apparently he is now at rest.)<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32528-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32528-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Corpse of Medibal:<br>
|
||||
(Nothing comes out now.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Hey, I'm injured here! Ask a healthy soldier and leave me alone! It's bad enought that I couldn't sleep because of a nightmare.<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32556-03.html">"Orbyu sent me."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Thanks to you I can now look at the faces of my friends in heaven. I feel stronger already. Thank you!<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Obryu sent you? He just can't leave well enough alone.<br>
|
||||
Yes, as you can see I'm the sole survivor of that troop. Do you know what that means? I fled to save my own miserable life while my fellow soldiers were dying. I'm a coward. And we failed to accomplish <font color="LEVEL">the mission</font>. Now every night I have nightmares about my dead friends. I should have died there...<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32556-04.html">"What happened?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-04.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-04.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Soldier El:<br>
|
||||
We were sent to <font color="LEVEL">protect the group dispatched to investigate the Seed of Destruction</font>. We were part of a large force and felt invincible. At first everything went well.<br>
|
||||
Then...we were attacked by the Mounted Troop. We kept fighting in order to complete our mission. While some of us kept up a rearguard defense, a few others tried to deliver the documents containing records of our investigation to the fortress. <font color="LEVEL">Inspector Medibal</font> and I were ordered to deliver them. Thanks to our soldiers' efforts we were able to get out...barely. But as we were almost clear, Medibal and I were both hit. And...and I couldn't grab the <font color="LEVEL">inspection documents</font> he was holding. I betrayed the trust of my comrades. I failed them...<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32556-05.html">"But surely we can recover the documents?"</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-05.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-05.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Soldier El:<br>
|
||||
I thought about that. But I'm too injured. And even if I weren't, I'm not sure I could go back there. I've never been so scared in all my life....<br>
|
||||
Why are you so interested? I guess you came here looking for information about the Seed of Destruction, eh? Well, if you coud recover that document, you'd get all the information we currently have about the Seed.<br>
|
||||
Perhaps you can help me...<br>
|
||||
It won't bring our dead soldiers back, but completing that mission will restore their honor -- and mine. You'd have my eternal gratitude.<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32556-06.html">"Leave it to me."</a></body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Very well. I'll put my trust in you. Help me restore our honor.<br>
|
||||
Find <font color="LEVEL">Medibal's corpse</font> in the <font color="LEVEL">Seed of Destruction</font> and retrieve <font color="LEVEL">Inspector Medibal's documents</font> from his chest.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Help me restore our honor by completing our mission.<br>
|
||||
Find <font color="LEVEL">Medibal's corpse</font> in the <font color="LEVEL">Seed of Destruction</font> and retrieve <font color="LEVEL">Inspector Medibal's documents</font> from his chest.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Have you returned? Did you bring the documents?<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32556-09.html">"I found the documents just where you said they would be."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32556-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Soldier El:<br>
|
||||
Thank you! You have restored the honor of my fallen comrades and myself. I won't forget your help. If you take those documents to <font color="LEVEL">Soldier Orbyu</font>, I know he will reward you as well. The money that was promised to us will be given to you by right. You've earned it!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
We've been assigned a mission by Admiral Keucereus, commander of this Alliance Base. But it's so dangerous that we haven't had anyone volunteer. Adventurer, will you take it on?<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32560-04.htm">"Tell me what it is first."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
We've been assigned a mission by Admiral Keucereus, commander of this Alliance Base. But it's so dangerous that we haven't had anyone volunteer.<br>
|
||||
What? You're interested? Uh, no thanks. You wouldn't last long! Thanks for the offer, though.<br>
|
||||
(Only characters who are level 75 and above are permitted to undertake this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
Thank you! I heard Admiral Keucereus was very pleased.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-04.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-04.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
To the west of Keucereus Alliance Base lies a place called the <font color="LEVEL">Seed of Destruction</font>. It is ruled by the lord of the Dragon Race.<br>
|
||||
We have sent many scouts to gather information about the Seed, but few of them ever returned. The rest were too afraid to venture deeply into the area. Obviously we cannot wage war effectively if we know so little about our enemy.<br>
|
||||
That's why we need your help to gather information about the Seed. Will you do it?<br>
|
||||
<a action="bypass -h Quest Q10271_TheEnvelopingDarkness 32560-05.html">"I'll help you. What should I do?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
Ah! Thank you! You are the answer to our prayers.<br>
|
||||
I won't lie to you -- this is going to be a very difficult mission. Before you go, I'd advise you to go talk to <font color="LEVEL">Soldier El</font>. He accompanied a group of researchers into the Seed of Destruction. He is the only person, in fact, who has been to the deepest dungeon of the Seed of Destruction and come back alive. Others...have not been as fortunate.<br>
|
||||
You can find Soldier El in the center of the fortress.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
In learning additional information about the mission, speak to <font color="LEVEL">Soldier El</font>.<br>
|
||||
You can find him near the center of the fortress.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
I heard that you are carrying out a mission you on behalf of Soldier El. Do you have any business with me? El is in the center of the fortress, if you need to find him.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/32560-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Soldier Orbyu:<br>
|
||||
You have completed your mission! Excellent! Here is the reward El promised you.
|
||||
</body></html>
|
171
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/Q10271_TheEnvelopingDarkness.java
vendored
Normal file
171
trunk/dist/game/data/scripts/quests/Q10271_TheEnvelopingDarkness/Q10271_TheEnvelopingDarkness.java
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* 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.Q10271_TheEnvelopingDarkness;
|
||||
|
||||
import quests.Q10269_ToTheSeedOfDestruction.Q10269_ToTheSeedOfDestruction;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* The Enveloping Darkness (10271)
|
||||
* @author Gladicek
|
||||
*/
|
||||
public class Q10271_TheEnvelopingDarkness extends Quest
|
||||
{
|
||||
private static final int ORBYU = 32560;
|
||||
private static final int EL = 32556;
|
||||
private static final int MEDIBAL_CORPSE = 32528;
|
||||
private static final int MEDIBAL_DOCUMENT = 13852;
|
||||
|
||||
public Q10271_TheEnvelopingDarkness()
|
||||
{
|
||||
super(10271, Q10271_TheEnvelopingDarkness.class.getSimpleName(), "The Enveloping Darkness");
|
||||
addStartNpc(ORBYU);
|
||||
addTalkId(ORBYU, EL, MEDIBAL_CORPSE);
|
||||
registerQuestItems(MEDIBAL_DOCUMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "32560-05.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32556-06.html":
|
||||
st.setCond(2, true);
|
||||
break;
|
||||
case "32556-09.html":
|
||||
if (st.hasQuestItems(MEDIBAL_DOCUMENT))
|
||||
{
|
||||
st.takeItems(MEDIBAL_DOCUMENT, -1);
|
||||
st.setCond(4, true);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case ORBYU:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
st = player.getQuestState(Q10269_ToTheSeedOfDestruction.class.getSimpleName());
|
||||
htmltext = ((player.getLevel() >= 75) && (st != null) && st.isCompleted()) ? "32560-01.htm" : "32560-02.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "32560-05.html"; // TODO this html should most probably be different
|
||||
break;
|
||||
case 2:
|
||||
htmltext = "32560-06.html";
|
||||
break;
|
||||
case 3:
|
||||
htmltext = "32560-07.html";
|
||||
break;
|
||||
case 4:
|
||||
htmltext = "32560-08.html";
|
||||
st.giveAdena(62516, true);
|
||||
st.addExpAndSp(377403, 37867);
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "32560-03.html";
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case EL:
|
||||
if (st.isCompleted())
|
||||
{
|
||||
htmltext = "32556-02.html";
|
||||
}
|
||||
else if (st.isStarted())
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "32556-01.html";
|
||||
break;
|
||||
case 2:
|
||||
htmltext = "32556-07.html";
|
||||
break;
|
||||
case 3:
|
||||
htmltext = "32556-08.html";
|
||||
break;
|
||||
case 4:
|
||||
htmltext = "32556-09.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MEDIBAL_CORPSE:
|
||||
if (st.isCompleted())
|
||||
{
|
||||
htmltext = "32528-02.html";
|
||||
}
|
||||
else if (st.isStarted())
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 2:
|
||||
htmltext = "32528-01.html";
|
||||
st.setCond(3, true);
|
||||
st.giveItems(MEDIBAL_DOCUMENT, 1);
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
htmltext = "32528-03.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user