This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
It's time plans were put into motion... yes... it's time those silent sycophants saw the truth of things... time for you to finally earn the right to be in my presence as well. I've got a task for you... yes if you're willing, there's something that needs being done and you will be rewarded with more than my mere respect.<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 31350-03.html">Ask what needs to be done.</a><br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 31350-02.html">Back away slowly and quietly.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
Why are you here? Stop testing my patience and perform the simple tasks to which I have turned to you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-02b.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-02b.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
No. You lack strength.<br>
|
||||
(Only characters of level 82 and above are permitted to take on this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
As a matter of business, I find simplicity in things to be... ideal. Beautiful even. Your task is to deliver a message to someone, nothing more and nothing less. Someone named <font color="LEVEL">Greymore</font>. The task is simple, but as important as what the letter says...<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 31350-04.htm">"What does the letter say?"</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-04.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-04.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
None of your business. Your role in task is simply delivery. To find Greymore, talk to <font color="LEVEL">Aquilani</font>.<br>
|
||||
He stands outside the western entrance of the <font color="LEVEL">Monastery of Silence</font>. He knows precisely where you'll find Greymore.<br>
|
||||
Yes... simply shoulder this epistle. A task so simple someone such as yourself could not slip up.<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 31350-05.htm">Accept the task.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
Here is the letter. This task makes you one of my own, which means that should you lose this letter or fail this task, you will be mine to punish. It also means Aquilani will recognize my presence in you when you seek him out.<br>
|
||||
Do not deter from the path. Seek <font color="LEVEL">Aquilani</font> and he will show you the way to Greymore in the <font color="LEVEL">Monastery of Silence</font>.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
You are on the path I have laid out for you. Do not dilly-dally, do not be distracted.<br>
|
||||
And don't forget, first talk to <font color="LEVEL">Aquilani</font> at the entrance to the <font color="LEVEL">Monastery of Silence</font> and he shall show you the way to Greymore.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/31350-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Priest Dominic:<br>
|
||||
Aquilani tells me I was right to trust you with that task. I am not easily impressed, but you have indeed proven yourself worthy of my presence. I suspect Greymore may require help if you wish to assist us further.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32757-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32757-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Greymore:<br>
|
||||
Blast! You startled me, fool. Who are you?<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 32757-02.html">"Ah, I've found you!"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32757-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32757-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Greymore:<br>
|
||||
What?! You followed me here? Fool!<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 32757-03.html">"Relax, I'm here with a parcel from Brother Dominic."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32757-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32757-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Greymore:<br>
|
||||
Ah, now that, that is different. You must travel as silently as a feline, for you startled me and I am usually quite perceptive.<br>
|
||||
Well, I must read this letter and it is not for the eyes of the uninitiated. So unless you have something else to tell me, you can be on your way now, wanderer. Ah, here for your troubles.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aquilani:<br>
|
||||
Halt your approach, wanderer. I wish not to be bothered. Your ignorance will not be forgiven should you trespass.<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 32780-02.html">Present Dominic's Letter.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aquilani:<br>
|
||||
Ah, so you are Brother Dominic's creature. Welcome. But this letter is not for me, it is for Brother Greymore. Are you ready to see him?<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 32780-03.html">Nod.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aquilani:<br>
|
||||
Good. To find Greymore, you must enter the Monastery of Silence. Greymore studies his craft in a room in-between the 1st and 2nd floor there.<br>
|
||||
Bring him this letter, and then perhaps you will take part in the next step. I will also be able to teleport you directly to his location, once I am able to sense his presence in you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aquilani:<br>
|
||||
Sorry creature, I am not able to teleport you now. Do not test me on this, it is merely the way of things. Bring Brother Dominic's letter to Greymore in the Monastery. He will be between the 1st and 2nd floor.<br>
|
||||
As I told you before, once you have completed that task, I shall henceforth be able to teleport you directly to his location.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aquilani:<br>
|
||||
Your presence is known. No one would lie about working for the temple. I am your family now. What do you need?<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission 32780-06.html">Teleport to Greymore</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/32780-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aquilani:<br>
|
||||
Let me confirm once more. You want to meet Greymore?<br>
|
||||
<a action="bypass -h Quest Q10288_SecretMission teleport">Teleport</a>
|
||||
</body></html>
|
162
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/Q10288_SecretMission.java
vendored
Normal file
162
trunk/dist/game/data/scripts/quests/Q10288_SecretMission/Q10288_SecretMission.java
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* 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.Q10288_SecretMission;
|
||||
|
||||
import com.l2jserver.gameserver.model.Location;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Secret Mission (10288)
|
||||
* @author Gnacik
|
||||
*/
|
||||
public class Q10288_SecretMission extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DOMINIC = 31350;
|
||||
private static final int AQUILANI = 32780;
|
||||
private static final int GREYMORE = 32757;
|
||||
// Item
|
||||
private static final int LETTER = 15529;
|
||||
// Location
|
||||
private static final Location TELEPORT = new Location(118833, -80589, -2688);
|
||||
|
||||
public Q10288_SecretMission()
|
||||
{
|
||||
super(10288, Q10288_SecretMission.class.getSimpleName(), "Secret Mission");
|
||||
addStartNpc(AQUILANI, DOMINIC);
|
||||
addFirstTalkId(AQUILANI);
|
||||
addTalkId(DOMINIC, GREYMORE, AQUILANI);
|
||||
registerQuestItems(LETTER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
String htmltext = event;
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31350-03.html":
|
||||
if (player.getLevel() < 82)
|
||||
{
|
||||
htmltext = "31350-02b.html";
|
||||
}
|
||||
break;
|
||||
case "31350-05.htm":
|
||||
st.startQuest();
|
||||
st.giveItems(LETTER, 1);
|
||||
break;
|
||||
case "32780-03.html":
|
||||
if (st.isCond(1) && st.hasQuestItems(LETTER))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
break;
|
||||
case "32757-03.html":
|
||||
if (st.isCond(2) && st.hasQuestItems(LETTER))
|
||||
{
|
||||
st.giveAdena(106583, true);
|
||||
st.addExpAndSp(417788, 46320);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
case "teleport":
|
||||
if ((npc.getId() == AQUILANI) && st.isCompleted())
|
||||
{
|
||||
player.teleToLocation(TELEPORT);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
// dialog only changes when you talk to Aquilani after quest completion
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
return "32780-05.html";
|
||||
}
|
||||
return "data/html/default/32780.htm";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case DOMINIC:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = "31350-01.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "31350-06.html";
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "31350-07.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case AQUILANI:
|
||||
if (st.isStarted())
|
||||
{
|
||||
if (st.isCond(1) && st.hasQuestItems(LETTER))
|
||||
{
|
||||
htmltext = "32780-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32780-04.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GREYMORE:
|
||||
if (st.isStarted() && st.isCond(2) && st.hasQuestItems(LETTER))
|
||||
{
|
||||
return "32757-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user