Addition of quest Special Mission: Defeat Baylor (596).

Contributed by Dmitri.
This commit is contained in:
MobiusDevelopment 2020-03-07 17:47:14 +00:00
parent 78f05e33a5
commit 13b1abdc7d
24 changed files with 358 additions and 78 deletions

View File

@ -11,7 +11,6 @@
585 Can't Go Against the Time
586 Mutated Creatures
591 Great Ambitions
596 Special Mission: Defeat Baylor
599 Demons and Dimensional Energy
655 A Grand Plan for Taming Wild Beasts
667 How to Cover Shilen's Eyes

View File

@ -0,0 +1,4 @@
<html><body>Penny<br>
I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.<br>
(Only characters with Lv. 97-99 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.)
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
What is it? Do you want to check new missions of the Adventure Guild?<br>
Come on. We are always in high demand.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-02.htm">Ask about the mission</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
Adventure Guildsman Penny wants you to defeat Baylor.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-03.htm">"Really?"</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Penny:<br>
Do you detract from the intelligence of the Hunters Guild? This is all true!<br>
Go to Parnassus, enter the Crystal Prison (Baylor) instanced zone and defeat Baylor.<br>
With whom? Of course, with Aden.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-04.htm">Ask about the agreement</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
The Adventure Guild maintains close ties with the Aden Courtyard. Go to Parnassus, enter the Crystal Prison (Baylor) instanced zone and defeat Baylor..<br>
set off on a mission soon, we will be waiting for you.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
The Adventure Guild maintains close ties with the Aden Courtyard. Go to Parnassus, enter the Crystal Prison (Baylor) instanced zone and defeat Baylor..<br>
set off on a mission soon, we will be waiting for you.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
Did you kill Baylor?<br>
You ruined Baylor designs...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-07.html">"I figured out Baylor"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Penny:<br>
Good job. This will help the Adventure Guild take the lead.
</body></html>

View File

@ -0,0 +1,142 @@
/*
* 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.Q00596_SpecialMissionDefeatBaylor;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.enums.Faction;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
/**
* Special Mission: Defeat Baylor (596)
* @URL https://l2wiki.com/Special_Mission:_Defeat_Baylor#Daily
* @author Dmitri
*/
public class Q00596_SpecialMissionDefeatBaylor extends Quest
{
// NPCs
private static final int PENNY = 34413;
// RaidBosses
private static final int BAYLOR = 29213;
// Rewards
private static final int SCROLL_OF_ESCAPE_PARNASSUS = 80314;
// Misc
private static final int MIN_LEVEL = 97;
private static final int MAX_LEVEL = 99;
public Q00596_SpecialMissionDefeatBaylor()
{
super(596);
addStartNpc(PENNY);
addTalkId(PENNY);
addKillId(BAYLOR);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "34413-00.htm");
addFactionLevel(Faction.ADVENTURE_GUILD, 5, "34413-00.htm");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "34413-02.htm":
case "34413-03.htm":
{
htmltext = event;
break;
}
case "34413-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34413-07.html":
{
// Rewards
giveItems(player, SCROLL_OF_ESCAPE_PARNASSUS, 1);
addExpAndSp(player, 1346064975L, 1346055);
addFactionPoints(player, Faction.ADVENTURE_GUILD, 140);
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "34413-01.htm";
break;
}
case State.STARTED:
{
htmltext = (qs.isCond(1)) ? "34413-05.html" : "34413-06.html";
break;
}
case State.COMPLETED:
{
if (qs.isNowAvailable())
{
qs.setState(State.CREATED);
htmltext = "34413-01.htm";
}
else
{
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
}
break;
}
}
return htmltext;
}
@Override
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
{
executeForEachPlayer(player, npc, isSummon, true, false);
return super.onKill(npc, player, isSummon);
}
@Override
public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
{
qs.setCond(2, true);
}
}
}

View File

@ -144,6 +144,7 @@ import quests.Q00590_ToEachTheirOwn.Q00590_ToEachTheirOwn;
import quests.Q00593_BasicMissionPaganTemple.Q00593_BasicMissionPaganTemple;
import quests.Q00594_BasicMissionDimensionalRift.Q00594_BasicMissionDimensionalRift;
import quests.Q00595_SpecialMissionRaidersCrossroads.Q00595_SpecialMissionRaidersCrossroads;
import quests.Q00596_SpecialMissionDefeatBaylor.Q00596_SpecialMissionDefeatBaylor;
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
@ -500,7 +501,6 @@ import quests.not_done.Q00579_BasicMissionBlazingSwamp;
import quests.not_done.Q00585_CantGoAgainstTheTime;
import quests.not_done.Q00586_MutatedCreatures;
import quests.not_done.Q00591_GreatAmbitions;
import quests.not_done.Q00596_SpecialMissionDefeatBaylor;
import quests.not_done.Q00599_DemonsAndDimensionalEnergy;
import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts;
import quests.not_done.Q00667_CoveringShilensEyes;
@ -726,7 +726,7 @@ public class QuestMasterHandler
Q00593_BasicMissionPaganTemple.class,
Q00594_BasicMissionDimensionalRift.class,
Q00595_SpecialMissionRaidersCrossroads.class,
Q00596_SpecialMissionDefeatBaylor.class, // TODO: Not done.
Q00596_SpecialMissionDefeatBaylor.class,
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
Q00600_KeyToTheRefiningProcess.class,
Q00617_GatherTheFlames.class,

View File

@ -1,36 +0,0 @@
/*
* 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.not_done;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Q00596_SpecialMissionDefeatBaylor extends Quest
{
private static final int START_NPC = 34413;
public Q00596_SpecialMissionDefeatBaylor()
{
super(596);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

View File

@ -43,7 +43,6 @@
586 Mutated Creatures
591 Great Ambitions
592 Snow's Plea - Monsters from Three Areas
596 Special Mission: Defeat Baylor
599 Demons and Dimensional Energy
655 A Grand Plan for Taming Wild Beasts
690 |Attack| Begin Alliance Base Defense - 1

View File

@ -0,0 +1,4 @@
<html><body>Penny<br>
I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.<br>
(Only characters with Lv. 97-99 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.)
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
What is it? Do you want to check new missions of the Adventure Guild?<br>
Come on. We are always in high demand.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-02.htm">Ask about the mission</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
Adventure Guildsman Penny wants you to defeat Baylor.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-03.htm">"Really?"</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Penny:<br>
Do you detract from the intelligence of the Hunters Guild? This is all true!<br>
Go to Parnassus, enter the Crystal Prison (Baylor) instanced zone and defeat Baylor.<br>
With whom? Of course, with Aden.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-04.htm">Ask about the agreement</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
The Adventure Guild maintains close ties with the Aden Courtyard. Go to Parnassus, enter the Crystal Prison (Baylor) instanced zone and defeat Baylor..<br>
set off on a mission soon, we will be waiting for you.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
The Adventure Guild maintains close ties with the Aden Courtyard. Go to Parnassus, enter the Crystal Prison (Baylor) instanced zone and defeat Baylor..<br>
set off on a mission soon, we will be waiting for you.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
Did you kill Baylor?<br>
You ruined Baylor designs...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00571_SpecialMissionProofOfUnityFieldRaid 34413-07.html">"I figured out Baylor"</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Penny:<br>
Good job. This will help the Adventure Guild take the lead.
</body></html>

View File

@ -0,0 +1,142 @@
/*
* 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.Q00596_SpecialMissionDefeatBaylor;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.enums.Faction;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
/**
* Special Mission: Defeat Baylor (596)
* @URL https://l2wiki.com/Special_Mission:_Defeat_Baylor#Daily
* @author Dmitri
*/
public class Q00596_SpecialMissionDefeatBaylor extends Quest
{
// NPCs
private static final int PENNY = 34413;
// RaidBosses
private static final int BAYLOR = 29213;
// Rewards
private static final int SCROLL_OF_ESCAPE_PARNASSUS = 80314;
// Misc
private static final int MIN_LEVEL = 97;
private static final int MAX_LEVEL = 99;
public Q00596_SpecialMissionDefeatBaylor()
{
super(596);
addStartNpc(PENNY);
addTalkId(PENNY);
addKillId(BAYLOR);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "34413-00.htm");
addFactionLevel(Faction.ADVENTURE_GUILD, 5, "34413-00.htm");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "34413-02.htm":
case "34413-03.htm":
{
htmltext = event;
break;
}
case "34413-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34413-07.html":
{
// Rewards
giveItems(player, SCROLL_OF_ESCAPE_PARNASSUS, 1);
addExpAndSp(player, 1346064975L, 1346055);
addFactionPoints(player, Faction.ADVENTURE_GUILD, 140);
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "34413-01.htm";
break;
}
case State.STARTED:
{
htmltext = (qs.isCond(1)) ? "34413-05.html" : "34413-06.html";
break;
}
case State.COMPLETED:
{
if (qs.isNowAvailable())
{
qs.setState(State.CREATED);
htmltext = "34413-01.htm";
}
else
{
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
}
break;
}
}
return htmltext;
}
@Override
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
{
executeForEachPlayer(player, npc, isSummon, true, false);
return super.onKill(npc, player, isSummon);
}
@Override
public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
{
qs.setCond(2, true);
}
}
}

View File

@ -74,6 +74,7 @@ import quests.Q00590_ToEachTheirOwn.Q00590_ToEachTheirOwn;
import quests.Q00593_BasicMissionPaganTemple.Q00593_BasicMissionPaganTemple;
import quests.Q00594_BasicMissionDimensionalRift.Q00594_BasicMissionDimensionalRift;
import quests.Q00595_SpecialMissionRaidersCrossroads.Q00595_SpecialMissionRaidersCrossroads;
import quests.Q00596_SpecialMissionDefeatBaylor.Q00596_SpecialMissionDefeatBaylor;
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
import quests.Q00620_FourGoblets.Q00620_FourGoblets;
@ -263,7 +264,6 @@ import quests.not_done.Q00504_CompetitionForTheBanditStronghold;
import quests.not_done.Q00585_CantGoAgainstTheTime;
import quests.not_done.Q00586_MutatedCreatures;
import quests.not_done.Q00591_GreatAmbitions;
import quests.not_done.Q00596_SpecialMissionDefeatBaylor;
import quests.not_done.Q00599_DemonsAndDimensionalEnergy;
import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts;
import quests.not_done.Q00749_TiesWithTheGuardians;
@ -400,7 +400,7 @@ public class QuestMasterHandler
Q00593_BasicMissionPaganTemple.class,
Q00594_BasicMissionDimensionalRift.class,
Q00595_SpecialMissionRaidersCrossroads.class,
Q00596_SpecialMissionDefeatBaylor.class, // TODO: Not done.
Q00596_SpecialMissionDefeatBaylor.class,
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
Q00600_KeyToTheRefiningProcess.class,
Q00618_IntoTheFlame.class,

View File

@ -1,36 +0,0 @@
/*
* 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.not_done;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Q00596_SpecialMissionDefeatBaylor extends Quest
{
private static final int START_NPC = 34413;
public Q00596_SpecialMissionDefeatBaylor()
{
super(596);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}