Quest Divinity Protector (470).
Contributed by gigilo1968.
This commit is contained in:
3
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/31348-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/31348-01.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>High Priest Agripel:<br>
|
||||
Praise to the Gods for sending a divine adventurer to save Rune Township from the evils that spread from the Valley of Saints. Here is your reward for completing this task.
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-01.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-01.htm
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
Are you still looking for work? <font color="LEVEL">High Priest Agripel</font> of Rune Township needs some help.<br>
|
||||
Agripel suspects the rise in evil around Rune Township is due to creatures inhabiting the Valley of Saints. He suggests a "cleansing."<br>
|
||||
Agripel is not looking for zealots, just mercenaries willing to do a task for rewards.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00470_DivinityProtector 32327-02.htm">"I can handle that."</Button>
|
||||
</body>
|
||||
</html>
|
5
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-02.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
By request, you are to destroy creatures that inhabit the Valley of Saints... specifically the <font color="LEVEL">Splendors</font>, <font color="LEVEL">Judges</font>, and <font color="LEVEL">Pilgrims</font>.<br>
|
||||
After death they should fade from existence, leaving behind some Remnant Ash. <font color="LEVEL">Gather 20 piles of Remnant Ash</font> and deliver it to High Priest Agripel.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00470_DivinityProtector 32327-03.htm">"I am supposed to set their corpses on fire?"</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-03.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
Not exactly, but I suppose it might seem like that depending on your process. Haven't you ever noticed that after killing a monster the corpse tends to vanish? It does not completely disappear, just dissolves into a fine, powdery substance resembling ash. It's usually blown away by the wind. Possibly more information than you need... just collect the Remnant Ash and return it to <font color="LEVEL">High Priest Agripel</font> in <font color="LEVEL">Rune Township's Einhasad Temple</font> for payment.<br>Will you work on this task?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00470_DivinityProtector 32327-04.htm">"Sure. Sounds doable."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-04.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
Good. Here is a list of all the creatures you should hunt.<br>
|
||||
Kill the following: <font color="LEVEL">Eyes of Splendor, Claws of Splendor, Flashes of Splendor, Blades of Splendor, Wisdom of Splendor, Pilgrim's Disciples, Pilgrim's Servants, Fury of Splendor, Souls of Splendor, Pilgrims of Splendor, Victories of Splendor, Punishments of Splendor, Shouts of Splendor, Alliances of Splendor, Signets of Splendor, Crowns of Splendor, Judges of Fire, Judges of Light, Fangs of Splendor, Wailings of Splendor, and Judges of Splendor</font>. Collect <font color="LEVEL">20 Piles of Remnant Ash</font> and deliver them to <font color="LEVEL">High Priest Agripel in the Town of Rune.</font>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-05.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
Here's a quick recap:<br>Kill the following: <font color="LEVEL">Eyes of Splendor, Claws of Splendor, Flashes of Splendor, Blades of Splendor, Wisdom of Splendor, Pilgrim's Disciples, Pilgrim's Servants, Fury of Splendor, Souls of Splendor, Pilgrims of Splendor, Victories of Splendor, Punishments of Splendor, Shouts of Splendor, Alliances of Splendor, Signets of Splendor, Crowns of Splendor, Judges of Fire, Judges of Light, Fangs of Splendor, Wailings of Splendor, and Judges of Splendor</font>. Collect <font color="LEVEL">20 Piles of Remnant Ash</font> and deliver them to <font color="LEVEL">High Priest Agripel in the Town of Rune.</font>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/32327-07.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
You already did what I asked today, remember?<br>
|
||||
Thanks, but I don't need anything else right now.<br>
|
||||
(You can only undertake this quest once a day. It resets every day at 6:30 AM.)
|
||||
</body></html>
|
164
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/Q00470_DivinityProtector.java
vendored
Normal file
164
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/Q00470_DivinityProtector.java
vendored
Normal file
@ -0,0 +1,164 @@
|
||||
/*
|
||||
* 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.Q00470_DivinityProtector;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Divinity Protector (470)
|
||||
* @URL https://l2wiki.com/Divinity_Protector
|
||||
* @author Gigi
|
||||
*/
|
||||
public class Q00470_DivinityProtector extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int ADVANTURES_GUIDE = 32327;
|
||||
private static final int AGRIPEL = 31348;
|
||||
// MONSTERS
|
||||
private static final int[] MOBS =
|
||||
{
|
||||
21520, // Eye of Splendor
|
||||
21521, // Claws of Splendor
|
||||
21523, // Flash of Splendor
|
||||
21524, // Blade of Splendor
|
||||
21526, // Wisdom of Splendor
|
||||
21527, // Fury of Splendor
|
||||
21529, // Soul of Splendor
|
||||
21530, // Victory of Splendor
|
||||
21531, // Punishment of Splendor
|
||||
21532, // Shout of Splendor
|
||||
21533, // Alliance of Splendor
|
||||
21535, // Signet of Splendor
|
||||
21536, // Crown of Splendor
|
||||
21537, // Fang of Splendor
|
||||
21539, // Wailing of Splendor
|
||||
21541, // Pilgrim of Splendor
|
||||
21542, // Pilgrim's Disciple
|
||||
21543, // Pilgrim's Servant
|
||||
21545, // Judge of Fire
|
||||
21546 // Judge of Light
|
||||
};
|
||||
// Items
|
||||
private static final int REMNANT_ASH = 19489; // Remnant Ash
|
||||
private static final ItemHolder ADENA = new ItemHolder(57, 194000); // Adena
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 60;
|
||||
private static final int MAX_LEVEL = 64;
|
||||
// Reward
|
||||
private static final int EXP_REWARD = 1879400;
|
||||
private static final int SP_REWARD = 451;
|
||||
|
||||
public Q00470_DivinityProtector()
|
||||
{
|
||||
super(470, Q00470_DivinityProtector.class.getSimpleName(), "Divinity Protector");
|
||||
addStartNpc(ADVANTURES_GUIDE);
|
||||
addTalkId(ADVANTURES_GUIDE, AGRIPEL);
|
||||
registerQuestItems(REMNANT_ASH);
|
||||
addKillId(MOBS);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "32327-02.htm":
|
||||
case "32327-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "32327-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case ADVANTURES_GUIDE:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "32327-01.htm";
|
||||
}
|
||||
else if (qs.getCond() > 0)
|
||||
{
|
||||
htmltext = "32327-05.html";
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
if (!qs.isNowAvailable())
|
||||
{
|
||||
htmltext = "32327-07.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AGRIPEL:
|
||||
{
|
||||
if ((qs.isCond(2)) && (getQuestItemsCount(player, REMNANT_ASH) >= 20))
|
||||
{
|
||||
takeItems(player, REMNANT_ASH, 20);
|
||||
giveItems(player, ADENA);
|
||||
addExpAndSp(player, EXP_REWARD, SP_REWARD);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = "31348-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && qs.isCond(1))
|
||||
{
|
||||
if (giveItemRandomly(killer, npc, REMNANT_ASH, 1, 20, 0.1, true))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
3
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/no_level.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00470_DivinityProtector/no_level.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>You don't meet level requirements<br>
|
||||
(Quest available from level 60 - 64)
|
||||
</body></html>
|
@ -129,6 +129,7 @@ import quests.Q00457_LostAndFound.Q00457_LostAndFound;
|
||||
import quests.Q00458_PerfectForm.Q00458_PerfectForm;
|
||||
import quests.Q00463_IMustBeaGenius.Q00463_IMustBeaGenius;
|
||||
import quests.Q00464_Oath.Q00464_Oath;
|
||||
import quests.Q00470_DivinityProtector.Q00470_DivinityProtector;
|
||||
import quests.Q00471_BreakingThroughTheEmeraldSquare.Q00471_BreakingThroughTheEmeraldSquare;
|
||||
import quests.Q00472_ChallengeSteamCorridor.Q00472_ChallengeSteamCorridor;
|
||||
import quests.Q00473_InTheCoralGarden.Q00473_InTheCoralGarden;
|
||||
@ -422,6 +423,7 @@ final class QuestMasterHandler
|
||||
Q00458_PerfectForm.class,
|
||||
Q00463_IMustBeaGenius.class,
|
||||
Q00464_Oath.class,
|
||||
Q00470_DivinityProtector.class,
|
||||
Q00471_BreakingThroughTheEmeraldSquare.class,
|
||||
Q00472_ChallengeSteamCorridor.class,
|
||||
Q00473_InTheCoralGarden.class,
|
||||
|
Reference in New Issue
Block a user