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>Dinn:<br>
Oh, a dangerous island like this is no place for someone like you! If you value your life, leave at once!<br>
(Only characters who are level 75 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dinn:<br>
Oh, I haven't seen an outsider on this dangerous and remote island in ages. You've come to find the truth behind all the rumors, haven't you?<br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-03.htm">"What rumors are you talking about?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dinn:<br>
This island was only just discovered, and it's already clear that it's unlike anywhere else. There are enormous, vicious creatures who live here.<br>
Of course, there are people who are curious to find out more...<br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-04.htm">Ask about those people and their interest.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dinn:<br>
Some of the Wizards call those creatures "dinosaurs." They weren't created by any of the known gods of Aden.<br>
The Wizards are curious about where they came from.<br>
Also, artisans from all over are very interested in using these powerful creatures as the basis for new weaponry and machines.<br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-05.html">Say you would like to help.</a><br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-06.htm">Say you are not interested.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dinn:<br>
Good! I know that both the Wizards and Dwarven artisans will welcome your help. This place is far too dangerous for ordinary researchers!<br>
On to business, then. We need eggs and tissue samples from <font color="LEVEL">Pterosaurs, Tyrannosauruses and Velociraptors</font>.<br>
Just so you know, <font color="LEVEL">1 Dinosaur Egg</font> and 150 Dinosaur Tissues can be processed as a set.<br>
You can find dinosaur eggs by searching near a dinosaur's lair. But once you touch one, <font color="LEVEL">any dinosaurs nearby will rush back to protect the egg</font>!<br>
We will reward you for whatever you bring back. If you'd like to see a list of reward options, just say <font color="LEVEL">"I want to look at other items."</font> Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
What, did I say something? Forgive me -- you seem preoccupied with your own affairs. Please go on about your own business.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dinn:<br>
Many people are depending on you!<br>
We need eggs and tissue samples from <font color="LEVEL">Pterosaurs, Tyrannosauruses and Velociraptors</font>.<br>
Just so you know, <font color="LEVEL">1 Dinosaur Egg</font> and 150 Dinosaur Tissues can be processed as a set.<br>
You can find dinosaur eggs by searching near a dinosaur's lair. But once you touch one, <font color="LEVEL">any dinosaurs nearby will rush back to protect the egg</font>!<br>
We will reward you for whatever you bring back. If you'd like to see a list of reward options, just say <font color="LEVEL">"I want to look at other items."</font> Go out and get as much as you can!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Dinn:<br>
Oh! you have gathered them. Everyone will be pleased.<br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-09.html">Calculate the price of the dinosaur tissues. (5000 adena each)</a><br>
<a action="bypass -h npc_%objectId%_multisell 2011">Exchange for an A-grade and Dynasty Weapon recipe.</a><br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-10.html">Stop.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dinn:<br>
Thank you. Your efforts have greatly aided our research, and I hope our efforts will allow many others to visit this island. Please accept this small token of our appreciation. Could I convince you to continue working on our behalf?<br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature 32105-12.html">Tell him you will.</a><br>
<a action="bypass -h Quest Q00642_APowerfulPrimevalCreature exit">Tell him you are quitting.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Adventurer, choose wisely how you will use what you have earned...
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dinn:<br>
Thanks you!<br>
Then keep hunting <font color="LEVEL">Pterosaurs, Tyrannosauruses and Velociraptors</font> and collect samples of their tissues.<br>
Just so you know, <font color="LEVEL">1 Dinosaur Egg</font> and 150 Dinosaur Tissues can be processed as a set.<br>
You can find dinosaur eggs by searching near a dinosaur's lair. But once you touch one, <font color="LEVEL">any dinosaurs nearby will rush back to protect the egg</font>!<br>
Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Ah, I see you are off to another adventure! Thank you so much for helping us. We can handle the rest, I think. I wish you safe travel and good fortune!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Ah, ready for other adventures, eh? Well, thank you very much for your help. I wish you a safe and prosperous journey!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
You don't have any dinosaur tissue here! Hunt <font color = "LEVEL">Pterosaurs, Tyrannosauruses and Velociraptors</font> and gather samples of their tissue.
</body></html>

View File

@@ -0,0 +1,163 @@
/*
* 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.Q00642_APowerfulPrimevalCreature;
import java.util.HashMap;
import java.util.Map;
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;
/**
* A Powerful Primeval Creature (642)
* @author Adry_85
*/
public class Q00642_APowerfulPrimevalCreature extends Quest
{
// NPC
private static final int DINN = 32105;
// Items
private static final int DINOSAUR_TISSUE = 8774;
private static final int DINOSAUR_EGG = 8775;
// Misc
private static final int MIN_LEVEL = 75;
// Mobs
private static final int ANCIENT_EGG = 18344;
private static final Map<Integer, Double> MOBS_TISSUE = new HashMap<>();
static
{
MOBS_TISSUE.put(22196, 0.309); // Velociraptor
MOBS_TISSUE.put(22197, 0.309); // Velociraptor
MOBS_TISSUE.put(22198, 0.309); // Velociraptor
MOBS_TISSUE.put(22199, 0.309); // Pterosaur
MOBS_TISSUE.put(22215, 0.988); // Tyrannosaurus
MOBS_TISSUE.put(22216, 0.988); // Tyrannosaurus
MOBS_TISSUE.put(22217, 0.988); // Tyrannosaurus
MOBS_TISSUE.put(22218, 0.309); // Velociraptor
MOBS_TISSUE.put(22223, 0.309); // Velociraptor
}
public Q00642_APowerfulPrimevalCreature()
{
super(642, Q00642_APowerfulPrimevalCreature.class.getSimpleName(), "A Powerful Primeval Creature");
addStartNpc(DINN);
addTalkId(DINN);
addKillId(ANCIENT_EGG);
addKillId(MOBS_TISSUE.keySet());
registerQuestItems(DINOSAUR_TISSUE, DINOSAUR_EGG);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "32105-05.html":
{
qs.startQuest();
break;
}
case "32105-06.htm":
{
qs.exitQuest(true);
break;
}
case "32105-09.html":
{
if (hasQuestItems(player, DINOSAUR_TISSUE))
{
giveAdena(player, 5000 * getQuestItemsCount(player, DINOSAUR_TISSUE), true);
takeItems(player, DINOSAUR_TISSUE, -1);
}
else
{
htmltext = "32105-14.html";
}
break;
}
case "exit":
{
if (hasQuestItems(player, DINOSAUR_TISSUE))
{
giveAdena(player, 5000 * getQuestItemsCount(player, DINOSAUR_TISSUE), true);
qs.exitQuest(true, true);
htmltext = "32105-12.html";
}
else
{
qs.exitQuest(true, true);
htmltext = "32105-13.html";
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if (qs == null)
{
return null;
}
int npcId = npc.getId();
if (MOBS_TISSUE.containsKey(npcId))
{
giveItemRandomly(qs.getPlayer(), npc, DINOSAUR_TISSUE, 1, 0, MOBS_TISSUE.get(npcId), true);
}
else
{
giveItemRandomly(qs.getPlayer(), npc, DINOSAUR_EGG, 1, 0, 1.0, true);
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isCreated())
{
htmltext = player.getLevel() < MIN_LEVEL ? "32105-01.htm" : "32105-02.htm";
}
else if (qs.isStarted())
{
htmltext = (hasAtLeastOneQuestItem(player, DINOSAUR_TISSUE, DINOSAUR_EGG)) ? "32105-08.html" : "32105-07.html";
}
return htmltext;
}
}