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>Guard Stan:<br>
Smell that? Sweet salvation, that's what it smells like to me. Like a juicy slice of heaven, wrapped in honey by angels and turned into an aroma. Hm... I smell it every Thursday. Sadly, I've never tasted it. A lesser man would have gone mad by now. MAD I say!!<br>
I don't know what it is, but they cook it over at the Sel Mahum Training Grounds. When I close my eyes I dream of this smell.<br>
<a action="bypass -h Quest Q00252_ItSmellsDelicious 30200-04.htm">Ask about the Sel Mahum Training Grounds.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Guard Stan:<br>
Hmm... I don't think you have the nose to track down this delicious smell for me.<br>
(Only characters level 82 or above can take this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Guard Stan:<br>
My love affair with salmon soup is all because of you. And so is this incremental weight gain in my thighs and midsection. But still, thanks!<br>
(You have already completed this quest.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Guard Stan:<br>
What? Oh, sorry. It's just... Someone cooked something and it smells REALLY good. But yes, we called it Skyshadow Meadow until the Sel Mahums started using it for battle training. Gave it some goofy name... Sel Mahum Training Grounds I think. Should have named it 'What the hell is that delicious smell??'.<br>
Hey, good buddy of mine, how about a little adventure? Find what is making that yummy smell and bring it to me? PLEASE?<br>
<a action="bypass -h Quest Q00252_ItSmellsDelicious 30200-05.htm">Sure, I like smell games.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Guard Stan:<br>
As I expected, they're cooking the dish over their campfires. The soup will soon be mine!<br>
Search their pockets for the recipe. I think the <font color="LEVEL">Sel Mahum Squad Leaders</font> might keep it with them. They tend to hang around the campfires gobbling up soup. The <font color="LEVEL">Sel Mahum Chef</font> is another possibility. He carries around the soup and serves it to the squad leaders. I can taste victory already... it will be ours and so will the soup!<br>
Some of the Sel Mahum Squad Leaders doze off around the fires, careful not to wake them. I'll wait right here. Be careful!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Guard Stan:<br>
Did you find it?! But I'm starving!! Man, I am THIS close to abandoning my post and gobbling whatever is making that smell. Just find it and bring it here, please!! I haven't eaten all day and it smells y-u-m-m-m-y!!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Guard Stan:<br>
Well?! I'm dying here! Smells so good! I should've eaten breakfast but I slept in. Let me see what you found.<br>
Hm these recipe notes are torn, they're hard to read. Maybe if I hm AHA! Salmon soup? That smell was from salmon soup? Hey, help me put these pieces together. I will learn this recipe or DIE TRYING!<br>
Grr... wait. Soup like that would have to be... ah, you found some Diary entries too! Let's have a look.<br>
<a action="bypass -h Quest Q00252_ItSmellsDelicious 30200-08.html">Ask about the diary.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Guard Stan:<br>
<font color="LEVEL">'I LOVE SALMON SOUP!'<br1>
'Man, warms you right up! I need a napkin.. Nah I'll just lick my face!'<br>
'Salmon soup.. Hmm... my newest favorite of everything...'<br>
'Oohh, I don't feel so good. That campfire is making me nauseous...'</font><br>
Well, it looks like Sel Mahum Squad Leaders are so busy eating soup and resting that they're not training. Thought you should know. Anyway, thank you. In a minute, I'll belch, and taste that salmon soup one more time. MM-mmm. Take this, it's for the soup.
</body></html>

View File

@@ -0,0 +1,179 @@
/*
* 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.Q00252_ItSmellsDelicious;
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;
/**
* It Smells Delicious! (252)<br>
* Updated by corbin12, thanks VlLight for help.
* @author Dumpster, jurchiks
*/
public class Q00252_ItSmellsDelicious extends Quest
{
// NPC
public static final int STAN = 30200;
// Items
public static final int DIARY = 15500;
public static final int COOKBOOK_PAGE = 15501;
// Monsters
private static final int[] MOBS =
{
22786,
22787,
22788
};
private static final int CHEF = 18908;
// Misc
private static final double DIARY_CHANCE = 0.599;
private static final int DIARY_MAX_COUNT = 10;
private static final double COOKBOOK_PAGE_CHANCE = 0.36;
private static final int COOKBOOK_PAGE_MAX_COUNT = 5;
public Q00252_ItSmellsDelicious()
{
super(252, Q00252_ItSmellsDelicious.class.getSimpleName(), "It Smells Delicious!");
addStartNpc(STAN);
addTalkId(STAN);
addKillId(CHEF);
addKillId(MOBS);
registerQuestItems(DIARY, COOKBOOK_PAGE);
}
@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 "30200-04.htm":
htmltext = event;
break;
case "30200-05.htm":
if (qs.isCreated())
{
qs.startQuest();
htmltext = event;
}
break;
case "30200-08.html":
if (qs.isCond(2))
{
giveAdena(player, 147656, true);
addExpAndSp(player, 716238, 78324);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs;
if (npc.getId() == CHEF) // only the killer gets quest items from the chef
{
qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
if (giveItemRandomly(killer, npc, COOKBOOK_PAGE, 1, COOKBOOK_PAGE_MAX_COUNT, COOKBOOK_PAGE_CHANCE, true))
{
if (hasMaxDiaries(qs))
{
qs.setCond(2, true);
}
}
}
}
else
{
qs = getRandomPartyMemberState(killer, 1, 3, npc);
if (qs != null)
{
if (giveItemRandomly(qs.getPlayer(), npc, DIARY, 1, DIARY_MAX_COUNT, DIARY_CHANCE, true))
{
if (hasMaxCookbookPages(qs))
{
qs.setCond(2, true);
}
}
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public boolean checkPartyMember(QuestState qs, L2Npc npc)
{
return !hasMaxDiaries(qs);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isCreated())
{
htmltext = ((player.getLevel() >= 82) ? "30200-01.htm" : "30200-02.htm");
}
else if (qs.isStarted())
{
switch (qs.getCond())
{
case 1:
htmltext = "30200-06.html";
break;
case 2:
if (hasMaxDiaries(qs) && hasMaxCookbookPages(qs))
{
htmltext = "30200-07.html";
}
break;
}
}
else
{
htmltext = "30200-03.html";
}
return htmltext;
}
private static boolean hasMaxDiaries(QuestState qs)
{
return (getQuestItemsCount(qs.getPlayer(), DIARY) >= DIARY_MAX_COUNT);
}
private static boolean hasMaxCookbookPages(QuestState qs)
{
return (getQuestItemsCount(qs.getPlayer(), COOKBOOK_PAGE) >= COOKBOOK_PAGE_MAX_COUNT);
}
}