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,5 @@
<html><body>Dinn:<br>
Hey, you there -- Sir Adventurer! May I speak to you for a moment?<br>Have you heard of the Elrokian brigands hiding in the Primeval Plains? The wharf merchants and I are beset by them.<br>
Sales haven't been good, and since those thieves don't look like they'll go away any time soon on their own, it's been as bad a time around here as I can remember.<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-02.htm">Find out more details.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Dinn:<br>
At first, they stole only small items. But success has made them bold, and lately they have organized themselves into armed groups that raid even in broad daylight.<br>
The merchants on the wharf are understandably on edge. Despite standing constant watch over their wares, they have not the skill or weaponry to defend themselves against such formidable adversaries.<br>
But you, my fine young adventurer, you look like you might have a chance. Please, please help us. Eliminate these Elrokian brigands and we will reward you as richly as we can!<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-03.html">Pledge your services to catch the thieves.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Gods be praised! Now that I know that you are willing to help us, I finally feel like I'll be able to sleep soundly tonight.<br>According to a trustworthy source, the Elrokian thieves who raid our wharf all wear necklaces that contain a <font color="LEVEL">dinosaur fang pendant</font>. Bring me those necklaces as proof that you have captured them; I'll reward you based on the number of necklaces you bring. If you bring back more than 100 necklaces, I can also give you the donations collected from the merchants here.<br>Please, whatever it takes, rid us of these troublesome thieves! As long as you bring me their necklaces, I'll make sure that you are well compensated for your time.<br>The Elrokian raiders have set up camp in the <font color="LEVEL">Primeval Plains</font>. Travel south along this road, and I'm certain that you'll find them.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
The weather is hot, and evil abounds... These are troubled days, I can assure you! Ah, I wish you could help us, my friend, but to my eye you are still too inexperienced for this kind of fight. Oh, that you were but a few seasons older! Well, we will simply have to persevere as best we know how...<br>(Only characters level 75 and above may take on this quest.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dinn:<br>
Eh? You caught them? Ah, it finally feels like a weight has been lifted! First of all, let me offer you a reward equal to the number of necklaces you've brought. If you have more than 100 necklaces, I can also give you a bounty collected by our local merchants.<br>Truth be told, I was prepared to offer the reward money myself, but when our merchants caught wind of your efforts, they insisted on contributing funds to the cause themselves. A noble act on their part, I dare say!<br>It is entirely your choice whether to collect the per necklace bounty or accept the merchant's donation.<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-06.html">Take the per necklace bounty.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders donation">Take the merchants' donation.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dinn:<br>
My utmost thanks! Since you've already made a good start of it, how about trying your hand at catching even more thieves? I assure you, we'll never forget such a great service!<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Agree to catch more thieves.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Quit.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Hmm... By my count, these necklaces are short of the 100 mark. Thanks for your efforts, but I have sworn that I would not accept any donation less than that total.<br>Even good intentions should be governed by some rules to prevent potential problems in the future. If you could acquire some more necklaces to bring the total to 100, we would truly be in your debt.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dinn:<br>
You have done a fantastic job! I know how difficult it must have been to collect 100 necklaces, and here you are donating them with no strings attached. I can't tell you how grateful we are!<br>
Here, please take this reward. It's miniscule compared to all you've done for us, but this is the best we can do, and please know it comes from the bottom of our hearts.<br>
Word has reached me that there are still many Elrokian raiders in the Primeval Plains, and their numbers are increasing. What do you think? Now that you've gained some experience, would you like to keep catching the thieves?<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Continue to capture the Elrokian raiders.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Collect the balance of your reward and quit.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dinn:<br>
Please accept my apologies -- the amount of money we've managed to scrape together is far too small compared to what you've done for us. But we have few merchants, and many of them have been robbed by thieves. I blush to say it, but this is really the best we can do...<br>
I know you have no expectation of payment, but we wanted to do something to show our gratitude. Since the amount is miniscule, I added some to it myself. Please accept this.<br>
Were a hardy adventurer like yourself to keep capturing the raiders, I'm sure that our merchants' situation would dramatically improve... What do you say? Will you continue your efforts on our behalf?<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Continue to capture the Elrokian raiders.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Collect the balance of your reward and quit.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Then travel to the <font color="LEVEL">Primeval Plains</font> and defeat the <font color="LEVEL">Elrokian</font> assault force. Collect their necklaces as proof of your victory. Remember: the more necklaces you bring back to me, the better for all of us.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dinn:<br>
Very well, then. I am saddened that you have chosen not to continue. If you change your mind, please don't hesitate to return!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dinn:<br>
Did you happen to lose the necklaces on the way back here? Or did you fail to actually catch any thieves? No matter what happened, if you don't have a <font color="LEVEL">dinosaur fang pendant</font>, I cannot justify rewarding you. Let me make a suggestion: travel south along this road to the Primeval Plains. I'm confident that you'll have no trouble encountering thieves that way!<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Continue to catch thieves.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Quit.</a>
</body></html>

View File

@@ -0,0 +1,168 @@
/*
* 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.Q00688_DefeatTheElrokianRaiders;
import com.l2jserver.Config;
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.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Defeat the Elrokian Raiders! (688)
* @author Adry_85
*/
public class Q00688_DefeatTheElrokianRaiders extends Quest
{
// NPCs
private static final int ELROKI = 22214;
private static final int DINN = 32105;
// Item
private static final int DINOSAUR_FANG_NECKLACE = 8785;
// Misc
private static final int MIN_LEVEL = 75;
private static final int DROP_RATE = 448;
public Q00688_DefeatTheElrokianRaiders()
{
super(688, Q00688_DefeatTheElrokianRaiders.class.getSimpleName(), "Defeat the Elrokian Raiders!");
addStartNpc(DINN);
addTalkId(DINN);
addKillId(ELROKI);
registerQuestItems(DINOSAUR_FANG_NECKLACE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "32105-02.htm":
case "32105-10.html":
{
htmltext = event;
break;
}
case "32105-03.html":
{
st.startQuest();
htmltext = event;
break;
}
case "32105-06.html":
{
if (st.hasQuestItems(DINOSAUR_FANG_NECKLACE))
{
st.giveAdena(3000 * st.getQuestItemsCount(DINOSAUR_FANG_NECKLACE), true);
st.takeItems(DINOSAUR_FANG_NECKLACE, -1);
htmltext = event;
}
break;
}
case "donation":
{
if (st.getQuestItemsCount(DINOSAUR_FANG_NECKLACE) < 100)
{
htmltext = "32105-07.html";
}
else
{
if (getRandom(1000) < 500)
{
st.giveAdena(450000, true);
htmltext = "32105-08.html";
}
else
{
st.giveAdena(150000, true);
htmltext = "32105-09.html";
}
st.takeItems(DINOSAUR_FANG_NECKLACE, 100);
}
break;
}
case "32105-11.html":
{
if (st.hasQuestItems(DINOSAUR_FANG_NECKLACE))
{
st.giveAdena(3000 * st.getQuestItemsCount(DINOSAUR_FANG_NECKLACE), true);
}
st.exitQuest(true, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
if (partyMember == null)
{
return super.onKill(npc, player, isSummon);
}
final QuestState st = getQuestState(partyMember, false);
float chance = (DROP_RATE * Config.RATE_QUEST_DROP);
if (getRandom(1000) < chance)
{
st.rewardItems(DINOSAUR_FANG_NECKLACE, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32105-01.htm" : "32105-04.html";
break;
}
case State.STARTED:
{
htmltext = (st.hasQuestItems(DINOSAUR_FANG_NECKLACE)) ? "32105-05.html" : "32105-12.html";
break;
}
}
return htmltext;
}
}