From 747abda4a1eb4c18f0f014c93d2c98fa4051cea8 Mon Sep 17 00:00:00 2001
From: Adry85 <adrya85@hotmail.it>
Date: Mon, 31 Jul 2017 16:53:15 +0200
Subject: [PATCH] Missing quest Birth of the Seed (10270)

---
 ...l => SecretAreaInTheKeucereusFortress.xml} |   4 +-
 .../instances/SecretArea/SecretArea.java      |   4 +-
 .../scripts/instances/InstanceLoader.java     |   2 +
 .../32566-01.html                             |   3 +
 .../SecretAreaInTheKeucereusFortress1.java    |  81 ++++
 .../Q10270_BirthOfTheSeed/32559-01.html       |   4 +
 .../Q10270_BirthOfTheSeed/32559-02.html       |   5 +
 .../Q10270_BirthOfTheSeed/32559-03.html       |   4 +
 .../Q10270_BirthOfTheSeed/32559-04.html       |   5 +
 .../Q10270_BirthOfTheSeed/32559-05.html       |   3 +
 .../Q10270_BirthOfTheSeed/32559-06.html       |   3 +
 .../Q10270_BirthOfTheSeed/32559-07.html       |   5 +
 .../Q10270_BirthOfTheSeed/32559-08.html       |   4 +
 .../Q10270_BirthOfTheSeed/32559-09.html       |   5 +
 .../Q10270_BirthOfTheSeed/32559-10.html       |   3 +
 .../Q10270_BirthOfTheSeed/32559-11.html       |   3 +
 .../quests/Q10270_BirthOfTheSeed/32563-01.htm |   4 +
 .../quests/Q10270_BirthOfTheSeed/32563-02.htm |   6 +
 .../quests/Q10270_BirthOfTheSeed/32563-03.htm |   3 +
 .../quests/Q10270_BirthOfTheSeed/32563-04.htm |   4 +
 .../Q10270_BirthOfTheSeed/32563-05.html       |   5 +
 .../Q10270_BirthOfTheSeed/32563-06.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-01.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-02.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-03.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-04.html       |   3 +
 .../Q10270_BirthOfTheSeed/32566-05.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-06.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-07.html       |   3 +
 .../Q10270_BirthOfTheSeed/32566-08.html       |   4 +
 .../Q10270_BirthOfTheSeed/32566-09.html       |   3 +
 .../Q10270_BirthOfTheSeed/32567-01.html       |   4 +
 .../Q10270_BirthOfTheSeed/32567-02.html       |   6 +
 .../Q10270_BirthOfTheSeed/32567-03.html       |   5 +
 .../Q10270_BirthOfTheSeed/32567-04.html       |   5 +
 .../Q10270_BirthOfTheSeed/32567-05.html       |   3 +
 .../Q10270_BirthOfTheSeed/32567-06.html       |   4 +
 .../Q10270_BirthOfTheSeed.java                | 382 ++++++++++++++++++
 .../scripts/quests/QuestMasterHandler.java    |   2 +
 39 files changed, 604 insertions(+), 4 deletions(-)
 rename dist/game/data/instances/{SecretArea.xml => SecretAreaInTheKeucereusFortress.xml} (80%)
 create mode 100644 dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/32566-01.html
 create mode 100644 dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/SecretAreaInTheKeucereusFortress1.java
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-01.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-02.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-03.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-04.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-05.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-06.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-07.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-08.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-09.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-10.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-11.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-01.htm
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-02.htm
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-03.htm
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-04.htm
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-05.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-06.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-01.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-02.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-03.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-04.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-05.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-06.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-07.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-08.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-09.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-01.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-02.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-03.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-04.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-05.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-06.html
 create mode 100644 dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/Q10270_BirthOfTheSeed.java

diff --git a/dist/game/data/instances/SecretArea.xml b/dist/game/data/instances/SecretAreaInTheKeucereusFortress.xml
similarity index 80%
rename from dist/game/data/instances/SecretArea.xml
rename to dist/game/data/instances/SecretAreaInTheKeucereusFortress.xml
index 306e824a2c..7a060964d0 100644
--- a/dist/game/data/instances/SecretArea.xml
+++ b/dist/game/data/instances/SecretAreaInTheKeucereusFortress.xml
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <instance name="Secret Area in the Keucereus Fortress" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
-	<activityTime val="15" />
+	<activityTime val="5" />
 	<allowSummon val="false" />
 	<emptyDestroyTime val="1" />
 	<exitPoint x="-185057" y="242821" z="1576" />
 	<spawnlist>
 		<!-- Lelrikia -->
 		<group name="general">
-			<spawn npcId="32567" x="-23985" y="-8965" z="-5388" heading="0" respawn="0" />
+			<spawn npcId="32567" x="-23966" y="-8963" z="-5389" heading="0" respawn="0" />
 		</group>
 	</spawnlist>
 </instance>
diff --git a/dist/game/data/scripts/gracia/instances/SecretArea/SecretArea.java b/dist/game/data/scripts/gracia/instances/SecretArea/SecretArea.java
index 3a17e8b05f..728b45cef7 100644
--- a/dist/game/data/scripts/gracia/instances/SecretArea/SecretArea.java
+++ b/dist/game/data/scripts/gracia/instances/SecretArea/SecretArea.java
@@ -37,7 +37,7 @@ public final class SecretArea extends Quest
 		
 	}
 	
-	private static final int TEMPLATE_ID = 117;
+	private static final int TEMPLATE_ID = 118;
 	private static final int GINBY = 32566;
 	private static final int LELRIKIA = 32567;
 	private static final int ENTER = 0;
@@ -72,7 +72,7 @@ public final class SecretArea extends Quest
 		}
 		
 		world = new SAWorld();
-		world.setInstanceId(InstanceManager.getInstance().createDynamicInstance("SecretArea.xml"));
+		world.setInstanceId(InstanceManager.getInstance().createDynamicInstance("SecretAreaInTheKeucereusFortress.xml"));
 		world.setTemplateId(TEMPLATE_ID);
 		world.addAllowed(player.getObjectId());
 		world.setStatus(0);
diff --git a/dist/game/data/scripts/instances/InstanceLoader.java b/dist/game/data/scripts/instances/InstanceLoader.java
index 234b77ae6d..e3f357d02d 100644
--- a/dist/game/data/scripts/instances/InstanceLoader.java
+++ b/dist/game/data/scripts/instances/InstanceLoader.java
@@ -50,6 +50,7 @@ import instances.NornilsGardenQuest.NornilsGardenQuest;
 import instances.PailakaDevilsLegacy.PailakaDevilsLegacy;
 import instances.PailakaSongOfIceAndFire.PailakaSongOfIceAndFire;
 import instances.SanctumOftheLordsOfDawn.SanctumOftheLordsOfDawn;
+import instances.SecretAreaInTheKeucereusFortress1.SecretAreaInTheKeucereusFortress1;
 
 /**
  * Instance class-loader.
@@ -90,6 +91,7 @@ public final class InstanceLoader
 		PailakaDevilsLegacy.class,
 		PailakaSongOfIceAndFire.class,
 		SanctumOftheLordsOfDawn.class,
+		SecretAreaInTheKeucereusFortress1.class,
 	};
 	
 	public static void main(String[] args)
diff --git a/dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/32566-01.html b/dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/32566-01.html
new file mode 100644
index 0000000000..51f4ed2a9a
--- /dev/null
+++ b/dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/32566-01.html
@@ -0,0 +1,3 @@
+<html><body>Soldier Ginby:<br>
+Hurry! Come back before anybody sees you!
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/SecretAreaInTheKeucereusFortress1.java b/dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/SecretAreaInTheKeucereusFortress1.java
new file mode 100644
index 0000000000..064a7bcf36
--- /dev/null
+++ b/dist/game/data/scripts/instances/SecretAreaInTheKeucereusFortress1/SecretAreaInTheKeucereusFortress1.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2004-2017 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 instances.SecretAreaInTheKeucereusFortress1;
+
+import com.l2jserver.gameserver.model.Location;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
+import com.l2jserver.gameserver.model.quest.QuestState;
+
+import instances.AbstractInstance;
+import quests.Q10270_BirthOfTheSeed.Q10270_BirthOfTheSeed;
+
+/**
+ * Secret Area in the Keucereus Fortress instance zone.
+ * @author Adry_85
+ * @since 2.6.0.0
+ */
+public final class SecretAreaInTheKeucereusFortress1 extends AbstractInstance
+{
+	protected class SAKF1World extends InstanceWorld
+	{
+		
+	}
+	
+	// NPC
+	private static final int GINBY = 32566;
+	// Location
+	private static final Location START_LOC = new Location(-23530, -8963, -5413);
+	// Misc
+	private static final int TEMPLATE_ID = 117;
+	
+	public SecretAreaInTheKeucereusFortress1()
+	{
+		super(SecretAreaInTheKeucereusFortress1.class.getSimpleName());
+		addStartNpc(GINBY);
+		addTalkId(GINBY);
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		final QuestState st = player.getQuestState(Q10270_BirthOfTheSeed.class.getSimpleName());
+		if ((st != null) && (st.getMemoState() >= 5) && (st.getMemoState() < 20))
+		{
+			enterInstance(player, new SAKF1World(), "SecretAreaInTheKeucereusFortress.xml", TEMPLATE_ID);
+			if (st.isMemoState(5))
+			{
+				st.setMemoState(10);
+			}
+			return "32566-01.html";
+		}
+		return super.onTalk(npc, player);
+	}
+	
+	@Override
+	public void onEnterInstance(L2PcInstance player, InstanceWorld world, boolean firstEntrance)
+	{
+		if (firstEntrance)
+		{
+			world.addAllowed(player.getObjectId());
+		}
+		teleportPlayer(player, START_LOC, world.getInstanceId(), false);
+	}
+}
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-01.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-01.html
new file mode 100644
index 0000000000..936611529d
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-01.html
@@ -0,0 +1,4 @@
+<html><body>War Mage Artius:<br>
+Can't you see that I'm busy? What is it?<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32559-02.html">I'm here because of the mission Plenos mentioned</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-02.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-02.html
new file mode 100644
index 0000000000..6225f90ceb
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-02.html
@@ -0,0 +1,5 @@
+<html><body>War Mage Artius:<br>
+Ah! You came because of the favor I asked of Plenos. There's an important mission I have in mind, but I must stay here to safeguard the <font color="LEVEL">Barrier Orb</font>. That's why I asked him to gather some capable adventurers.<br>
+We must gather information about the <font color="LEVEL">Seed of Infinity</font>. You know that the major areas of the <font color="LEVEL">Seed of Infinity</font> are guarded by the undead, don't you? I hear that each of these areas is guarded by an especially strong chief gatekeeper.<br>
+<font color="LEVEL">The Hall of Suffering is guarded by the twin Death Knights Yehan Klodekus and Yehan Klanikus, and the Hall of Erosion is guarded by Cohemenes.</font>You must defeat these chief gatekeepers and bring proof. Through that we might be able to learn some vital intelligence.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-03.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-03.html
new file mode 100644
index 0000000000..67c887f4fa
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-03.html
@@ -0,0 +1,4 @@
+<html><body>War Mage Artius:<br>
+Thanks to you, we were able to learn much more about the Seed of Infinity. Now we will have an easier time defeating it.<br>
+(You have already completed this quest.)
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-04.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-04.html
new file mode 100644
index 0000000000..9d48553919
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-04.html
@@ -0,0 +1,5 @@
+<html><body>War Mage Artius:<br>
+Ah, you've done well!<br>
+Show me what you brought.<br>
+Hmm...this will take some time to analyze. Come back later.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-05.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-05.html
new file mode 100644
index 0000000000..d352d36d2f
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-05.html
@@ -0,0 +1,3 @@
+<html><body>War Mage Artius:<br>
+You haven't brought it all! I'm sure you worked hard to collect these, but unless you get them all, it's all meaningless. You must bring back the rest of the evidence.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-06.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-06.html
new file mode 100644
index 0000000000..161eb14424
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-06.html
@@ -0,0 +1,3 @@
+<html><body>War Mage Artius:<br>
+Defeat the chief gatekeepers that guard the major areas of the <font color="LEVEL">Seed of Infinity</font>. <font color="LEVEL">Defeat Yehan Klodekus and Yehan Klanikus, who guard the Hall of Suffering, and Cohemenes, who guards the Hall of Erosion, and bring back the proof we need. When we inspect it, we may learn some vital intelligence.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-07.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-07.html
new file mode 100644
index 0000000000..57be99d94b
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-07.html
@@ -0,0 +1,5 @@
+<html><body>War Mage Artius:<br>
+This is very surprising. Not just their bodies, but even the things left behind by them after death possess great magic power. I've never seen anything like it. I know they were chief gatekeepers, but they were once living, breathing Humans. How can they possess such power? I can hardly imagine how powerful the lord who guards the Seed of Immortality must be.<br>
+This is very dire... As much as I hate to admit it, I think we need his help.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32559-08.html">"His?"</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-08.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-08.html
new file mode 100644
index 0000000000..01c5131fee
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-08.html
@@ -0,0 +1,4 @@
+<html><body>War Mage Artius:<br>
+Actually, there is a Temple of Shilen beneath Keucereus Alliance Base. It is so secret that nobody knows about it. There is a priest of Shilen in hiding there. His name is Lelrikia. I think we need to ask him about this.<br>
+The entrace is guarded by <font color="LEVEL">Soldier Ginby</font>. He seems to be in the pay of the priest these days, so his loyalty is suspect. But go to him and ask him to let you in.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-09.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-09.html
new file mode 100644
index 0000000000..1057e1e5c2
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-09.html
@@ -0,0 +1,5 @@
+<html><body>War Mage Artius:<br>
+This is very surprising. Not just their bodies, but even the things left behind by them after death possess great magic power. I've never seen anything like it. I know they were chief gatekeepers, but they were once living, breathing Humans. How can they possess such power? I can hardly imagine how powerful the lord who guards the Seed of Immortaility must be.<br>
+This is very dire... As much as I hate to admit it, I think we need his help again.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32559-10.html">"Are you talking about Shilen's Priest Lelrikia in the secret fortress?"</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-10.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-10.html
new file mode 100644
index 0000000000..a644f14559
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-10.html
@@ -0,0 +1,3 @@
+<html><body>War Mage Artius:<br>
+That's right. Since you know already, I don't need to tell you any more. Go to <font color="LEVEL">Soldier Ginby</font> and ask him to let you in.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-11.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-11.html
new file mode 100644
index 0000000000..3dac00c7b3
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32559-11.html
@@ -0,0 +1,3 @@
+<html><body>War Mage Artius:<br>
+Thank you. That was important information.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-01.htm b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-01.htm
new file mode 100644
index 0000000000..2092cfaf1a
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-01.htm
@@ -0,0 +1,4 @@
+<html><body>Soldier Plenos:<br>
+I need strong adventurers willing to volunteer for a mission from War Mage Artius. Are you interested? If you plan to go to the <font color="LEVEL">Seed of Infinity</font>, you can take care of this mission when you go.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32563-02.htm">Tell me what it is</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-02.htm b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-02.htm
new file mode 100644
index 0000000000..2bb18e7d14
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-02.htm
@@ -0,0 +1,6 @@
+<html><body>Soldier Plenos:<br>
+In war, knowledge is power.<br>
+War Mage Artius wants information about the place called the <font color="LEVEL">Seed of Infinity</font>. All we know now is that it's a land of death ruled by the Lord of the Undead.<br>
+Learning more might give us the key to winning this war. That's why War Mage Artius is looking for the right adventurer to investigate this mysterious place. Are you interested?<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32563-03.htm">Say yes</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-03.htm b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-03.htm
new file mode 100644
index 0000000000..2900a37caf
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-03.htm
@@ -0,0 +1,3 @@
+<html><body>Soldier Plenos:<br>
+Then go see <font color="LEVEL">War Mage Artius</font>. He will give you the mission details. I wish you luck!
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-04.htm b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-04.htm
new file mode 100644
index 0000000000..6631c07df1
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-04.htm
@@ -0,0 +1,4 @@
+<html><body>Soldier Plenos:<br>
+I need strong adventurers willing to volunteer for a mission from War Mage Artius. Do you know any you can recommend?<br>
+(You must be level 75 or above to start this quest.)
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-05.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-05.html
new file mode 100644
index 0000000000..e01920ac8d
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-05.html
@@ -0,0 +1,5 @@
+<html><body>Soldier Plenos:<br>
+I heard that you successfully completed the mission Artius assigned you. If more adventurers like you help us, Gracia will no doubt soon recover its former glory.<br>
+Thank you on behalf of all the soldiers at Kureceus' Alliance Base.<br>
+(You have already completed this quest.)
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-06.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-06.html
new file mode 100644
index 0000000000..99d51ccbe9
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32563-06.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Plenos:<br>
+Hurry to <font color="LEVEL">War Mage Artius</font>. He will give you the details.<br>
+You will find him at the highest area in the center of Keucereus Alliance Base.
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-01.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-01.html
new file mode 100644
index 0000000000..55e4cd3176
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-01.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Ginby:<br>
+If you have no business here, leave at once!<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32566-02.html">"I'm here to see Lelrikia."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-02.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-02.html
new file mode 100644
index 0000000000..f46834f3a2
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-02.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Ginby:<br>
+Oh ho! So that's why you're here. But that's not enough for me to take you to him. Unless you were to make it worth my while...<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32566-04.html">"Here is 10000 Adena."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-03.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-03.html
new file mode 100644
index 0000000000..c3a043d2dc
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-03.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Ginby:<br>
+Oh ho! A familiar face. We're both very busy, so I'll get right to the point. If you want to enter, it'll cost you.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32566-04.html">"Here is 10000 Adena."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-04.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-04.html
new file mode 100644
index 0000000000..137444f0db
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-04.html
@@ -0,0 +1,3 @@
+<html><body>Soldier Ginby:<br>
+What a good-for-nothing! You've wasted my time!
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-05.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-05.html
new file mode 100644
index 0000000000..8f2c7b872b
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-05.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Ginby:<br>
+Ah, you're smarter than you look. I'm sure this will benefit both of us... Now then, I'll lead you inside. One condition, though: you gotta be quick.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32566-06.html">"Then hurry and lead me inside."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-06.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-06.html
new file mode 100644
index 0000000000..7d188a5441
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-06.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Ginby:<br>
+Ready? Then let's go.<br>
+<a action="bypass -h Quest SecretAreaInTheKeucereusFortress1">"Yeah, ready!"</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-07.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-07.html
new file mode 100644
index 0000000000..cf9e4ca7de
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-07.html
@@ -0,0 +1,3 @@
+<html><body>Soldier Ginby:<br>
+I said get lost! Are you hard of hearing?
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-08.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-08.html
new file mode 100644
index 0000000000..3691c4e636
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-08.html
@@ -0,0 +1,4 @@
+<html><body>Soldier Ginby:<br>
+Hey, are you done?<br>
+<a action="bypass -h Quest SecretAreaInTheKeucereusFortress1">"No, let me back in."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-09.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-09.html
new file mode 100644
index 0000000000..98b50c03bd
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32566-09.html
@@ -0,0 +1,3 @@
+<html><body>Soldier Ginby:<br>
+Finished your business? Well, just don't go blabbing about everything you heard and saw. If you do... Now scram!
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-01.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-01.html
new file mode 100644
index 0000000000..e1bbf5789a
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-01.html
@@ -0,0 +1,4 @@
+<html><body>Shilen's Priest Lelrikia:<br>
+No outsider has ventured here for a long time. Doomed creature, what brought you here?<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32567-02.html">"Tell me about the magical power of the Seed."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-02.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-02.html
new file mode 100644
index 0000000000..a5f3255952
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-02.html
@@ -0,0 +1,6 @@
+<html><body>Shilen's Priest Lelrikia:<br>
+Ah, is that why you dare to disturb me! Very well, I will tell you.<br>
+The Seed is a power that once existed in Shilen's realm, the so-called world of death. To you it would seem like another dimension. As you approach its center, you can draw upon an amazing amount of magic power.<br>
+This is what men call the Seed. I do not know who named it so, but it is not inappropriate. Just as seeds planted in fertile soil grow, so this Seed planted in Gracia grew strong.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32567-03.html">"Oh joy."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-03.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-03.html
new file mode 100644
index 0000000000..27f9e27c21
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-03.html
@@ -0,0 +1,5 @@
+<html><body>Shilen's Priest Lelrikia:<br>
+The Seed acts somewhat like a mirror, reflecting the original nature of the lord who controls the Seed.<br>
+The current Seed of Infinity is the most powerful of the Seeds in Gracia. Strong young men attracted by Lord Ekimus' power gathered there, and now their essences have been transformed to serve the will of Shilen. The Gatekeepers met the same fate. They were also selected for their strength -- a strength that now benefits Ekimus.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32567-04.html">"Oh joy."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-04.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-04.html
new file mode 100644
index 0000000000..71f62374c5
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-04.html
@@ -0,0 +1,5 @@
+<html><body>Shilen's Priest Lelrikia:<br>
+If you understand the characteristics of this Seed, it might help you. Frankly, though, it likely won't change the outcome.<br>
+In any event, I have nothing more to say. Leave now.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32567-05.html">"Okay. I will go to the fortress."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-05.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-05.html
new file mode 100644
index 0000000000..c70358c5ae
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-05.html
@@ -0,0 +1,3 @@
+<html><body>Shilen's Priest Lelrikia:<br>
+Doomed creature, either you submit to the will of Shilen or you will die. Even now, the shadow of death looms...
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-06.html b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-06.html
new file mode 100644
index 0000000000..3fbf3d3dae
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/32567-06.html
@@ -0,0 +1,4 @@
+<html><body>Shilen's Priest Lelrikia:<br>
+You'd best leave now.<br>
+<a action="bypass -h Quest Q10270_BirthOfTheSeed 32567-05.html">"Okay. I will go to the fortress."</a>
+</body></html>
\ No newline at end of file
diff --git a/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/Q10270_BirthOfTheSeed.java b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/Q10270_BirthOfTheSeed.java
new file mode 100644
index 0000000000..3170c91fcb
--- /dev/null
+++ b/dist/game/data/scripts/quests/Q10270_BirthOfTheSeed/Q10270_BirthOfTheSeed.java
@@ -0,0 +1,382 @@
+/*
+ * Copyright (C) 2004-2017 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.Q10270_BirthOfTheSeed;
+
+import com.l2jserver.gameserver.enums.audio.Sound;
+import com.l2jserver.gameserver.model.Location;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.itemcontainer.Inventory;
+import com.l2jserver.gameserver.model.quest.Quest;
+import com.l2jserver.gameserver.model.quest.QuestState;
+import com.l2jserver.gameserver.util.Util;
+
+import quests.Q10272_LightFragment.Q10272_LightFragment;
+
+/**
+ * Birth of the Seed (10270)
+ * @author Adry_85
+ * @since 2.6.0.0
+ */
+public final class Q10270_BirthOfTheSeed extends Quest
+{
+	// NPCs
+	private static final int ARTIUS = 32559;
+	private static final int PLENOS = 32563;
+	private static final int GINBY = 32566;
+	private static final int LELRIKIA = 32567;
+	// Monsters
+	private static final int COHEMENES = 25634;
+	private static final int YEHAN_KLODEKUS = 25665;
+	private static final int YEHAN_KLANIKUS = 25666;
+	// Items
+	private static final int YEHAN_KLODEKUS_BADGE = 13868;
+	private static final int YEHAN_KLANIKUS_BADGE = 13869;
+	private static final int LICH_CRYSTAL = 13870;
+	// Misc
+	private static final int MIN_LEVEL = 75;
+	// Location
+	private static final Location INSTANCE_EXIT = new Location(-185057, 242821, 1576);
+	
+	public Q10270_BirthOfTheSeed()
+	{
+		super(10270, Q10270_BirthOfTheSeed.class.getSimpleName(), "Birth of the Seed");
+		addStartNpc(PLENOS);
+		addTalkId(PLENOS, GINBY, LELRIKIA, ARTIUS);
+		addKillId(COHEMENES, YEHAN_KLODEKUS, YEHAN_KLANIKUS);
+		registerQuestItems(YEHAN_KLODEKUS_BADGE, YEHAN_KLANIKUS_BADGE, LICH_CRYSTAL);
+	}
+	
+	@Override
+	public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
+	{
+		final QuestState st = getQuestState(player, false);
+		if ((st != null) && st.isMemoState(2) && Util.checkIfInRange(1500, npc, player, false))
+		{
+			switch (npc.getId())
+			{
+				case YEHAN_KLODEKUS:
+				{
+					if (!st.hasQuestItems(YEHAN_KLODEKUS_BADGE))
+					{
+						st.giveItems(YEHAN_KLODEKUS_BADGE, 1);
+						st.playSound(Sound.ITEMSOUND_QUEST_ITEMGET);
+					}
+					break;
+				}
+				case YEHAN_KLANIKUS:
+				{
+					if (!st.hasQuestItems(YEHAN_KLANIKUS_BADGE))
+					{
+						st.giveItems(YEHAN_KLANIKUS_BADGE, 1);
+						st.playSound(Sound.ITEMSOUND_QUEST_ITEMGET);
+					}
+					break;
+				}
+				case COHEMENES:
+				{
+					if (!st.hasQuestItems(LICH_CRYSTAL))
+					{
+						st.giveItems(LICH_CRYSTAL, 1);
+						st.playSound(Sound.ITEMSOUND_QUEST_ITEMGET);
+					}
+					break;
+				}
+			}
+		}
+	}
+	
+	@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 "32563-02.htm":
+			{
+				htmltext = event;
+				break;
+			}
+			case "32563-03.htm":
+			{
+				st.startQuest(false);
+				st.setMemoState(1);
+				playSound(player, Sound.ITEMSOUND_QUEST_MIDDLE);
+				htmltext = event;
+				break;
+			}
+			case "32566-02.html":
+			{
+				if (st.isMemoState(4))
+				{
+					final QuestState st1 = player.getQuestState(Q10272_LightFragment.class.getSimpleName());
+					if ((st1 == null) || (st1.isStarted() && (st1.getMemoState() < 10)))
+					{
+						htmltext = event;
+					}
+					else if ((st1.isStarted() && (st1.getMemoState() >= 10)) || st1.isCompleted())
+					{
+						htmltext = "32566-03.html";
+					}
+				}
+				break;
+			}
+			case "32566-04.html":
+			{
+				if (st.isMemoState(4))
+				{
+					if (getQuestItemsCount(player, Inventory.ADENA_ID) < 10000)
+					{
+						htmltext = event;
+					}
+					else
+					{
+						takeItems(player, Inventory.ADENA_ID, 10000);
+						st.setMemoState(5);
+						htmltext = "32566-05.html";
+					}
+				}
+				break;
+			}
+			case "32566-06.html":
+			{
+				if (st.isMemoState(5))
+				{
+					htmltext = event;
+				}
+				break;
+			}
+			case "32567-02.html":
+			case "32567-03.html":
+			{
+				if (st.isMemoState(10))
+				{
+					htmltext = event;
+				}
+				break;
+			}
+			case "32567-04.html":
+			{
+				if (st.isMemoState(10))
+				{
+					st.setMemoState(11);
+					st.setCond(5, true);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32567-05.html":
+			{
+				if (st.isMemoState(11))
+				{
+					st.setMemoState(20);
+					player.setInstanceId(0);
+					player.teleToLocation(INSTANCE_EXIT, true);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32559-02.html":
+			{
+				if (st.isMemoState(1))
+				{
+					st.setMemoState(2);
+					st.setCond(2, true);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32559-08.html":
+			{
+				if (st.isMemoState(3))
+				{
+					final QuestState st1 = player.getQuestState(Q10272_LightFragment.class.getSimpleName());
+					if ((st1 == null) || (st1.isStarted() && (st1.getMemoState() < 10)))
+					{
+						st.setMemoState(4);
+						st.setCond(4, true);
+						htmltext = event;
+					}
+				}
+				break;
+			}
+			case "32559-10.html":
+			{
+				if (st.isMemoState(3))
+				{
+					final QuestState st1 = player.getQuestState(Q10272_LightFragment.class.getSimpleName());
+					if ((st1 != null) && ((st1.isStarted() && (st1.getMemoState() >= 10)) || st1.isCompleted()))
+					{
+						st.setMemoState(4);
+						st.setCond(4, true);
+						htmltext = event;
+					}
+				}
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
+	{
+		executeForEachPlayer(killer, npc, isSummon, true, false);
+		return super.onKill(npc, killer, isSummon);
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		final QuestState st = getQuestState(player, true);
+		String htmltext = getNoQuestMsg(player);
+		if (st.isCompleted())
+		{
+			if (npc.getId() == PLENOS)
+			{
+				htmltext = "32563-05.html";
+			}
+			else if (npc.getId() == ARTIUS)
+			{
+				htmltext = "32559-03.html";
+			}
+		}
+		else if (st.isCreated())
+		{
+			htmltext = (player.getLevel() >= MIN_LEVEL) ? "32563-01.htm" : "32563-04.htm";
+		}
+		else if (st.isStarted())
+		{
+			switch (npc.getId())
+			{
+				case PLENOS:
+				{
+					if (st.isMemoState(1))
+					{
+						htmltext = "32563-06.html";
+					}
+					break;
+				}
+				case GINBY:
+				{
+					final int memoState = st.getMemoState();
+					if (memoState == 4)
+					{
+						htmltext = "32566-01.html";
+					}
+					else if (memoState < 4)
+					{
+						htmltext = "32566-07.html";
+					}
+					else if (memoState == 5)
+					{
+						htmltext = "32566-06.html";
+					}
+					else if ((memoState >= 10) && (memoState < 20))
+					{
+						htmltext = "32566-08.html";
+					}
+					else if (memoState == 20)
+					{
+						htmltext = "32566-09.html";
+					}
+					break;
+				}
+				case LELRIKIA:
+				{
+					final int memoState = st.getMemoState();
+					if (memoState == 10)
+					{
+						htmltext = "32567-01.html";
+					}
+					else if (memoState == 11)
+					{
+						htmltext = "32567-06.html";
+					}
+					break;
+				}
+				case ARTIUS:
+				{
+					switch (st.getMemoState())
+					{
+						case 1:
+						{
+							htmltext = "32559-01.html";
+							break;
+						}
+						case 2:
+						{
+							if (hasQuestItems(player, YEHAN_KLODEKUS_BADGE, YEHAN_KLANIKUS_BADGE, LICH_CRYSTAL))
+							{
+								st.setMemoState(3);
+								st.setCond(3, true);
+								takeItems(player, -1, YEHAN_KLODEKUS_BADGE, YEHAN_KLANIKUS_BADGE, LICH_CRYSTAL);
+								htmltext = "32559-04.html";
+							}
+							else
+							{
+								if (!hasQuestItems(player, YEHAN_KLODEKUS_BADGE) && !hasQuestItems(player, YEHAN_KLANIKUS_BADGE) && !hasQuestItems(player, LICH_CRYSTAL))
+								{
+									htmltext = "32559-05.html";
+								}
+								else
+								{
+									htmltext = "32559-06.html";
+								}
+							}
+							break;
+						}
+						case 3:
+						{
+							final QuestState st1 = player.getQuestState(Q10272_LightFragment.class.getSimpleName());
+							if ((st1 == null) || (st1.isStarted() && (st1.getMemoState() < 10)))
+							{
+								htmltext = "32559-07.html";
+							}
+							else if ((st1.isStarted() && (st1.getMemoState() >= 10)) || st1.isCompleted())
+							{
+								htmltext = "32559-09.html";
+							}
+							break;
+						}
+						case 20:
+						{
+							if (player.getLevel() >= MIN_LEVEL)
+							{
+								giveAdena(player, 133590, true);
+								addExpAndSp(player, 625343, 48222);
+								st.exitQuest(false, true);
+								htmltext = "32559-11.html";
+							}
+							break;
+						}
+					}
+					break;
+				}
+			}
+		}
+		return htmltext;
+	}
+}
diff --git a/dist/game/data/scripts/quests/QuestMasterHandler.java b/dist/game/data/scripts/quests/QuestMasterHandler.java
index 806c93b1d4..c7895f18a1 100644
--- a/dist/game/data/scripts/quests/QuestMasterHandler.java
+++ b/dist/game/data/scripts/quests/QuestMasterHandler.java
@@ -487,6 +487,7 @@ import quests.Q00998_FallenAngelSelect.Q00998_FallenAngelSelect;
 import quests.Q10267_JourneyToGracia.Q10267_JourneyToGracia;
 import quests.Q10268_ToTheSeedOfInfinity.Q10268_ToTheSeedOfInfinity;
 import quests.Q10269_ToTheSeedOfDestruction.Q10269_ToTheSeedOfDestruction;
+import quests.Q10270_BirthOfTheSeed.Q10270_BirthOfTheSeed;
 import quests.Q10271_TheEnvelopingDarkness.Q10271_TheEnvelopingDarkness;
 import quests.Q10272_LightFragment.Q10272_LightFragment;
 import quests.Q10273_GoodDayToFly.Q10273_GoodDayToFly;
@@ -994,6 +995,7 @@ public class QuestMasterHandler
 		Q10267_JourneyToGracia.class,
 		Q10268_ToTheSeedOfInfinity.class,
 		Q10269_ToTheSeedOfDestruction.class,
+		Q10270_BirthOfTheSeed.class,
 		Q10271_TheEnvelopingDarkness.class,
 		Q10272_LightFragment.class,
 		Q10273_GoodDayToFly.class,
-- 
GitLab