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>Chef Jeremy:<br>
I need someone to find some ingredients for me. I don't intend to feed the monsters!<br>
(Only a character of level 73 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Chef Jeremy:<br>
This is terrible. Terrible!<br>
That promising young chef Donath will be in the cooking competition, and unless I make something truly special I fear he will walk away with the top honors. But what to make, what to make?<br>
There IS one dish, but the ingredients are so difficult to get that I doubt I could acquire them in time. Unless...<br>
Hey, you there! Yes, you! Interested in a job? I need a brave and resourceful adventurer for a specific task.<br>
How would you like to assist me -- Chef Jeremy, the greatest chef of this region -- in making a fantastic dish?<br>
If all goes well, <font color="LEVEL">you may receive an Ice Crystal</font> in return for your assistance.<br>
<a action="bypass -h Quest Q00624_TheFinestIngredientsPart1 31521-02.htm">Say that you will help.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Chef Jeremy:<br>
The dish I shall make for the competition is called "Smoked Yeti." However, I cannot make it with ordinary Yeti meat; I need the meat from the Icicle Emperor, the greatest of all the Yeti.<br>
The Icicle Emperor ventures out only rarely, however, so we must first cook another meal as bait.<br>
I will require the stems of Hot Springs Nepenthes, feet of Hot Springs Bandersnatchlings, Hot Springs Atroxes and Hot Springs Atroxspawns. I need you to fetch me 50 Secret Spices derived from these materials.<br>
Why so many? Not only this particular Yeti very large, he is also a very discriminating eater. We must tease his palate...<br>
While you gather the spices, I will begun my preparations here. Hurry back!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Chef Jeremy:<br>
What the...?! Blast!<br>
Do you want to see a chef go crazy? While you're wasting time, Donath is probably creating a dish that will steal away my position as top chef!<br>
Leave now, gather the ingredients and bring them to me at once!<br>
There's no time to waste!
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Chef Jeremy:<br>
Unbelievable!<br>
You brought them back so quickly!<br>
I had a good feeling about you! This should be plenty for now.<br>
Now, let me have those ingredients.<br>
<a action="bypass -h Quest Q00624_TheFinestIngredientsPart1 31521-05.html">"Here you go."</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Chef Jeremy:<br>
Keep this soy sauce with you, and come back when you have the rest of the ingredients.<br>
Hold on a second...<br>
Ah yes, here are some <font color="LEVEL">Ice Crystals</font>. They'll keep the sauce fresh, and you can use them for something else later on...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Chef Jeremy:<br>
Are you kidding me? You had the ingredients and now they're gone? I need to sit down!
</body></html>

View File

@@ -0,0 +1,165 @@
/*
* 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.Q00624_TheFinestIngredientsPart1;
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.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* The Finest Ingredients - Part 1.
* @author Citizen, jurchiks, xban1x
*/
public final class Q00624_TheFinestIngredientsPart1 extends Quest
{
// NPC
private static final int JEREMY = 31521;
// Items
private static final int TRUNK_OF_NEPENTHES = 7202;
private static final int FOOT_OF_BANDERSNATCHLING = 7203;
private static final int SECRET_SPICE = 7204;
// Rewards
private static final int ICE_CRYSTAL = 7080;
private static final int SOY_SAUCE_JAR = 7205;
// Misc
private static final int MIN_LVL = 73;
private static final Map<Integer, Integer> MONSTER_DROPS = new HashMap<>();
static
{
MONSTER_DROPS.put(21314, FOOT_OF_BANDERSNATCHLING); // Hot Springs Bandersnatchling
MONSTER_DROPS.put(21317, SECRET_SPICE); // Hot Springs Atroxspawn
MONSTER_DROPS.put(21319, TRUNK_OF_NEPENTHES); // Hot Springs Nepenthes
MONSTER_DROPS.put(21321, SECRET_SPICE); // Hot Springs Atrox
}
public Q00624_TheFinestIngredientsPart1()
{
super(624, Q00624_TheFinestIngredientsPart1.class.getSimpleName(), "The Finest Ingredients - Part 1");
addStartNpc(JEREMY);
addTalkId(JEREMY);
addKillId(MONSTER_DROPS.keySet());
registerQuestItems(TRUNK_OF_NEPENTHES, FOOT_OF_BANDERSNATCHLING, SECRET_SPICE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
String htmltext = null;
if (st != null)
{
switch (event)
{
case "31521-02.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "31521-05.html":
{
if (st.isCond(2) && (getQuestItemsCount(player, getRegisteredItemIds()) == 150))
{
st.giveItems(ICE_CRYSTAL, 1);
st.giveItems(SOY_SAUCE_JAR, 1);
st.exitQuest(true, true);
htmltext = "31521-05.html";
}
else
{
htmltext = "31521-06.html";
}
break;
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final L2PcInstance partyMember = getRandomPartyMember(killer, 1);
if ((partyMember != null) && partyMember.isInsideRadius(npc, 1500, true, false))
{
final int item = MONSTER_DROPS.get(npc.getId());
final long count = getQuestItemsCount(partyMember, item);
if ((count + 1) >= 50)
{
if (count < 50)
{
giveItems(partyMember, item, 50 - count);
playSound(partyMember, QuestSound.ITEMSOUND_QUEST_FANFARE_MIDDLE);
}
if (getQuestItemsCount(partyMember, getRegisteredItemIds()) == 150)
{
getQuestState(partyMember, false).setCond(2, true);
}
}
else
{
giveItems(partyMember, item, 1);
playSound(partyMember, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st != null)
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LVL) ? "31521-01.htm" : "31521-00.htm";
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 1:
{
htmltext = "31521-03.html";
break;
}
case 2:
{
htmltext = "31521-04.html";
break;
}
}
break;
}
}
}
return htmltext;
}
}