This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Priest Greymore:<br>
By the gods! Stop sneaking up on me! Anyway, I'm busy just now and while you seem pleasant enough, that doesn't free up my busy afternoon.<br>
(Only characters level 82 and up who have completed Secret Mission can take this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Greymore:<br>
WAH! You again, why do you keep scaring me? You must truly possess the acumen of the rodent, treading so silently. Anyway, I am not to be bothered, I am reading that letter you delivered from Brother Dominic.<br>
<a action="bypass -h Quest Q10289_FadeToBlack 32757-02.htm">Ask if you should leave.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Priest Greymore:<br>
Hm... now that I think about it, might I tempt you with a mission from Dominic? It is not that I am incapable of doing it, but my face is too well known. Not like yours, at least not around here.<br>
Besides, you're already here, and if Dominic saw fit to trust you with this parcel, I see no reason not to trust you myself.<br>
<a action="bypass -h Quest Q10289_FadeToBlack 32757-03.htm">Accept the mission.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Greymore:<br>
Alright. I've been here studying these confounding monks and their secrets, but so far I've been unable to find anything or any information of value. Bloody quiet lot, these. I suspect we must capture someone higher up the chain of command, as it were.<br>
<font color="LEVEL">Master of Splendor Annays</font> is who I have in mind. Capture him and bring me his mark, what these monks call the <font color="LEVEL">Mark of Splendor</font>. Only he will have it, none of the others. They carry a <font color="LEVEL">Mark of Darkness</font>, and should you bring me back that, the only reward you will receive is my cackle. <font color="LEVEL">The Mark of Splendor is what earns the reward</font>.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Priest Greymore:<br>
As I told you already, you are to capture the <font color="LEVEL">Master of Splendor Annays</font> and bring me his <font color="LEVEL">Mark of Splendor</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Greymore:<br>
Seriously! So you're good at scaring people. Then what? Want a prize?<br>
<a action="bypass -h Quest Q10289_FadeToBlack 32757-06.html">Say you captured the Master of Splendor Annays.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Greymore:<br>
You captured him already? Alright, show me the proof, I must see his Mark of Splendor.<br>
Hmm... it would seem that other than startling me, you are skilled at nothing because you are not even a good liar. Bring me proof!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Priest Greymore:<br>
Ah, you captured him? I need to see the proof!<br>
... No, that's just the Mark of Darkness. All it proves is that you are unlucky.<br>
Like I told you, I must have the <font color="LEVEL">Mark of Splendor</font>! That is the proof I require.
</body></html>

View File

@@ -0,0 +1,24 @@
<html><body>Priest Greymore:<br>
Ah, you captured him? Let's see... ah, finally that fool saw his end. What a pleasant surprise! I would have done him myself if I didn't have a serious fear of heights.<br>
A great deed such as this deserves a great reward. You can choose one of the following items:<br>
<a action="bypass -h Quest Q10289_FadeToBlack 11">Recipe - Sealed Moirai Helmet (60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 12">Recipe - Sealed Moirai Leather Helmet (60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 13">Recipe - Sealed Moirai Circlet(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 14">Recipe - Sealed Moirai Breastplate(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 15">Recipe - Sealed Moirai Leather Breastplate(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 16">Recipe - Sealed Moirai Tunic(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 17">Recipe - Sealed Moirai Gaiters(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 18">Recipe - Sealed Moirai Leather Leggings(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 19">Recipe - Sealed Moirai Hose(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 20">Recipe - Sealed Moirai Gauntlet (60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 21">Recipe - Sealed Moirai Leather Glove (60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 22">Recipe - Sealed Moirai Glove (60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 23">Recipe - Sealed Moirai Boots(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 24">Recipe - Sealed Moirai Leather Boots(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 25">Recipe - Sealed Moirai Shoes (60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 26">Recipe - Sealed Moirai Sickle(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 27">Recipe - Sealed Moirai Shield(60%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 28">Recipe - Sealed Moirai Ring(70%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 29">Recipe - Sealed Moirai Earring(70%)</a><br>
<a action="bypass -h Quest Q10289_FadeToBlack 30">Recipe - Sealed Moirai Necklace(70%)</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Greymore:<br>
Good job. You proved yourself able to do more than just startle me on a consistent basis. The timing couldn't be better, I've grown weary of this Monastery and these idiotic mute monks. Perhaps Dominic will give me a position back in the Town of Rune.<br>
Thanks again. Hopefully I will see you in Rune next time.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Priest Greymore:<br>
What? Are you here to relive your glory? Are you going to buy us all a round of drinks?<br>
I already thanked you, now you're just showing off.<br>
(This quest is already complete.)
</body></html>

View File

@@ -0,0 +1,289 @@
/*
* 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.Q10289_FadeToBlack;
import quests.Q10288_SecretMission.Q10288_SecretMission;
import com.l2jserver.gameserver.model.L2Party;
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;
/**
* Fade to Black (10289)
* @author Plim
*/
public class Q10289_FadeToBlack extends Quest
{
// NPC
private static final int GREYMORE = 32757;
// Items
private static final int MARK_OF_SPLENDOR = 15527;
private static final int MARK_OF_DARKNESS = 15528;
// Monster
private static final int ANAYS = 25701;
public Q10289_FadeToBlack()
{
super(10289, Q10289_FadeToBlack.class.getSimpleName(), "Fade to Black");
addStartNpc(GREYMORE);
addTalkId(GREYMORE);
addKillId(ANAYS);
registerQuestItems(MARK_OF_SPLENDOR, MARK_OF_DARKNESS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "32757-02.htm":
htmltext = event;
break;
case "32757-03.htm":
qs.startQuest();
htmltext = event;
break;
case "32757-06.html":
if (qs.isCond(2) && hasQuestItems(player, MARK_OF_DARKNESS))
{
htmltext = "32757-07.html";
}
else if (qs.isCond(3) && hasQuestItems(player, MARK_OF_SPLENDOR))
{
htmltext = "32757-08.html";
}
else
{
htmltext = event;
}
break;
case "11":
case "12":
case "13":
case "14":
case "15":
case "16":
case "17":
case "18":
case "19":
case "20":
case "21":
case "22":
case "23":
case "24":
case "25":
case "26":
case "27":
case "28":
case "29":
case "30":
if (qs.isCond(3) && hasQuestItems(player, MARK_OF_SPLENDOR))
{
// see 32757-08.html for recipe list (all moirai armor 60%)
switch (event)
{
case "11":
rewardItems(player, 15775, 1);
giveAdena(player, 420920, true);
break;
case "12":
rewardItems(player, 15776, 1);
giveAdena(player, 420920, true);
break;
case "13":
rewardItems(player, 15777, 1);
giveAdena(player, 420920, true);
break;
case "14":
rewardItems(player, 15778, 1);
break;
case "15":
rewardItems(player, 15779, 1);
giveAdena(player, 168360, true);
break;
case "16":
rewardItems(player, 15780, 1);
giveAdena(player, 168360, true);
break;
case "17":
rewardItems(player, 15781, 1);
giveAdena(player, 252540, true);
break;
case "18":
rewardItems(player, 15782, 1);
giveAdena(player, 357780, true);
break;
case "19":
rewardItems(player, 15783, 1);
giveAdena(player, 357780, true);
break;
case "20":
rewardItems(player, 15784, 1);
giveAdena(player, 505100, true);
break;
case "21":
rewardItems(player, 15785, 1);
giveAdena(player, 505100, true);
break;
case "22":
rewardItems(player, 15786, 1);
giveAdena(player, 505100, true);
break;
case "23":
rewardItems(player, 15787, 1);
giveAdena(player, 505100, true);
break;
case "24":
rewardItems(player, 15787, 1);
giveAdena(player, 505100, true);
break;
case "25":
rewardItems(player, 15789, 1);
giveAdena(player, 505100, true);
break;
case "26":
rewardItems(player, 15790, 1);
giveAdena(player, 496680, true);
break;
case "27":
rewardItems(player, 15791, 1);
giveAdena(player, 496680, true);
break;
case "28":
rewardItems(player, 15792, 1);
giveAdena(player, 563860, true);
break;
case "29":
rewardItems(player, 15793, 1);
giveAdena(player, 509040, true);
break;
case "30":
rewardItems(player, 15794, 1);
giveAdena(player, 454240, true);
break;
}
long marksOfDarkness = getQuestItemsCount(player, MARK_OF_DARKNESS);
if (marksOfDarkness > 0)
{
addExpAndSp(player, 55983 * marksOfDarkness, 136500 * (int) marksOfDarkness);
}
qs.exitQuest(false, true);
htmltext = "32757-09.html";
}
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc anays, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, anays);
if (qs != null)
{
if (qs.getPlayer().isInParty())
{
// if player is in party, reward all members
final L2Party party = qs.getPlayer().getParty();
final int rnd = getRandom(party.getMemberCount());
int idx = 0;
for (L2PcInstance member : party.getMembers())
{
// only one lucky player will get the good item, the rest will get the bad one
rewardPlayer(getQuestState(member, false), (idx == rnd));
idx++;
}
}
else
{
// if no party, the winner gets it all
rewardPlayer(qs, true);
}
}
return super.onKill(anays, killer, isSummon);
}
@Override
public boolean checkPartyMember(QuestState qs, L2Npc npc)
{
return (qs.getCond() < 3);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs == null)
{
return htmltext;
}
if (qs.isCreated())
{
final QuestState q10288 = player.getQuestState(Q10288_SecretMission.class.getSimpleName());
if ((player.getLevel() < 82) || (q10288 == null) || !q10288.isCompleted())
{
htmltext = "32757-00.htm";
}
else
{
htmltext = "32757-01.htm";
}
}
else if (qs.isStarted())
{
switch (qs.getCond())
{
case 1:
htmltext = "32757-04.html";
break;
case 2:
case 3:
htmltext = "32757-05.html";
break;
}
}
else
{
htmltext = "32757-10.html";
}
return htmltext;
}
private static final void rewardPlayer(QuestState qs, boolean isLucky)
{
if ((qs != null) && qs.isCond(1))
{
giveItems(qs.getPlayer(), (isLucky ? MARK_OF_SPLENDOR : MARK_OF_DARKNESS), 1);
qs.setCond(isLucky ? 3 : 2, true);
}
}
}