Merged with released L2J-Unity files.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<html><body>Shuvann:<br>
|
||||
Are you ready for some background on your mission?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10405_KartiasSeed 33867-02.htm">"I'm listening."</Button>
|
||||
</body></html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<html><body>Shuvann:<br>
|
||||
Paterson suspected Embryo was up to something in this area. On a hunch, I scouted around Aden castle, and spotted some suspicious activity in the Fields of Massacre.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10405_KartiasSeed 33867-03.htm">"Oh joy."</Button>
|
||||
</body></html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<html><body>Shuvann:<br>
|
||||
So it was Embryo after all. They have spread the seeds of <font color="LEVEL">Kartia's Flowers</font>, which are plants from the era of the Giants that absorb energy from living creatures. I don't know how the seeds will react inside these creatures -- please, kill the monsters and bring back the seeds before they do something terrible.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10405_KartiasSeed 33867-04.htm">"Sounds reasonable."</Button>
|
||||
</body></html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<html><body>Shuvann:<br>
|
||||
The monsters in question are <font color="LEVEL">Archers of Destruction, Graveyard Liches, Dismal Poles, Graveyard Predators, Doom Scouts, Doom Servants, Doom Guards, Doom Archers, Doom Troopers, Doom Warriors, Doom Knights, Spiteful Soul Leaders, Spiteful Soul Wizards, and Spiteful Soul Warriors</font>. When you're done, bring me <font color="LEVEL">50 Kartia's Mutated Seeds</font>. I'll need at least that many to complete my investigation.
|
||||
</body></html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<html><body>Shuvann:<br>
|
||||
First, kill <font color="LEVEL">Archers of Destruction, Graveyard Liches, Dismal Poles, Graveyard Predators, Doom Scouts, Doom Servants, Doom Guards, Doom Archers, Doom Troopers, Doom Warriors, Doom Knights, Spiteful Soul Leaders, Spiteful Soul Wizards, and Spiteful Soul Warriors</font>. When you're done, bring me <font color="LEVEL">50 Kartia's Mutated Seeds</font>. I'll need at least that many to complete my investigation.
|
||||
</body></html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<html><body>Shuvann:<br>
|
||||
I am glad you've returned safely. Did you bring the seeds?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10405_KartiasSeed 33867-07.html">"Of course."</Button>
|
||||
</body></html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<html><body>Shuvann:<br>
|
||||
It shouldn't take me long to examine them. Check back later, and I'll share my findings with you.
|
||||
</body></html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<html><body>Shuvann:<br>
|
||||
They don't call this place "the Fields of Massacre" for nothing. Run far away from this area, until you have more experience. <br>
|
||||
(This quest is for characters level 61 or above.)
|
||||
</body></html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<html><body>Shuvann:<br>
|
||||
They don't call this place "the Fields of Massacre" for nothing. Run far away from this area, until you have more experience. <br>
|
||||
(Ertheia is excluded from this quest.)
|
||||
</body></html>
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* 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.Q10405_KartiasSeed;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Kartia's Seed (10405)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10405_KartiasSeed extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int SHUVANN = 33867;
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
21001, // Archer of Destruction
|
||||
21003, // Graveyard Lich
|
||||
21004, // Dismal Pole
|
||||
21005, // Graveyard Predator
|
||||
21002, // Doom Scout
|
||||
21006, // Doom Servant
|
||||
21007, // Doom Guard
|
||||
21008, // Doom Archer
|
||||
21009, // Doom Trooper
|
||||
21010, // Doom Warrior
|
||||
20674, // Doom Knight
|
||||
20974, // Spiteful Soul Leader
|
||||
20975, // Spiteful Soul Wizard
|
||||
20976, // Spiteful Soul Warrior
|
||||
};
|
||||
// Items
|
||||
private static final int KARTIA_SEED = 36714; // Kartia's Mutated Seed
|
||||
private static final int EAA = 730; // Scroll: Enchant Armor (A-grade)
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 61;
|
||||
private static final int MAX_LEVEL = 65;
|
||||
|
||||
public Q10405_KartiasSeed()
|
||||
{
|
||||
super(10405);
|
||||
addStartNpc(SHUVANN);
|
||||
addTalkId(SHUVANN);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(KARTIA_SEED);
|
||||
addCondNotRace(Race.ERTHEIA, "33867-09.html");
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33867-08.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33867-02.htm":
|
||||
case "33867-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33867-04.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33867-07.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EAA, 5);
|
||||
giveStoryQuestReward(player, 57);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 6_251_174, 1_500);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "33867-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
htmltext = st.isCond(1) ? "33867-05.html" : "33867-06.html";
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(killer, false);
|
||||
|
||||
if ((st != null) && st.isStarted() && st.isCond(1))
|
||||
{
|
||||
if (giveItemRandomly(killer, KARTIA_SEED, 1, 50, 1, true))
|
||||
{
|
||||
st.setCond(2);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user