Addition of quest Defeating the Lord of Seed (670).

Contributed by gigilo1968.
This commit is contained in:
MobiusDev 2018-08-13 17:43:49 +00:00
parent 76114e686c
commit 3982867061
18 changed files with 230 additions and 1 deletions

View File

@ -6,7 +6,6 @@
667 How to Cover Shilen's Eyes 667 How to Cover Shilen's Eyes
668 Fight with Giants 668 Fight with Giants
669 Intense Fight against Dragon 669 Intense Fight against Dragon
670 Defeating the Lord of Seed
671 Path to Finding the Past 671 Path to Finding the Past
672 Embryo the Archenemy 672 Embryo the Archenemy
673 Beleth' Ambition 673 Beleth' Ambition

View File

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

View File

@ -0,0 +1,6 @@
<html><body>Hunters Guild Member Colin:<br>
You know that there are areas called Seeds in Gracia, don't you?<br>
There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.<br>
The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 30703-03.htm">"Really?"</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Hunters Guild Member Colin:<br>
Are you belittling the Hunter Guild's intelligence? It's all true!<br>
What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.<br>
With whom? With both Aden and Gracia, of course.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 30703-04.htm">Ask about the agreement</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Hunters Guild Member Colin:<br>
The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat <font color="LEVEL">Tiat, Tauti, Istina, and Ekimus</font>. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it?
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Hunters Guild Member Colin:<br>
You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild Member Colin:<br>
Did you give a good lesson to the Lord of Seeds?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 30703-07.html">"I complete it all"</Button>
</body></htm>

View File

@ -0,0 +1,3 @@
<html><body>Hunters Guild Member Colin:<br>
Good job. It will help the Hunter Guild take a lead in the Gracia Continent.
</body></htm>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild Member<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. 85 or above and Faction level 2 or above with the Hunters Guild may undertake this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild President Arcturus:<br>
What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 34267-02.htm">Continue to listen</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild President Arcturus:<br>
There are areas called “Seeds” in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 34267-03.htm">No</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild President Arcturus:<br>
Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 34267-04.htm">Ask if your mission is to defeat the Seed Lords</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Hunters Guild President Arcturus:<br>
Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat <font color="LEVEL">Tiat, Tauti, Istina, and Ekimus</font> and return to me.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild President Arcturus:<br>
You haven't left yet? I told you which Seed Lords you have to deal with.<br>
They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Hunters Guild President Arcturus:<br>
Did you give a good lesson to the Lord of Seeds?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00670_DefeatingTheLordOfSeed 34267-07.html">"I complete it all"</Button>
</body></htm>

View File

@ -0,0 +1,3 @@
<html><body>Hunters Guild President Arcturus:<br>
Good job. It will help the Hunter Guild take a lead in the Gracia Continent.
</body></htm>

View File

@ -0,0 +1,168 @@
/*
* 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.Q00670_DefeatingTheLordOfSeed;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.Faction;
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.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Defeating the Lord of Seed (670)
* @URL https://l2wiki.com/Defeating_the_Lord_of_Seed
* @author Gigi
* @date 2018-08-12 - [22:49:44]
*/
public class Q00670_DefeatingTheLordOfSeed extends Quest
{
// NPCs
private static final int ARCTURUS = 34267;
private static final int COLIN = 30703;
// Monsters
private static final int[] BOSES =
{
29251, // Ekimus
29163, // Pelline
29236, // Tauti
29196 // Tauti
};
// Misc
private static final int MIN_LEVEL = 85;
public Q00670_DefeatingTheLordOfSeed()
{
super(670);
addStartNpc(ARCTURUS, COLIN);
addTalkId(ARCTURUS, COLIN);
addKillId(BOSES);
addCondMinLevel(MIN_LEVEL, "34267-00.htm");
addFactionLevel(Faction.HUNTERS_GUILD, 2, "34267-00.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "30703-02.htm":
case "30703-03.htm":
case "34267-02.htm":
case "34267-03.htm":
{
htmltext = event;
break;
}
case "30703-04.htm":
case "34267-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "30703-07.html":
case "34267-07.html":
{
addFactionPoints(player, Faction.HUNTERS_GUILD, 100);
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.COMPLETED:
{
if (!qs.isNowAvailable())
{
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
break;
}
qs.setState(State.CREATED);
}
case State.CREATED:
{
switch (npc.getId())
{
case COLIN:
{
htmltext = "30703-01.htm";
break;
}
case ARCTURUS:
{
htmltext = "34267-01.htm";
break;
}
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case COLIN:
{
htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html";
break;
}
case ARCTURUS:
{
htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html";
break;
}
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
executeForEachPlayer(player, npc, isSummon, true, false);
return super.onKill(npc, player, isSummon);
}
@Override
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1) && player.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, true))
{
qs.setCond(2, true);
}
}
}

View File

@ -158,6 +158,7 @@ import quests.Q00645_GhostsOfBatur.Q00645_GhostsOfBatur;
import quests.Q00648_AnIceMerchantsDream.Q00648_AnIceMerchantsDream; import quests.Q00648_AnIceMerchantsDream.Q00648_AnIceMerchantsDream;
import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards;
import quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers; import quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers;
import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed;
import quests.Q00688_DefeatTheElrokianRaiders.Q00688_DefeatTheElrokianRaiders; import quests.Q00688_DefeatTheElrokianRaiders.Q00688_DefeatTheElrokianRaiders;
import quests.Q00726_LightWithinTheDarkness.Q00726_LightWithinTheDarkness; import quests.Q00726_LightWithinTheDarkness.Q00726_LightWithinTheDarkness;
import quests.Q00727_HopeWithinTheDarkness.Q00727_HopeWithinTheDarkness; import quests.Q00727_HopeWithinTheDarkness.Q00727_HopeWithinTheDarkness;
@ -593,6 +594,7 @@ public class QuestMasterHandler
Q00648_AnIceMerchantsDream.class, Q00648_AnIceMerchantsDream.class,
Q00662_AGameOfCards.class, Q00662_AGameOfCards.class,
Q00663_SeductiveWhispers.class, Q00663_SeductiveWhispers.class,
Q00670_DefeatingTheLordOfSeed.class,
Q00688_DefeatTheElrokianRaiders.class, Q00688_DefeatTheElrokianRaiders.class,
Q00726_LightWithinTheDarkness.class, Q00726_LightWithinTheDarkness.class,
Q00727_HopeWithinTheDarkness.class, Q00727_HopeWithinTheDarkness.class,