From 0c94cf925e77f957a0d1505dab4f17515fb46001 Mon Sep 17 00:00:00 2001
From: Adry_85 <Adrya85@hotmail.it>
Date: Mon, 24 Dec 2012 14:20:36 +0000
Subject: [PATCH] BETA: Retail like quest '''Rise and Fall of the Elroki
 Tribe''' (643).

---
 .../dist/game/data/multisell/2012.xml         |  39 +++
 L2J_DataPack_BETA/dist/game/data/scripts.cfg  |   2 +-
 .../32106-00.htm                              |   3 -
 .../32106-01.htm                              |   7 -
 .../32106-02.htm                              |   6 -
 .../32106-03.htm                              |   4 -
 .../32106-04.htm                              |   2 -
 .../32106-05.htm                              |   4 -
 .../32106-06.htm                              |   6 -
 .../32117-00.htm                              |   7 -
 .../32117-02.htm                              |   6 -
 .../32117-03.htm                              |  12 -
 .../32117-04.htm                              |   4 -
 .../32117-05.htm                              |  10 -
 .../32117-06.htm                              |   6 -
 .../32117-07.htm                              |   4 -
 .../__init__.py                               | 116 --------
 .../32106-01.htm                              |   4 +
 .../32106-02.htm                              |   5 +
 .../32106-03.html                             |   4 +
 .../32106-04.htm                              |   3 +
 .../32106-05.html                             |   3 +
 .../32106-06.html                             |   3 +
 .../32106-07.html                             |   3 +
 .../32106-08.html                             |   5 +
 .../32106-09.html                             |   5 +
 .../32106-10.html                             |   3 +
 .../32106-11.html                             |   3 +
 .../32106-12.html                             |   3 +
 .../32106-13.html                             |   4 +
 .../32106-14.html                             |   3 +
 .../32117-01.html}                            |   3 +-
 .../32117-02.html                             |   6 +
 .../32117-03.html                             |   7 +
 .../32117-04.html                             |   3 +
 .../32117-05.html                             |   3 +
 .../32117-06.html                             |   3 +
 .../32117-07.html                             |   4 +
 .../Q00643_RiseAndFallOfTheElrokiTribe.java   | 273 ++++++++++++++++++
 .../dist/sql/game/updates/20121224update.sql  |   1 +
 40 files changed, 393 insertions(+), 199 deletions(-)
 create mode 100644 L2J_DataPack_BETA/dist/game/data/multisell/2012.xml
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-00.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-01.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-02.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-03.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-04.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-05.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-06.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-00.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-02.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-03.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-04.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-05.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-06.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-07.htm
 delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/__init__.py
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-01.htm
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-02.htm
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-03.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-04.htm
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-05.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-06.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-07.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-08.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-09.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-10.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-11.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-12.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-13.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-14.html
 rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{643_RiseandFalloftheElrokiTribe/32117-01.htm => Q00643_RiseAndFallOfTheElrokiTribe/32117-01.html} (68%)
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-02.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-03.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-04.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-05.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-06.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-07.html
 create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/Q00643_RiseAndFallOfTheElrokiTribe.java
 create mode 100644 L2J_DataPack_BETA/dist/sql/game/updates/20121224update.sql

diff --git a/L2J_DataPack_BETA/dist/game/data/multisell/2012.xml b/L2J_DataPack_BETA/dist/game/data/multisell/2012.xml
new file mode 100644
index 0000000000..c493d8abd2
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/multisell/2012.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
+	<item>
+		<!-- Bones of a Plains Dinosaur -->
+		<ingredient count="400" id="8776" />
+		<!-- Recipe: Sealed Dynasty Tunic (60%) -->
+		<production count="1" id="9492" />
+	</item>
+	<item>
+		<!-- Bones of a Plains Dinosaur -->
+		<ingredient count="250" id="8776" />
+		<!-- Recipe: Sealed Dynasty Stockings (60%) -->
+		<production count="1" id="9493" />
+	</item>
+	<item>
+		<!-- Bones of a Plains Dinosaur -->
+		<ingredient count="200" id="8776" />
+		<!-- Recipe: Sealed Dynasty Circlet (60%) -->
+		<production count="1" id="9494" />
+	</item>
+	<item>
+		<!-- Bones of a Plains Dinosaur -->
+		<ingredient count="134" id="8776" />
+		<!-- Recipe: Sealed Dynasty Gloves (60%) -->
+		<production count="1" id="9495" />
+	</item>
+	<item>
+		<!-- Bones of a Plains Dinosaur -->
+		<ingredient count="134" id="8776" />
+		<!-- Recipe: Sealed Dynasty Shoes (60%) -->
+		<production count="1" id="9496" />
+	</item>
+	<item>
+		<!-- Bones of a Plains Dinosaur -->
+		<ingredient count="287" id="8776" />
+		<!-- Recipe: Sealed Dynasty Sigil (60%) -->
+		<production count="1" id="10115" />
+	</item>
+</list>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts.cfg b/L2J_DataPack_BETA/dist/game/data/scripts.cfg
index ff4ac74fdf..ac6dc364eb 100644
--- a/L2J_DataPack_BETA/dist/game/data/scripts.cfg
+++ b/L2J_DataPack_BETA/dist/game/data/scripts.cfg
@@ -669,7 +669,7 @@ quests/639_GuardiansOfTheHolyGrail/__init__.py
 #quests/640_TheZeroHour/__init__.py
 quests/Q00641_AttackSailren/Q00641_AttackSailren.java
 quests/Q00642_APowerfulPrimevalCreature/Q00642_APowerfulPrimevalCreature.java
-quests/643_RiseandFalloftheElrokiTribe/__init__.py
+quests/Q00643_RiseAndFallOfTheElrokiTribe/Q00643_RiseAndFallOfTheElrokiTribe.java
 quests/644_GraveRobberAnnihilation/__init__.py
 quests/645_GhostsOfBatur/__init__.py
 quests/646_SignsOfRevolt/__init__.py
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-00.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-00.htm
deleted file mode 100644
index 20b70a737e..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-00.htm
+++ /dev/null
@@ -1,3 +0,0 @@
-<html><body>Singsing:<br>
-You're not someone who is skilled enough and brave enough to handle my tasks.<br>
-(This quest can be undertaken by characters level 75 and above)</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-01.htm
deleted file mode 100644
index 31d90276a7..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-01.htm
+++ /dev/null
@@ -1,7 +0,0 @@
-<html><body>Singsing:<br>
-Ah, an adventurer! Are you looking for a job? Since the discovery of this Primeval Isle, Aden port has added a wharf for those interested in seeing the strange new island for themselves.<br>
-In fact, we're getting flooded with adventurers and wizards eager to uncover the island's mysteries or test their mettle against the terrible creatures there.<br>
-We handle tickets here for the ship bound for the island as well as offering accommodations for those who wish to trade with the natives.<br>
-Now we have expanded our service to connect adventurers with those in need of their services.<br>
-Ah, but there is one request I have...<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 32106-02.htm">"What kind of request?"</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-02.htm
deleted file mode 100644
index c1776468d3..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-02.htm
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><body>Singsing:<br>
-On this Primeval Isle you'll find primitive creatures called dinosaurs -- you'll never see anything like them in Aden, believe me! According to wise wizads, even the gods and Giants were afraid of the dinosaurs. They cannot be found in Aden -- thankfully -- but are still plentiful on that strange island.<br>
-Around the wharf, you'll find only relatively weak ones, but they are still a challenge for even the hardiest adventurer.<br>
-The wizard Karakawei has been pestering me to acquire some of those creatures' bone for study. If you defeat them and bring back their bones, I will purchase them from you on his behalf. What do you say?<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 32106-03.htm">"Doesn't sound that tough -- count me in."</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe Quit">"Ah, I really can't stand reptiles... Sorry, but I'll pass."</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-03.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-03.htm
deleted file mode 100644
index ece958114b..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-03.htm
+++ /dev/null
@@ -1,4 +0,0 @@
-<html><body>Singsing:<br>
-Ah, you are a true adventurer! Go and hunt<font color="LEVEL"> Pachycephalosaurus and wild striders</font> and bring back the<font color="LEVEL"> bones of dinosaurs from the plains</font>. I will purchase them from you on Karakawei's behalf.<br>
-Just as a favor to you, I heard from a friend of mine who trades with the island natives that the native shaman is also in the market for dinosaur bones. While you're at it, you may want to try to contact him as well.<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 32106-04.htm">"Where can I find this native shaman?"</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-04.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-04.htm
deleted file mode 100644
index 6d4837b5d1..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-04.htm
+++ /dev/null
@@ -1,2 +0,0 @@
-<html><body>Singsing:<br>
-The shaman lives on the island's southern Primeval Plains. He doesn't like to have contact with outsiders, though, so you'll need someone he trusts to vouch for you before he'll likely talk to you. There is a native warrior,<font color="LEVEL"> Orahochin</font>, who lives at the foot of the mountain between the southern shore of Primeval Plains and the Lost Nest. I've heard that he is more accepting of outsiders.</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-05.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-05.htm
deleted file mode 100644
index 56df1abcbf..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-05.htm
+++ /dev/null
@@ -1,4 +0,0 @@
-<html><body>Singsing:<br>
-Do you want to continue this kind of work, or do you give up?<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe None">"Continue."</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe Quit">"Stop."</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-06.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-06.htm
deleted file mode 100644
index eb26cb7ed8..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32106-06.htm
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><body>Singsing:<br>
-Well done! Karakawei will be very pleased.<br>
-Here's the fee we agreed upon; I trust it's sufficient.<br>
-Say, since you've done such a good job, how about continuing this kind of work?<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe None">"Continue."</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe Quit">"Stop."</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-00.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-00.htm
deleted file mode 100644
index 6be08acc98..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-00.htm
+++ /dev/null
@@ -1,7 +0,0 @@
-<html><body>Shaman Karakawei:<br>
-You are that adventurer... Have you any business with my race?<br>
-<a action = "bypass -h Quest 643_RiseandFalloftheElrokiTribe 32117-01.htm">Ask about the rise and fall of the Elroki tribe.</a><br>
-<a action = "bypass -h Quest 643_RiseandFalloftheElrokiTribe 32117-03.htm">"Use 300 Plain Dinosaur Bones to appease Shilen."</a><br>
-<a action = "bypass -h Quest 643_RiseandFalloftheElrokiTribe 32117-05.htm">"Use the Plain Dinosaur Bones for the medicine."</a><br>
-<a action = "bypass -h Quest 643_RiseandFalloftheElrokiTribe None">"I'm really not interested in a primitive race like you. You keep to your business and I'll keep to mine!"</a>
-</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-02.htm
deleted file mode 100644
index d7f7683ab1..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-02.htm
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><body>Karakawei:<br>
-We know not... Perhaps we have been unfaithful. But we must win back Shilen's grace. Without it, we grow weaker with each passing season, sickening like a tree deprived of sunlight. Even the dinosaurs we once commanded turn on us, tearing our people to pieces!<br>
-Outsider, if you are willing to help us to earn back the grace of Shilen, would you donate <font color="LEVEL">Plain Dinosaur Bones</font>? If so, I will give you ingredients to make your weapons. On the other hand, if you can help us to make a medicine to cure this illness, I will give you the recipe you need to make your weapons.<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 32117-03.htm">"Use 300 Plain Dinosaur Bones to appease Shilen."</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 32117-05.htm">"Use the Plain Dinosaur Bones for the medicine."</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe None">"I'm really not interested in helping a primitive race like you. You keep yo your business and i'll keep to mine!"</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-03.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-03.htm
deleted file mode 100644
index 115955d065..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-03.htm
+++ /dev/null
@@ -1,12 +0,0 @@
-<html><body>Shaman Karakawei:<br>
-Thank you, adventurer...<br>
-I can now perform the ritual.<br>
-(Karakawei softly chants and seems to lose consciousness.)<br>
-....<br>
-....<br>
-....<br>
-....<br>
-(Suddenly, his eyes open!)<br>
-Ah, I feel that Shilen is satisfied with the ritual!<br>
-Thank you, adventurer...<br>
-Please accept this as a token of our appreciation. I also ask that you bring back those bones of the dinosaurs from the plains so that we may continue with these rituals!</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-04.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-04.htm
deleted file mode 100644
index 8c6e9c5aee..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-04.htm
+++ /dev/null
@@ -1,4 +0,0 @@
-<html><body>Shaman Karakawei:<br>
-To undertake the necessary ritual, we need <font color="LEVEL">300 Plain Dinosaur Bones</font>. Unless I do this, the curse cannot be lifted; Shilen's grace will be forever denied to us, I fear.<br>
-Please make haste and hunt <font color="LEVEL">Deinonychus, Ornithomimus, Pakikepalosaurus and Wild Striders</font> and bring back <font color="LEVEL">300 Bones</font>!
-</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-05.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-05.htm
deleted file mode 100644
index 61bc7dbcb8..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-05.htm
+++ /dev/null
@@ -1,10 +0,0 @@
-<html><body>Shaman Karakawei:<br>
-If you donate Plain Dinosaur Bones to cure the illness, we will reward you based on the number you give us.<br>
-What would you like?<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 1">Recipe: Sealed Dynasty Tunic (60%) (400 Plain Dinosaur Bones)</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 2">Recipe: Sealed Dynasty Stockings (60%) (250 Plain Dinosaur Bones)</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 3">Recipe: Sealed Dynasty Circlet (60%) (200 Plain Dinosaur Bones)</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 4">Recipe: Sealed Dynasty Gloves (60%) (134 Plain Dinosaur Bones)</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 5">Recipe: Sealed Dynasty Shoes (60%) (134 Plain Dinosaur Bones)</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 6">Recipe: Sealed Dynasty Sigil (60%) (287 Plain Dinosaur Bones)</a><br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe None">"Quit"</a></body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-06.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-06.htm
deleted file mode 100644
index 28c4d20cc0..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-06.htm
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><body>Shaman Karakawei:<br>
-Thank you, adventurer.<br>
-I think I can make a good medicine with the bones you gave me. Now we can stay alive a little longer...<br>
-(Despite his words, Karakawei seems depressed.)<br>
-Take it as a token of our tribe's appreciation. And please bring more Plain Dinosaur Bones so we can make even more medicine.
-</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-07.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-07.htm
deleted file mode 100644
index 3dcb227650..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-07.htm
+++ /dev/null
@@ -1,4 +0,0 @@
-<html><body>Shaman Karakawei:<br>
-We need a certain number of Plain Dinosaur Bones to make the medicine we need. This may only be a matter of profit for you, but to us it's a matter of survival! There's no room to bergain. Unless you bring me the exact number we need, we will not reward you.<br>
-So hurry and hunt <font color="LEVEL">Deinonychus, Ornithomimus, Pakikepalosaurus and Wild Striders</font> and bring me the number of <font color="LEVEL">Plain Dinosaur Bones</font> I asked for!
-</body></html>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/__init__.py
deleted file mode 100644
index eb86b6c562..0000000000
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/__init__.py
+++ /dev/null
@@ -1,116 +0,0 @@
-# Created by Gigiikun
-import sys
-from com.l2jserver import Config
-from com.l2jserver.gameserver.model.quest import State
-from com.l2jserver.gameserver.model.quest import QuestState
-from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
-
-qn = "643_RiseandFalloftheElrokiTribe"
-
-#Settings: drop chance in %
-DROP_CHANCE = 75
-
-BONES_OF_A_PLAINS_DINOSAUR = 8776
-PLAIN_DINOSAURS = [22201,22202,22204,22205,22209,22210,22212,22213,22219,22220,22221,22222,22224,22225,22742,22743,22744,22745]
-REWARDS = range(8712,8723)
-REWARDS_DYNA = {
-    "1" : [9492 , 400], #Recipe: Sealed Dynasty Tunic (60%)
-    "2" : [9493 , 250], #Recipe: Sealed Dynasty Stockings (60%)
-    "3" : [9494 , 200], #Recipe: Sealed Dynasty Circlet (60%)
-    "4" : [9495 , 134], #Recipe: Sealed Dynasty Gloves (60%)
-    "5" : [9496 , 134], #Recipe: Sealed Dynasty Shoes (60%)
-    "6" : [10115, 287], #Recipe: Sealed Dynasty Sigil (60%)
-    }
-
-class Quest (JQuest) :
-
- def __init__(self,id,name,descr):
- 	JQuest.__init__(self,id,name,descr)
- 	self.questItemIds = [BONES_OF_A_PLAINS_DINOSAUR]
-
- def onAdvEvent (self,event,npc, player) :
-    htmltext = event
-    st = player.getQuestState(qn)
-    if not st : return
-    count = st.getQuestItemsCount(BONES_OF_A_PLAINS_DINOSAUR)
-    if event == "None" :
-        return
-    elif event == "32106-03.htm" :
-       st.set("cond","1")
-       st.setState(State.STARTED)
-       st.playSound("ItemSound.quest_accept")
-    elif event == "32117-03.htm" :
-       if count >= 300 :
-          st.takeItems(BONES_OF_A_PLAINS_DINOSAUR,300)
-          st.rewardItems(REWARDS[self.getRandom(len(REWARDS))],5)
-       else :
-          htmltext = "32117-04.htm"
-    elif event in REWARDS_DYNA.keys() :
-       if count >= REWARDS_DYNA[event][1] :
-          st.takeItems(BONES_OF_A_PLAINS_DINOSAUR,REWARDS_DYNA[event][1])
-          st.rewardItems(REWARDS_DYNA[event][0],1)
-          htmltext = "32117-06.htm"
-       else :
-          htmltext = "32117-07.htm"
-    elif event == "Quit" :
-       st.playSound("ItemSound.quest_finish")
-       st.exitQuest(1)
-       return
-    return htmltext
-
- def onTalk (self, npc, player):
-    st = player.getQuestState(qn)
-    htmltext = Quest.getNoQuestMsg(player)
-    if st :
-       npcId = npc.getNpcId()
-       cond = st.getInt("cond")
-       count = st.getQuestItemsCount(BONES_OF_A_PLAINS_DINOSAUR)
-       if cond == 0 and npcId == 32106:
-          if player.getLevel() >= 75 :
-             htmltext = "32106-01.htm"
-          else :
-             htmltext = "32106-00.htm"
-             st.exitQuest(1)
-       elif st.getState() == State.STARTED :
-          if npcId == 32106 :
-             if count == 0 :
-                htmltext = "32106-05.htm"
-             else :
-                htmltext = "32106-06.htm"
-                st.takeItems(BONES_OF_A_PLAINS_DINOSAUR,-1)
-                st.giveItems(57,count*1374)
-          elif npcId == 32117 :
-             htmltext = "32117-01.htm"
-    return htmltext
-
- def onKill (self, npc, player,isPet):
-    partyMember = self.getRandomPartyMember(player,"1")
-    if not partyMember: return
-    st = partyMember.getQuestState(qn)
-    if st :
-       if st.getState() == State.STARTED :
-          npcId = npc.getNpcId()
-          cond = st.getInt("cond")
-          count = st.getQuestItemsCount(BONES_OF_A_PLAINS_DINOSAUR)
-          if cond == 1 :
-             chance = DROP_CHANCE*Config.RATE_QUEST_DROP
-             numItems, chance = divmod(chance,100)
-             if self.getRandom(100) < chance : 
-                numItems += 1
-             if numItems :
-                if int(count + numItems)/300 > int(count)/300 :
-                   st.playSound("ItemSound.quest_middle")
-                else :
-                   st.playSound("ItemSound.quest_itemget")
-                st.giveItems(BONES_OF_A_PLAINS_DINOSAUR,int(numItems))
-    return
-
-QUEST = Quest(643,qn,"Rise and Fall of the Elroki Tribe")
-
-QUEST.addStartNpc(32106)
-
-QUEST.addTalkId(32106)
-QUEST.addTalkId(32117)
-
-for mob in PLAIN_DINOSAURS :
-   QUEST.addKillId(mob)
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-01.htm
new file mode 100644
index 0000000000..5e9c1d68c4
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-01.htm
@@ -0,0 +1,4 @@
+<html><body>Singsing:<br>
+Ah, an adventurer! Are you looking for a job? Since the discovery of this Primeval Isle, Aden port has added a wharf for those interested in seeing the strange new island for themselves.<br>In fact, we're getting flooded with adventurers and wizards eager to uncover the island's mysteries or test their mettle against the terrible creatures there.<br>We handle tickets here for the ship bound for the island as well as offering accommodations for those who wish to trade with the natives.<br>Now we have expanded our service to connect adventurers with those in need of their services.<br>Ah, but there is one request I have...<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-02.htm">"What kind of request?"</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-02.htm
new file mode 100644
index 0000000000..a207a5385a
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-02.htm
@@ -0,0 +1,5 @@
+<html><body>Singsing:<br>
+On this Primeval Isle you'll find primitive creatures called dinosaurs -- you'll never see anything like them in Aden, believe me! According to wise wizards, even the gods and Giants were afraid of the dinosaurs. They cannot be found in Aden -- thankfully -- but are still plentiful on that strange island.<br>Around the wharf, you'll find only relatively weak ones, but they are still a challenge for even the hardiest adventurer. <br>The wizard Karakawei has been pestering me to acquire some of those creatures' bone for study. If you defeat them and bring back their bones, I will purchase them from you on his behalf. What do you say?<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe quest_accept">"Doesn't sound that tough -- count me in."</a><br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-04.htm">"Ah, I really can't stand reptiles... Sorry, but I'll pass."</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-03.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-03.html
new file mode 100644
index 0000000000..65546a03ed
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-03.html
@@ -0,0 +1,4 @@
+<html><body>Singsing:<br>
+Ah, you are a true adventurer! Go and hunt <font color = "LEVEL">Pachycephalosaurus and wild striders</font> and bring back the <font color = "LEVEL">bones of dinosaurs from the plains</font>. I will purchase them from you on Karakawei's behalf.<br>Just as a favor to you, I heard from a friend of mine who trades with the island natives that the native shaman is also in the market for dinosaur bones. While you're at it, you may want to try to contact him as well.<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-05.html">"Where can I find this native shaman?"</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-04.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-04.htm
new file mode 100644
index 0000000000..2ab2cf3680
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-04.htm
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+Sure, I understand. I don't think this island is the place for you, though, if you're afraid of reptiles. (So much for being an adventurer!)
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-05.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-05.html
new file mode 100644
index 0000000000..2c8469701a
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-05.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+The shaman lives on the island's southern Primeval Plains. He doesn't like to have contact with outsiders, though, so you'll need someone he trusts to vouch for you before he'll likely talk to you. There is a native warrior, <font color = "LEVEL">Orahochin</font>, who lives at the foot of the mountain between the southern shore of Primeval Plains and the Lost Nest. I've heard that he is more accepting of outsiders.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-06.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-06.html
new file mode 100644
index 0000000000..2eec04ce7c
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-06.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+Ah, an adventurer! Are you looking for a job? Since the discovery of this Primeval Isle, Aden port has added a wharf for those interested in seeing the strange new island for themselves.<br>In fact, we're getting flooded with adventurers and wizards eager to uncover the island's mysteries or test their mettle against the terrible creatures there.<br>We handle tickets here for the ship bound for the island as well as offering accommodations for those who wish to trade with the natives.<br>Now we have expanded our service to connect adventurers with those in need of their services.<br>I have just one request, but hmmm...<br>I don't think that you're suited for this particular task.<br>(Only characters level 75 and above are permitted to take on this quest.)
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-07.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-07.html
new file mode 100644
index 0000000000..f8a4235c1a
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-07.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+I don't think this task is suitable for you.<br>(Only characters level 75 and above are permitted to take on this quest.)
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-08.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-08.html
new file mode 100644
index 0000000000..4ffc0654f0
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-08.html
@@ -0,0 +1,5 @@
+<html><body>Singsing:<br>
+I see that you've returned! The <font color="LEVEL">bones of dinosaurs from the plains</font> you've brought will certainly further Pillbug's research...and I'm sure he'll pay well for them.<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-09.html">Give him the bones.</a><br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-13.html">Tell him that you will take the bones to the native shaman instead.</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-09.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-09.html
new file mode 100644
index 0000000000..070d3c1520
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-09.html
@@ -0,0 +1,5 @@
+<html><body>Singsing:<br>
+Well done! Karakawei will be very pleased.<br>Here's the fee we agreed upon; I trust it's sufficient.<br>Say, since you've done such a good job, how about continuing this kind of work?<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-10.html">Continue.</a><br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe exit">Stop.</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-10.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-10.html
new file mode 100644
index 0000000000..352373bae1
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-10.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+Glad to hear it! I think you'll make us both rich men at this rate. Go and hunt <font color = "LEVEL">Pachycephalosaurus and wild striders</font> and bring back their <font color = "LEVEL">bones</font>.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-11.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-11.html
new file mode 100644
index 0000000000..c069277c31
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-11.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+Well, thanks for your help. It was a pleasure doing business with you, and I wish you the best of luck during your stay on this Primeval Isle.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-12.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-12.html
new file mode 100644
index 0000000000..d6d0461a31
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-12.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+Thanks for your help; it was a pleasure doing business with you. I know that Karakawei is going to be one happy wizard! Farewell, and I wish you the best of luck during your stay on this Primeval Isle.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-13.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-13.html
new file mode 100644
index 0000000000..51f24ee243
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-13.html
@@ -0,0 +1,4 @@
+<html><body>Singsing:<br>
+Hey, that wasn't really what I had in mind...  Ah, I suppose it is your decision how to dispose of the <font color = "LEVEL">bones of dinosaurs from the plains</font>. You did risk your own skin for them, after all. But are you sure that this is the most profitable thing for you to do?<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32106-05.html">"Where can I find the native shaman?"</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-14.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-14.html
new file mode 100644
index 0000000000..034a19d660
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32106-14.html
@@ -0,0 +1,3 @@
+<html><body>Singsing:<br>
+Please go and collect those dinosaur bones as quickly as possible. Karakawei's been pressing me even harder these days.<br>Without the bones, I think his research has ground to a halt.<br>He's planning to present his findings to the Mizbody Magic Association very soon, and I know he's getting anxious.<br>So get started!<br>Hunt the <font color = "LEVEL">Pachycephalosaurus and wild striders</font> from the plains and bring back their <font color = "LEVEL">bones</font>.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-01.html
similarity index 68%
rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-01.htm
rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-01.html
index 8f4da5374d..9f89931ea8 100644
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/643_RiseandFalloftheElrokiTribe/32117-01.htm
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-01.html
@@ -1,3 +1,4 @@
 <html><body>Shaman Karakawei:<br>
 Once our race was strong and wise, Shilen's chosen people to govern these powerful primitive creatures, dinosaurs, who struck fear into the hearts of the very gods themselves. But long ago, Shilen fell silent; our prayers to her now go unanswered.<br>
-<a action="bypass -h Quest 643_RiseandFalloftheElrokiTribe 32117-02.htm">"Ask why she no longer responds."</a></body></html>
\ No newline at end of file
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32117-02.html">Ask why she no longer responds.</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-02.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-02.html
new file mode 100644
index 0000000000..3a4c99a247
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-02.html
@@ -0,0 +1,6 @@
+<html><body>Karakawei:<br>
+We know not... Perhaps we have been unfaithful. But we must win back Shilen's favor. Without it, we grow weaker with each passing season, sickening like a tree deprived of sunlight. Without her blessing, our race grows weaker and weaker... We become ill... Even the dinosaurs that we once commanded turn against us, tearing our people to pieces!<br>Outsider, if you are willing to help us to earn back the favor of Shilen,<br> please donate <font color = "LEVEL">300 bones from the dinosaurs of the plains</font>.<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe exchange">"I hope you use these bones for your sacrificial rite." (Hand over the bones.)</a><br>
+<a action="bypass -h npc_%objectId%_multisell 2012">"I hope you use these bones for medicine." (Hand over the bones.)</a><br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32117-06.html">"I'm really not interested in helping a primitive race like yours. Figure it out on your own."</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-03.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-03.html
new file mode 100644
index 0000000000..e9a29f1fda
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-03.html
@@ -0,0 +1,7 @@
+<html><body>Karakawei:<br>
+You are the adventurer from earlier... What business do you have with our tribe?<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32117-07.html">Ask about the rise and fall of the Elroki tribe.</a><br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe exchange">"I hope you use these 300 bones for your sacrificial rite." (Hand over the bones.)</a><br>
+<a action="bypass -h npc_%objectId%_multisell 2012">"I hope you use these 300 bones for medicine." (Hand over the bones.)</a><br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32117-06.html">"I'm really not interested in helping a primitive race like yours. Solve your own problems."</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-04.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-04.html
new file mode 100644
index 0000000000..302c4b82bd
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-04.html
@@ -0,0 +1,3 @@
+<html><body>Karakawei:<br>
+To undertake the necessary ritual, I need <font color = "LEVEL">300 bones of dinosaurs from the plains</font>. Unless I do this, the curse cannot be lifted; Shilen's grace will be forever denied to us, I fear.<br>Please make haste and hunt <font color = "LEVEL">Pachycephalosaurus and wild striders</font> and bring back <font color = "LEVEL">300 bones of dinosaurs from the plains</font>.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-05.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-05.html
new file mode 100644
index 0000000000..cc4e6cbc64
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-05.html
@@ -0,0 +1,3 @@
+<html><body>Karakawei:<br>
+Thank you, adventurer...<br>I can now perform the ritual.<br>(Karakawei softly chants and seems to lose consciousness.)<br>....<br>....<br>....<br>....<br>(Suddenly, his eyes open!)<br>Ah, I feel that Shilen is satisfied with the ritual!<br>Thank you, adventurer...<br>Please accept this as a token of our appreciation.<br><br>I also ask that you bring back those bones of the dinosaurs from the plains so that we may continue with these rituals!
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-06.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-06.html
new file mode 100644
index 0000000000..e2a93d50a3
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-06.html
@@ -0,0 +1,3 @@
+<html><body>Karakawei:<br>
+Hmmmph! Arrogant, you are, like all outsiders. If my race still had the power of the old days, you would treat us with the respect that is our due!<br>Ah, Shilen...forgive us!<br>You, leave now if you still refuse to help us in our time of need.
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-07.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-07.html
new file mode 100644
index 0000000000..f0c6d00325
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/32117-07.html
@@ -0,0 +1,4 @@
+<html><body>Karakawei:<br>
+Once our race was strong and wise, Shilen's chosen people to govern these powerful primitive creatures, dinosaurs, who struck fear into the hearts of the very gods themselves. But long ago, Shilen fell silent; our prayers to her now go unanswered.<br>
+<a action="bypass -h Quest Q00643_RiseAndFallOfTheElrokiTribe 32117-02.html">Ask why she no longer responds.</a>
+</body></html>
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/Q00643_RiseAndFallOfTheElrokiTribe.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/Q00643_RiseAndFallOfTheElrokiTribe.java
new file mode 100644
index 0000000000..f79e180c36
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00643_RiseAndFallOfTheElrokiTribe/Q00643_RiseAndFallOfTheElrokiTribe.java
@@ -0,0 +1,273 @@
+/*
+ * 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.Q00643_RiseAndFallOfTheElrokiTribe;
+
+import com.l2jserver.Config;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.quest.Quest;
+import com.l2jserver.gameserver.model.quest.QuestState;
+import com.l2jserver.gameserver.model.quest.State;
+import com.l2jserver.gameserver.util.Util;
+
+/**
+ * Rise and Fall of the Elroki Tribe (643)
+ * @author Adry_85
+ */
+public class Q00643_RiseAndFallOfTheElrokiTribe extends Quest
+{
+	// NPCs
+	private static final int SINGSING = 32106;
+	private static final int KARAKAWEI = 32117;
+	// Item
+	private static final int BONES_OF_A_PLAINS_DINOSAUR = 8776;
+	// Misc
+	private static final int MIN_LEVEL = 75;
+	private static final int CHANCE_MOBS1 = 116;
+	private static final int CHANCE_MOBS2 = 360;
+	private static final int CHANCE_DEINO = 558;
+	private boolean isFirstTalk = true;
+	// Rewards
+	private static final int[] PIECE =
+	{
+		8712, // Sirra's Blade Edge
+		8713, // Sword of Ipos Blade
+		8714, // Barakiel's Axe Piece
+		8715, // Behemoth's Tuning Fork Piece
+		8716, // Naga Storm Piece
+		8717, // Tiphon's Spear Edge
+		8718, // Shyeed's Bow Shaft
+		8719, // Sobekk's Hurricane Edge
+		8720, // Themis' Tongue Piece
+		8721, // Cabrio's Hand Head
+		8722, // Daimon Crystal Fragment
+	};
+	// Mobs
+	private static final int[] MOBS1 =
+	{
+		22200, // Ornithomimus
+		22201, // Ornithomimus
+		22202, // Ornithomimus
+		22204, // Deinonychus
+		22205, // Deinonychus
+		22208, // Pachycephalosaurus
+		22209, // Pachycephalosaurus
+		22210, // Pachycephalosaurus
+		22211, // Wild Strider
+		22212, // Wild Strider
+		22213, // Wild Strider
+		22219, // Ornithomimus
+		22220, // Deinonychus
+		22221, // Pachycephalosaurus
+		22222, // Wild Strider
+		22224, // Ornithomimus
+		22225, // Deinonychus
+		22226, // Pachycephalosaurus
+		22227, // Wild Strider
+	};
+	
+	private static final int[] MOBS2 =
+	{
+		22742, // Ornithomimus
+		22743, // Deinonychus
+		22744, // Ornithomimus
+		22745, // Deinonychus
+	};
+	
+	private static final int DEINONYCHUS = 22203;
+	
+	public Q00643_RiseAndFallOfTheElrokiTribe(int id, String name, String descr)
+	{
+		super(id, name, descr);
+		
+		addStartNpc(SINGSING);
+		addTalkId(SINGSING, KARAKAWEI);
+		addKillId(MOBS1);
+		addKillId(MOBS2);
+		addKillId(DEINONYCHUS);
+		registerQuestItems(BONES_OF_A_PLAINS_DINOSAUR);
+	}
+	
+	@Override
+	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+	{
+		final QuestState st = player.getQuestState(getName());
+		if (st == null)
+		{
+			return null;
+		}
+		
+		String htmltext = null;
+		switch (event)
+		{
+			case "32106-02.htm":
+			case "32106-04.htm":
+			case "32106-05.html":
+			case "32106-10.html":
+			case "32106-13.html":
+			case "32117-02.html":
+			case "32117-06.html":
+			case "32117-07.html":
+			{
+				htmltext = event;
+				break;
+			}
+			case "quest_accept":
+			{
+				if (player.getLevel() >= MIN_LEVEL)
+				{
+					st.startQuest();
+					htmltext = "32106-03.html";
+				}
+				else
+				{
+					htmltext = "32106-07.html";
+				}
+				break;
+			}
+			case "32106-09.html":
+			{
+				st.giveAdena(1374 * st.getQuestItemsCount(BONES_OF_A_PLAINS_DINOSAUR), true);
+				st.takeItems(BONES_OF_A_PLAINS_DINOSAUR, -1);
+				htmltext = event;
+				break;
+			}
+			case "exit":
+			{
+				if (!st.hasQuestItems(BONES_OF_A_PLAINS_DINOSAUR))
+				{
+					htmltext = "32106-11.html";
+				}
+				else
+				{
+					st.giveAdena(1374 * st.getQuestItemsCount(BONES_OF_A_PLAINS_DINOSAUR), true);
+					htmltext = "32106-12.html";
+				}
+				st.exitQuest(true, true);
+				break;
+			}
+			case "exchange":
+			{
+				if (st.getQuestItemsCount(BONES_OF_A_PLAINS_DINOSAUR) < 300)
+				{
+					htmltext = "32117-04.html";
+				}
+				else
+				{
+					st.rewardItems(PIECE[getRandom(PIECE.length)], 5);
+					st.takeItems(BONES_OF_A_PLAINS_DINOSAUR, 300);
+					st.playSound(QuestSound.ITEMSOUND_QUEST_MIDDLE);
+					htmltext = "32117-05.html";
+				}
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		QuestState st = player.getQuestState(getName());
+		String htmltext = getNoQuestMsg(player);
+		if (st == null)
+		{
+			return htmltext;
+		}
+		
+		switch (st.getState())
+		{
+			case State.CREATED:
+			{
+				htmltext = (player.getLevel() >= MIN_LEVEL) ? "32106-01.htm" : "32106-06.html";
+				break;
+			}
+			case State.STARTED:
+			{
+				if (npc.getNpcId() == SINGSING)
+				{
+					htmltext = (st.hasQuestItems(BONES_OF_A_PLAINS_DINOSAUR)) ? "32106-08.html" : "32106-14.html";
+				}
+				else if (npc.getNpcId() == KARAKAWEI)
+				{
+					if (isFirstTalk)
+					{
+						isFirstTalk = false;
+						htmltext = "32117-01.html";
+					}
+					else
+					{
+						htmltext = "32117-03.html";
+					}
+				}
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
+	{
+		final L2PcInstance partyMember = getRandomPartyMember(player, "1");
+		if (partyMember == null)
+		{
+			return super.onKill(npc, player, isPet);
+		}
+		
+		final QuestState st = partyMember.getQuestState(getName());
+		int npcId = npc.getNpcId();
+		
+		if (Util.contains(MOBS1, npcId))
+		{
+			float chance = (CHANCE_MOBS1 * Config.RATE_QUEST_DROP);
+			if (getRandom(1000) < chance)
+			{
+				st.rewardItems(BONES_OF_A_PLAINS_DINOSAUR, 2);
+			}
+			else
+			{
+				st.rewardItems(BONES_OF_A_PLAINS_DINOSAUR, 1);
+			}
+			st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
+		}
+		
+		if (Util.contains(MOBS2, npcId))
+		{
+			float chance = (CHANCE_MOBS2 * Config.RATE_QUEST_DROP);
+			if (getRandom(1000) < chance)
+			{
+				st.rewardItems(BONES_OF_A_PLAINS_DINOSAUR, 1);
+				st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
+			}
+		}
+		
+		if (npcId == DEINONYCHUS)
+		{
+			float chance = (CHANCE_DEINO * Config.RATE_QUEST_DROP);
+			if (getRandom(1000) < chance)
+			{
+				st.rewardItems(BONES_OF_A_PLAINS_DINOSAUR, 1);
+				st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
+			}
+		}
+		return super.onKill(npc, player, isPet);
+	}
+	
+	public static void main(String[] args)
+	{
+		new Q00643_RiseAndFallOfTheElrokiTribe(643, Q00643_RiseAndFallOfTheElrokiTribe.class.getSimpleName(), "Rise and Fall of the Elroki Tribe");
+	}
+}
diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20121224update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20121224update.sql
new file mode 100644
index 0000000000..d80a4d6ce5
--- /dev/null
+++ b/L2J_DataPack_BETA/dist/sql/game/updates/20121224update.sql
@@ -0,0 +1 @@
+UPDATE character_quests SET name='Q00643_RiseAndFallOfTheElrokiTribe' WHERE name='643_RiseandFalloftheElrokiTribe';
\ No newline at end of file
-- 
GitLab