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>Warehouse Keeper Silva:<br>
I'm sorry, customer. I am so busy with the work Sorint tasked me with that I don't have any time to talk about a contract right now. Will you come see me again? (Hmph! I don't have time for lowly 2nd class adventurers!)<br>
(Only characters who are level 47 or higher may undertake this quest.)
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Silva:<br>
Hey, are you perhaps an adventurer? If so, would you come here for a minute?<br>
Let me tell you about a new credit loan service introduced by the Iron Gate Guild. It's a great opportunity for you to receive various benefits. Come this way and I'll tell you more...<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-03.htm">Listen</a>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Silva:<br>
Shh! Keep your voice down! We don't want old man Sorint to hear this...<br>
OK, let's talk. Sorry, that talk about a loan service wasn't true -- I needed to get you alone without anyone getting suspicious. The truth is that I need to hire an adventurer like you... I need a partner for a...private business...<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-04.htm">"What kind of business?"</a>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Silva:<br>
What kind of business? Eh... Well, I suppose there's no reason why I shouldn't talk to you about this.<br>
The warehouse chief over there has announced that he plans to retire next year. Either old man Sorint or I will succeed him -- he will choose the one who makes the most profit running a side business between now and next year.<br>
My chance has come at last! I'm tired of toiling away here when I should be in charge, and I'll be darned if I'm passed over for that incompetent fool Sorint.<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-05.htm">"Hey, be careful! Sorint might hear you..."</a>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Warehouse Keeper Silva:<br>
Oh! Yes, I got a little too excited there!<br>
Ah... Mr. Sorint, I was just speaking with this customer. Nothing to worry about, sir!<br>
Oh! What a stupid old man... Anyway, what I need from you is very simple: <font color="LEVEL">Jade</font>. It's become very popular for jewelry among Aden noblewomen these days! I will reward you for any Jades you bring me. <font color="LEVEL">Bring more than 100 at once and I'll give you an additional bonus.</font> How about it? Simple, eh?<br>
To find Jades, go to the <font color="LEVEL">Enchanted Valley</font> and hunt <font color="LEVEL">Forest Runners, Fline Elders, Liele Elders, and Valley Treant Elders</font>. Got it?<br>
That's a dangerous place these days, so you should probably <font color="LEVEL">recruit a few trusted friends to help. Not too many! But don't try to go alone, OK?</font>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Warehouse Keeper Silva:<br>
Customer, please wait a minute! Yes, Mr. Sorint? Would you like a cup of tea? No? Then, customer, please come this way...<br>
Oh, that stupid old man is always absorbed in his coin collection. That's why he's so slow...<br>
Okay, did you bring some Jades? Wha...why are you here empty-handed? I already told you what to do! Go to the <font color="LEVEL">Enchanted Valley</font> and hunt <font color="LEVEL">Forest Runners, Fline Elders, Liele Elders, and Valley Treant Elders</font>.<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-10.html">Keep hunting.</a><br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-11.html">Say you want to quit.</a>
</body></html>

View File

@ -0,0 +1,8 @@
<html><body>Warehouse Keeper Silva:<br>
Customer, please wait a minute! Yes, Mr. Sorint? Would you like a cup of tea? No? Then, customer, please come this way...<br>
Oh, that stupid old man is always absorbed in his coin collection. That's why he's so slow...<br>
Did you bring some Jades? Of course, you remember there is a bonus if you bring over 100 at once, right?<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-09.html">Receive reward.</a><br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-10.html">Keep hunting.</a><br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-11.html">Say you want to quit.</a>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Silva:<br>
Ah...! These are excellent quality. Well done! As I promised, I will reward you for the number of jades you've brought. That's fair, right?<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-10.html">Keep hunting.</a><br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-11.html">Say you want to quit.</a>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Silva:<br>
Oh..! You've brought so much! And the quality is excellent! Well done! Let me just calculate your payment based on the number of jades you brought -- since you brought more than 100, I will add the <font color="LEVEL">bonus</font> I promised as well.<br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-10.html">Keep hunting.</a><br>
<a action="bypass -h Quest Q00357_WarehouseKeepersAmbition 30686-11.html">Say you want to quit.</a>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Warehouse Keeper Silva:<br>
Of course, you remember there is a bonus for bringing in over 100 at once, right? OK, keep up the good work!<br>
What? Mr. Sorint, what did you say? You want me to massage your shoulder? Of course, sir! I'll be right there...
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Warehouse Keeper Silva:<br>
You want to quit? I can't believe it! You won't find a better opportunity than this, you know. Well, it doesn't matter. Adventurers like you are a dime a dozen.<br>
Oh! Sorint is calling me again. I can't take much more of this! Hey, listen, come back if you change your mind! OK?<br>
Mr. Sorint, did you call me? Yes, sir! I'll be right there...</body></html>

View File

@ -0,0 +1,149 @@
/*
* 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.Q00357_WarehouseKeepersAmbition;
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;
/**
* Warehouse Keeper's Ambition (357)
* @author Janiko, Pandragon
*/
public final class Q00357_WarehouseKeepersAmbition extends Quest
{
// NPC
private static final int SILVA = 30686;
// Item
private static final int JADE_CRYSTAL = 5867;
// Monsters
private final Map<Integer, Double> DROP_DATA = new HashMap<>();
{
DROP_DATA.put(20594, 0.577); // Forest Runner
DROP_DATA.put(20595, 0.6); // Fline Elder
DROP_DATA.put(20596, 0.638); // Liele Elder
DROP_DATA.put(20597, 0.062); // Valley Treant Elder
}
// Misc
private static final int MIN_LVL = 47;
public Q00357_WarehouseKeepersAmbition()
{
super(357, Q00357_WarehouseKeepersAmbition.class.getSimpleName(), "Warehouse Keeper's Ambition");
addStartNpc(SILVA);
addTalkId(SILVA);
addKillId(DROP_DATA.keySet());
registerQuestItems(JADE_CRYSTAL);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs != null)
{
switch (event)
{
case "30686-01.htm":
case "30686-03.htm":
case "30686-04.htm":
case "30686-10.html":
{
htmltext = event;
break;
}
case "30686-05.htm":
{
if (qs.isCreated())
{
qs.startQuest();
htmltext = event;
}
break;
}
case "30686-09.html":
{
final long crystalCount = getQuestItemsCount(player, JADE_CRYSTAL);
if (crystalCount > 0)
{
long adenaReward = crystalCount * 425;
if (crystalCount < 100)
{
adenaReward += 13500;
htmltext = "30686-08.html";
}
else
{
adenaReward += 40500;
htmltext = event;
}
giveAdena(player, adenaReward, true);
takeItems(player, JADE_CRYSTAL, -1);
}
break;
}
case "30686-11.html":
{
final long crystalCount = getQuestItemsCount(player, JADE_CRYSTAL);
if (crystalCount > 0)
{
giveAdena(player, (crystalCount * 425) + ((crystalCount >= 100) ? 40500 : 0), true);
takeItems(player, JADE_CRYSTAL, -1);
}
qs.exitQuest(true, true);
htmltext = event;
break;
}
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
final QuestState qs = getQuestState(talker, true);
String htmltext = getNoQuestMsg(talker);
if (qs.isCreated())
{
htmltext = ((talker.getLevel() < MIN_LVL) ? "30686-01.html" : "30686-02.htm");
}
else if (qs.isStarted())
{
htmltext = (hasQuestItems(talker, JADE_CRYSTAL)) ? "30686-07.html" : "30686-06.html";
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if (qs != null)
{
giveItemRandomly(qs.getPlayer(), npc, JADE_CRYSTAL, 1, 0, DROP_DATA.get(npc.getId()), true);
}
return super.onKill(npc, killer, isSummon);
}
}