This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Ah, my young adventurer... So, did you have a look around this Primeval Isle? As you probably know already, there are many unique creatures on this island. There is also an ancient race of men, the Elroki tribe. Though they may seem primitive to your eyes in some respects, do not underestimate them! Theirs is a culture rich in history and tradition, and they have skills unknown to more "civilized" races. How else could they have survived all these years surrounded by these vicious dinosaurs?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-02.htm">Ask how the Elrokhians manage the dinosaurs.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Marquez:<br>
Once, I accompanied the Elrokians on a dinosaur hunt... It was a remarkable experience!<br>The Elrokhians first weaken the creatures by wielding a strange-looking device unique to their tribe. Are you by chance interested in learning the skill?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-03.html">Oh yes! I certainly wish to learn the skill.</a><br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-05.htm">No thank you, I'm really not interested in learning any "primitive" skills.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Ah, then you must seek out the leader of the Elroki tribe, Chief Mushika, who once explored with me. Tell him that I sent you and perhaps he will more readily accept you.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-04.html">"Where is the chief?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
The chief lives in the Elroki village on the southern Primeval Plains. His people shun outsiders, but you may have some luck if you first contact a native warrior I know, <font color = "LEVEL">Orahochin</font>, who lives near the foot of the mountain that lies between the southern shore of the Primeval Plains and the Lost Nest.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
Bah! Only the ignorant would think such a thing! Keep company with the dinosaurs themselves, then, for all I care! Fool!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Ah, my young adventurer... So, did you have a look around this Primeval Isle? As you probably know already, there are many unique creatures on this island. There is also an ancient race of men, the Elroki tribe. Though they may seem primitive to your eyes in some respects, do not underestimate them! Theirs is a culture rich in history and tradition, and they have skills unknown to more "civilized" races. How else could they have survived all these years surrounded by these vicious dinosaurs? We could learn much from them...<br>
(Only characters level 75 and above are permitted to take on this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Hurry, then, and visit Mushika, chief of the Elroki tribe.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-04.html">"Where is the chief?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Marquez:<br>
Is Mushika ill?<br>
Oh no... I am worried for him...<br>
His son, Asamah, is probably acting as chief on his behalf.<br>
Go talk to Asamah.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Did you meet Mushika? Did you discover something about the mysterious skill I told you about?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-10.html">"I think I have to get close to them in order to do anything. Can you tell me anything else?"</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Marquez:<br>
Hmmm, perhaps this will help you forge a bond with the Elrokians... During my explorations of the island, I was gravely wounded -- if not for Mushika, I would have died. He took me back to the Elrokian village, where I stayed while I recovered.<br>
During my time there, I heard of a song called the <font color = "LEVEL">"Warrior's Song"</font> that supposedly contains all the Elroki tribe's pride, pain and sadness. <br>
They sing this song in both victory and mourning.<br>
If you can learn the song and its meaning, perhaps you can earn the tribe's trust...<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-11.html">"Where can I learn the song?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Hmmm... A member of my expedition used to speak about an old Elrokian hunter friend of his who knew the song.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-12.html">"Where can I find that member of your expedition?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Marquez:<br>
Sadly, he was killed by a <font color = "LEVEL">Velociraptor</font> not long ago.<br>
...<br>
How unfortunate!<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-13.html">"I'm sorry to hear that, but isn't there another way? I don't want to give up just yet!"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Marquez:<br>
You know, now that I think of it, I remember that he kept a journal...<br>
Perhaps it will contain some clue.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-14.html">"Where is the journal?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Marquez:<br>
The <font color = "LEVEL">Velociraptor</font> destroyed his belongings at the time of the attack. Perhaps it carried away his journal as well...<br>
If you can defeat the <font color = "LEVEL">Velociraptor</font>, we may be able to get the journal back.<br>
Do you feel you could find his journal -- or whatever remains of it?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-15.html">"Yes!"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
Very good! Then head east to the <font color = "LEVEL">Lost Nest</font>. Hunt the <font color = "LEVEL">Velociraptor</font> and bring back the <font color = "LEVEL">journal pieces</font>. The journal is a total of <font color = "LEVEL">50 pages</font>. Good luck!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Go and defeat the <font color = "LEVEL">Velociraptor</font> and bring back the <font color = "LEVEL">50-page journal</font><br>. Travel east to the <font color = "LEVEL">Lost Nest</font> and I have no doubt that you will find the <font color = "LEVEL">Velociraptor</font>.<br>
Good hunting!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Good work! You've brought all the journal pieces!<br>Now I can return this to his family; perhaps it will comfort them to have a memento of my brave friend...<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-18.html">"What does the diary say about the Warrior's Song?"</a>
</body></html>

View File

@@ -0,0 +1,14 @@
<html><body>Marquez:<br>
Hmmm... Let's see here...<br><br>
-The contents of the journal-<br>
... (omitted)...<br>
There are many ferns here... It is too thick... There are dark places, too...<br>
....(omitted)...<br>
This place is full of dangerous and powerful creatures...<br>
These creatures are not described in any other books I have ever read... Today, 2 of our members were killed.<br>
...(omitted)...<br>
We are lost in the jungle.<br>
How will I return to the camp?<br>
...(omitted)...<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-19.html">Next page.</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Marquez:<br>
Is this to be our fate? Lost, pursued by these vicious creatures?<br>
...(omitted)...<br>
We were attacked by more strange creatures, smaller than the others we have seen. These new ones seem to hunt in packs! <br>
I have become separated from my group...<br>
Will I survive?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-20.html">Next page.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Marquez:<br>
I met a friend today.<br>
He looks just like the creatures living here but he walks upright and seems to possess intelligence.<br>
He used a strange skill to save my life, and he shared water and food with me.<br>
If it were not for him, I would not have been able to write these words.<br>He saved my life.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-21.html">Next several pages.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Marquez:<br>
(According to the journal, it seems like the writer of this diary spent about a year with the native who saved his life.) The native's name is <font color = "LEVEL">Kirikachin</font>. A skillful hunter, he is respected by all the natives.<br>
For some reason, however, <font color = "LEVEL">Kirikachin</font> cannot live in the native village or freely contact his people.<br>
(Was this the result of some sort of duty? Or was it some kind of punishment? It seems as though there is some story concerned with it.)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-22.html">Next several pages.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Marquez:<br>
(It looks like lonely Kirikachin and the writer of this diary became close friends during their time together, and shared much of their knowledge with each other. My friend taught Kirikachin the famous children's song of Aden, "10 Little Midgets" and learned the <font color="LEVEL">"Warrior Song"</font> from Kirikachin.<br>
One time, he even repaid his debt to Kirikachin by saving his life using a healing technique of Aden. It seems the two men became as close as brothers...)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-23.html">Next several pages.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
(Even after he was found by the expedition, he traveled back and forth to Kirikachin's camp. In fact, it seems like he stayed with Kirikachin more frequently than he did with his fellow explorers.)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-24.html">Final page.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
(The last page is so blood-stained and damaged that its words are illegible. But there appears to be something stuck between the pages: an envelope.)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-25.html">Remove the envelope.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Marquez:<br>
This is seems to be a letter that my friend wrote to the native.<br>
The diary itself, I must return to his family... <br>
But I think that this letter should be delivered to his native friend.<br>
Would you mind taking it with you, since you must seek out Kirikachin to learn the song?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Marquez:<br>
Good work! You've brought all the journal pieces!<br>Please take this as a small token of my appreciation.<br>Now I can give return this to his family.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-18.html">"Is there anything about warrior song in the journal?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
Go meet Kirikachin and give him this letter.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
So you met Kirikachin? Then learn the "Warrior Song"!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
You've already learned the song? Good! Then go directly to Chief Mushika!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Marquez:<br>
That song earned you their friendship? Congratulations! I hope you learn many things from them...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Mushika:<br>
Uhh, Ma...(coughing)...Marquez sent you?<br>
Um...um... (coughing)... Forgive me, I am so very weak... Please speak with my son Asamah...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Mushika:<br>
Uhhh...(coughing)... Please, speak with my son Asamah...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Mushika:<br>
Ah, you understand us very well, almost as if you were one of us...(coughing)... What...(coughing)...do you...need...(coughing)...I'm sorry, I fear I am too weak to speak more... Please talk to my son, Asamah...
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Asamah:<br>
Are you looking for my father, Chief Mushika?<br>
He is very ill, and you may have a difficult time understanding him. But I suppose there is no harm in trying.<br>
For myself, I am forbidden from speaking with outsiders unless my father so orders it.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Asamah:<br>
Marquez sent you?<br>
Why?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32115-03.html">"I would like to learn the mysterious skill of the Elroki for controlling dinosaurs."</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Asamah:<br>
How would you know about that skill?<br>
Hmm... I assume Marquez probably told you about it.<br>
I'm sorry, but the skill can only be taught to members of our tribe. It is forbidden to teach it to outsiders.<br>
If you understood our tribe better, as Marquez does, it might be a different matter...<br>
(It seems you must return to Marquez and ask him for advice on how to best interact with the Elroki tribe.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Asamah:<br>
I cannot speak about those skills unless you are one of us or have proven yourself a worthy friend of the Elroki tribe!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Asamah:<br>
Stubborn, aren't you? I still have nothing to say to you about those skills!<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32115-06.html">Sing despite Asamah's hostility.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Asamah:<br>
This...this...song!!! The surrounding Elrokians perk up and suddenly begin singing together.<br>
(When the excitement dies down, you'll have to face them.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Asamah:<br>
Where did you learn this song?<br>
It seems like you not only know the melody of it, but that you also understand the spirit and meaning of the song.<br>
When I hear you sing, in fact, it's plain to me that you understand!<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32115-08.html">Explain how you learned about Kirikachin and an outsider's friendship.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Asamah:<br>
Oh, that's what happened... I am truly sorry about Kirikachin's friend.<br>
On a happier note... by understanding that song you have shown yourself a true friend of the Elroki tribe.<br>
How can we help you further my friend?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32115-09.html">"I want to learn the mysterious skill the Elroki possess for controlling dinosaurs."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Asamah:<br>
Ah, I see -- you need a tool to use the skill.<br>
I can make the tool you need if you can bring me the right materials.<br>
The materials I will require are <font color = "LEVEL">10 Ornithomimus claws, 10 Deinonychus bones, and 10 Pachycephalosaurus skins</font>.<br>
Good luck!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Asamah:<br>
The materials I need are<font color = "LEVEL">10 Ornithomimus claws, 10 Deinonychus bones, and 10 Pachycephalosaurus skins</font>.<br>
Go and bring me those items!
</body></html>

View File

@@ -0,0 +1,12 @@
<html><body>Asamah:<br>
Excellent, you have brought all the necessary materials.<br>
Now I ask for your patience while I work.<br>
This one like this...<br>
And this one, like this...<br>
Then combine all these..<br>
Whew!<br>
Here it is...finished at last.<br>
Take this to Kirikachin, and he will teach you the skill.<br>
Be sure to tell him that I sent you.<br>
Good luck in your studies!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Asamah:<br>
Has Kirikachin taught you well? The skill is not easy to master, of that there can be no doubt. But I have faith in you!
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Kirikachin:<br>
Oh, outsider... Are there any of your race who know me, Kirikachin?<br>
...<br>
...<br>
Hmmm... No? You do not know? Then mind your own business!<br>
I am on an important mission and cannot be delayed!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Kirikachin:<br>
Oh, outsider... Are there any of your race who know me, Kirikachin? I once had a friend in one such as you, but I can no longer locate him. Have you news of his whereabouts?<br>
(Give him the letter.)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32116-03.html">"Unfortunately, he was killed by a Velociraptor."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kirikachin:<br>
(As he reads the letter, Kirikachin's hands begin to shake and tears fall onto the page. He sobs softly.)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32116-04.html">Put your hand on his shoulder to comfort him.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kirikachin:<br>
(Before you can put your hand on his shoulder, Kirikachin suddenly lifts his head and begins to sing. You've never heard this song before, but it is so sad and moving that it brings tears to your eyes.)<br>
Talk to Kirikachin again when he has finished singing.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Kirikachin:<br>
(As he reads the letter, Kirikachin's hands begin to shake and tears fall onto the page. He sobs softly.)<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32116-04.html">Put your hand on his shoulder to comfort him.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Kirikachin:<br>
My heart is saddened, but I know he has gone to his rightful reward. My thanks to you for bringing me this letter -- now I know the truth, and that is some comfort.<br>
How can I repay you for your trouble?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32116-07.html">"Please teach me the song that you just sang."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kirikachin:<br>
(Kirikachin tells you about the origin and meaning of the song, and the sad fate that has befallen the Elroki tribe whose mighty warriors once sang the song.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Kirikachin:<br>
Ah! Thank you for your kindness. Please, outsider, find a place of safety -- these lands are filled with peril, especially for one such as yourself!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Kirikachin:<br>
What do you need? Ah, you wish to learn a skill? This is not something that just anyone can learn...<br>
And you are an outsider, after all...<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32116-10.html">"The chief has given me permission. (Hand him the practice trap that Asamah made.)</a>
</body></html>

View File

@@ -0,0 +1,14 @@
<html><body>Kirikachin:<br>
Ah, the practice device needed to learn this skill! Only Asamah could have made it; clearly he has accepted your hand in friendship, though you are an outsider.<br>
I'll teach you; listen carefully.<br>
When you have the trap in your hand, you can use 3 types of skills.<br>
You can only use capture skill on the powerful dinosaur, <font color="LEVEL">Tyrannosaurus</font>. You must use <font color="LEVEL">Kabokula,</font> the first among the 3 skills, to put the dinosaur in a captive state.<br>
To maintain that captive state, however, you must use the appropriate skill for counteracting one of the Tyrannosaurus' 3 kinds of reactions. You will learn when to use which skill through experience.<br>
Whenever you use the 3 types of skills, you will consume a capture stone; therefore, you should prepare enough capture stones for your task.<br>
Now I have told you everything I know...<br>
Your practice device is now useless, so I will take it...<br>
In its place, take this real device and these capture stones. After you have used all the capture stones, buy more from <font color = "LEVEL">Asamah</font>.<br>
If you lose the device, you may buy another from Asamah -- but take care not to lose it, outsider!<br>
May it bring you success in battle and glory in the annals of our tribe!<br>
May Shilen guide your hand!
</body></html>

View File

@@ -0,0 +1,479 @@
/*
* Copyright (C) 2004-2014 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.Q00111_ElrokianHuntersProof;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.holders.ItemChanceHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Elrokian Hunter's Proof (111)
* @author Adry_85
*/
public final class Q00111_ElrokianHuntersProof extends Quest
{
// NPCs
private static final int MARQUEZ = 32113;
private static final int MUSHIKA = 32114;
private static final int ASAMAH = 32115;
private static final int KIRIKACHIN = 32116;
// Items
private static final int ELROKIAN_TRAP = 8763;
private static final int TRAP_STONE = 8764;
private static final int DIARY_FRAGMENT = 8768;
private static final int EXPEDITION_MEMBERS_LETTER = 8769;
private static final int ORNITHOMINUS_CLAW = 8770;
private static final int DEINONYCHUS_BONE = 8771;
private static final int PACHYCEPHALOSAURUS_SKIN = 8772;
private static final int PRACTICE_ELROKIAN_TRAP = 8773;
// Misc
private static final int MIN_LEVEL = 75;
// Mobs
private static final Map<Integer, ItemChanceHolder> MOBS_DROP_CHANCES = new HashMap<>();
static
{
MOBS_DROP_CHANCES.put(22196, new ItemChanceHolder(DIARY_FRAGMENT, 0.51, 4)); // velociraptor_leader
MOBS_DROP_CHANCES.put(22197, new ItemChanceHolder(DIARY_FRAGMENT, 0.51, 4)); // velociraptor
MOBS_DROP_CHANCES.put(22198, new ItemChanceHolder(DIARY_FRAGMENT, 0.51, 4)); // velociraptor_s
MOBS_DROP_CHANCES.put(22218, new ItemChanceHolder(DIARY_FRAGMENT, 0.25, 4)); // velociraptor_n
MOBS_DROP_CHANCES.put(22223, new ItemChanceHolder(DIARY_FRAGMENT, 0.26, 4)); // velociraptor_leader2
MOBS_DROP_CHANCES.put(22200, new ItemChanceHolder(ORNITHOMINUS_CLAW, 0.66, 11)); // ornithomimus_leader
MOBS_DROP_CHANCES.put(22201, new ItemChanceHolder(ORNITHOMINUS_CLAW, 0.33, 11)); // ornithomimus
MOBS_DROP_CHANCES.put(22202, new ItemChanceHolder(ORNITHOMINUS_CLAW, 0.66, 11)); // ornithomimus_s
MOBS_DROP_CHANCES.put(22219, new ItemChanceHolder(ORNITHOMINUS_CLAW, 0.33, 11)); // ornithomimus_n
MOBS_DROP_CHANCES.put(22224, new ItemChanceHolder(ORNITHOMINUS_CLAW, 0.33, 11)); // ornithomimus_leader2
MOBS_DROP_CHANCES.put(22203, new ItemChanceHolder(DEINONYCHUS_BONE, 0.65, 11)); // deinonychus_leader
MOBS_DROP_CHANCES.put(22204, new ItemChanceHolder(DEINONYCHUS_BONE, 0.32, 11)); // deinonychus
MOBS_DROP_CHANCES.put(22205, new ItemChanceHolder(DEINONYCHUS_BONE, 0.66, 11)); // deinonychus_s
MOBS_DROP_CHANCES.put(22220, new ItemChanceHolder(DEINONYCHUS_BONE, 0.32, 11)); // deinonychus_n
MOBS_DROP_CHANCES.put(22225, new ItemChanceHolder(DEINONYCHUS_BONE, 0.32, 11)); // deinonychus_leader2
MOBS_DROP_CHANCES.put(22208, new ItemChanceHolder(PACHYCEPHALOSAURUS_SKIN, 0.50, 11)); // pachycephalosaurus_ldr
MOBS_DROP_CHANCES.put(22209, new ItemChanceHolder(PACHYCEPHALOSAURUS_SKIN, 0.50, 11)); // pachycephalosaurus
MOBS_DROP_CHANCES.put(22210, new ItemChanceHolder(PACHYCEPHALOSAURUS_SKIN, 0.50, 11)); // pachycephalosaurus_s
MOBS_DROP_CHANCES.put(22221, new ItemChanceHolder(PACHYCEPHALOSAURUS_SKIN, 0.49, 11)); // pachycephalosaurus_n
MOBS_DROP_CHANCES.put(22226, new ItemChanceHolder(PACHYCEPHALOSAURUS_SKIN, 0.50, 11)); // pachycephalosaurus_ldr2
}
public Q00111_ElrokianHuntersProof()
{
super(111, Q00111_ElrokianHuntersProof.class.getSimpleName(), "Elrokian Hunter's Proof");
addStartNpc(MARQUEZ);
addTalkId(MARQUEZ, MUSHIKA, ASAMAH, KIRIKACHIN);
addKillId(MOBS_DROP_CHANCES.keySet());
registerQuestItems(DIARY_FRAGMENT, EXPEDITION_MEMBERS_LETTER, ORNITHOMINUS_CLAW, DEINONYCHUS_BONE, PACHYCEPHALOSAURUS_SKIN, PRACTICE_ELROKIAN_TRAP);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "32113-02.htm":
case "32113-05.htm":
case "32113-04.html":
case "32113-10.html":
case "32113-11.html":
case "32113-12.html":
case "32113-13.html":
case "32113-14.html":
case "32113-18.html":
case "32113-19.html":
case "32113-20.html":
case "32113-21.html":
case "32113-22.html":
case "32113-23.html":
case "32113-24.html":
case "32115-08.html":
case "32116-03.html":
{
htmltext = event;
break;
}
case "32113-03.html":
{
qs.startQuest();
qs.setMemoState(1);
htmltext = event;
break;
}
case "32113-15.html":
{
if (qs.isMemoState(3))
{
qs.setMemoState(4);
qs.setCond(4, true);
htmltext = event;
}
break;
}
case "32113-25.html":
{
if (qs.isMemoState(5))
{
qs.setMemoState(6);
qs.setCond(6, true);
giveItems(player, EXPEDITION_MEMBERS_LETTER, 1);
htmltext = event;
}
break;
}
case "32115-03.html":
{
if (qs.isMemoState(2))
{
qs.setMemoState(3);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "32115-06.html":
{
if (qs.isMemoState(9))
{
qs.setMemoState(10);
qs.setCond(9);
playSound(player, QuestSound.ETCSOUND_ELROKI_SONG_FULL);
htmltext = event;
}
break;
}
case "32115-09.html":
{
if (qs.isMemoState(10))
{
qs.setMemoState(11);
qs.setCond(10, true);
htmltext = event;
}
break;
}
case "32116-04.html":
{
if (qs.isMemoState(7))
{
qs.setMemoState(8);
playSound(player, QuestSound.ETCSOUND_ELROKI_SONG_FULL);
htmltext = event;
}
break;
}
case "32116-07.html":
{
if (qs.isMemoState(8))
{
qs.setMemoState(9);
qs.setCond(8, true);
htmltext = event;
}
break;
}
case "32116-10.html":
{
if (qs.isMemoState(12) && hasQuestItems(player, PRACTICE_ELROKIAN_TRAP))
{
takeItems(player, PRACTICE_ELROKIAN_TRAP, -1);
giveItems(player, ELROKIAN_TRAP, 1);
giveItems(player, TRAP_STONE, 100);
giveAdena(player, 1071691, true);
addExpAndSp(player, 553524, 55538);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(player, -1, 3, npc);
if (qs != null)
{
final ItemChanceHolder item = MOBS_DROP_CHANCES.get(npc.getId());
if (item.getCount() == qs.getMemoState())
{
if (qs.isCond(4))
{
if (giveItemRandomly(qs.getPlayer(), npc, item.getId(), 1, 50, item.getChance(), true))
{
qs.setCond(5);
}
}
else if (qs.isCond(10))
{
if (giveItemRandomly(qs.getPlayer(), npc, item.getId(), 1, 10, item.getChance(), true) //
&& (getQuestItemsCount(qs.getPlayer(), ORNITHOMINUS_CLAW) >= 10) //
&& (getQuestItemsCount(qs.getPlayer(), DEINONYCHUS_BONE) >= 10) //
&& (getQuestItemsCount(qs.getPlayer(), PACHYCEPHALOSAURUS_SKIN) >= 10))
{
qs.setCond(11);
}
}
}
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs == null)
{
return htmltext;
}
switch (qs.getState())
{
case State.COMPLETED:
{
if (npc.getId() == MARQUEZ)
{
htmltext = getAlreadyCompletedMsg(player);
}
break;
}
case State.CREATED:
{
if (npc.getId() == MARQUEZ)
{
htmltext = ((player.getLevel() >= MIN_LEVEL) ? "32113-01.htm" : "32113-06.html");
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case MARQUEZ:
{
switch (qs.getMemoState())
{
case 1:
{
htmltext = "32113-07.html";
break;
}
case 2:
{
htmltext = "32113-08.html";
break;
}
case 3:
{
htmltext = "32113-09.html";
break;
}
case 4:
{
if (getQuestItemsCount(player, DIARY_FRAGMENT) < 50)
{
htmltext = "32113-16.html";
}
else
{
takeItems(player, DIARY_FRAGMENT, -1);
qs.setMemoState(5);
htmltext = "32113-17.html";
}
break;
}
case 5:
{
htmltext = "32113-26.html";
break;
}
case 6:
{
htmltext = "32113-27.html";
break;
}
case 7:
case 8:
{
htmltext = "32113-28.html";
break;
}
case 9:
{
htmltext = "32113-29.html";
break;
}
case 10:
case 11:
case 12:
{
htmltext = "32113-30.html";
break;
}
}
break;
}
case MUSHIKA:
{
if (qs.isMemoState(1))
{
qs.setCond(2, true);
qs.setMemoState(2);
htmltext = "32114-01.html";
}
else if ((qs.getMemoState() > 1) && (qs.getMemoState() < 10))
{
htmltext = "32114-02.html";
}
else
{
htmltext = "32114-03.html";
}
break;
}
case ASAMAH:
{
switch (qs.getMemoState())
{
case 1:
{
htmltext = "32115-01.html";
break;
}
case 2:
{
htmltext = "32115-02.html";
break;
}
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
{
htmltext = "32115-04.html";
break;
}
case 9:
{
htmltext = "32115-05.html";
break;
}
case 10:
{
htmltext = "32115-07.html";
break;
}
case 11:
{
if ((getQuestItemsCount(player, ORNITHOMINUS_CLAW) < 10) || (getQuestItemsCount(player, DEINONYCHUS_BONE) < 10) || (getQuestItemsCount(player, PACHYCEPHALOSAURUS_SKIN) < 10))
{
htmltext = "32115-10.html";
}
else
{
qs.setMemoState(12);
qs.setCond(12, true);
giveItems(player, PRACTICE_ELROKIAN_TRAP, 1);
takeItems(player, ORNITHOMINUS_CLAW, -1);
takeItems(player, DEINONYCHUS_BONE, -1);
takeItems(player, PACHYCEPHALOSAURUS_SKIN, -1);
htmltext = "32115-11.html";
}
break;
}
case 12:
{
htmltext = "32115-12.html";
break;
}
}
break;
}
case KIRIKACHIN:
{
switch (qs.getMemoState())
{
case 1:
case 2:
case 3:
case 4:
case 5:
{
htmltext = "32116-01.html";
break;
}
case 6:
{
if (hasQuestItems(player, EXPEDITION_MEMBERS_LETTER))
{
qs.setMemoState(7);
qs.setCond(7, true);
takeItems(player, EXPEDITION_MEMBERS_LETTER, -1);
htmltext = "32116-02.html";
}
break;
}
case 7:
{
htmltext = "32116-05.html";
break;
}
case 8:
{
htmltext = "32116-06.html";
break;
}
case 9:
case 10:
case 11:
{
htmltext = "32116-08.html";
break;
}
case 12:
{
htmltext = "32116-09.html";
break;
}
}
break;
}
}
break;
}
}
return htmltext;
}
}