This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
You've seen Sel Mahums train? It's impressive, isn't it. Pinaps fears they are becoming too powerful. He doesn't know what to do. But I do...<br>
|
||||
<a action="bypass -h Quest Q00461_RumbleInTheBase 30200-04.htm">Ask about his idea.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
Have you talked to Pinaps? He's worried about all the training going on at the Sel Mahum's camp. If he'd only ask me, I'd tell him how to solve it. But the ideas and opinions of guards are often overlooked, such is life.<br>
|
||||
(Only character level 82 or above who have completed It Smells Delicious can take this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
Thanks for your hard work. Today Pinaps doesn't have to worry anymore. Worrying just shaves time off your life, makes you wrinkly, and causes gas. A true friend will put up with all that to help take some of the stress away. True friends also bring salmon soup.<br>
|
||||
(You can take on this quest once per day, starting at 6:30 am.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
Strength in battle comes from your stomach. Big swords, lots of training, all worthless compared to a belly fully of good food. Hey, can you tell Pinaps not to worry about me? That would be swell.<br>
|
||||
<a action="bypass -h Quest Q00461_RumbleInTheBase 30200-05.htm">Say you will.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-05.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-05.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
I've pretty much established at this point that the Sel Mahum draw their fierce power in battle from their delicious Salmon Soup. I cannot allow this. Take <font color="LEVEL">salmon from the Sel Mahum Chefs</font>, so that Sel Mahums will know the suffering of life without tasty salmon soup!<br>
|
||||
Then remove the <font color="LEVEL">shoelaces from dazed Sel Mahums</font> because that is just fun. Teach them for tempting me with their tasty soup!<br>
|
||||
How about it? Scared? Keep your eye on the soup.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
What is it? Pinaps is over there. See the face he's making? That means he is thinking real hard, or he forgot what he was doing.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/30200-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Stan:<br>
|
||||
Thank you! I'll certainly tell Pinaps about you. That's what friends are for, right?<br>
|
||||
That was fun. We could stop Sel Mahums from training everyday! Okay, I'm getting hungry... time for soup.
|
||||
</body></html>
|
176
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/Q00461_RumbleInTheBase.java
vendored
Normal file
176
trunk/dist/game/data/scripts/quests/Q00461_RumbleInTheBase/Q00461_RumbleInTheBase.java
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* 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.Q00461_RumbleInTheBase;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import quests.Q00252_ItSmellsDelicious.Q00252_ItSmellsDelicious;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.enums.QuestType;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Rumble in the Base (461)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00461_RumbleInTheBase extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int STAN = 30200;
|
||||
// Items
|
||||
private static final int SHINY_SALMON = 15503;
|
||||
private static final int SHOES_STRING_OF_SEL_MAHUM = 16382;
|
||||
// Mobs
|
||||
private static final Map<Integer, Integer> MONSTERS = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
MONSTERS.put(22780, 581);
|
||||
MONSTERS.put(22781, 772);
|
||||
MONSTERS.put(22782, 581);
|
||||
MONSTERS.put(22783, 563);
|
||||
MONSTERS.put(22784, 581);
|
||||
MONSTERS.put(22785, 271);
|
||||
MONSTERS.put(18908, 782);
|
||||
}
|
||||
|
||||
public Q00461_RumbleInTheBase()
|
||||
{
|
||||
super(461, Q00461_RumbleInTheBase.class.getSimpleName(), "Rumble in the Base");
|
||||
addStartNpc(STAN);
|
||||
addTalkId(STAN);
|
||||
addKillId(MONSTERS.keySet());
|
||||
registerQuestItems(SHINY_SALMON, SHOES_STRING_OF_SEL_MAHUM);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (event.equalsIgnoreCase("30200-05.htm"))
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
}
|
||||
else if (event.equalsIgnoreCase("30200-04.htm"))
|
||||
{
|
||||
htmltext = event;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
QuestState st = null;
|
||||
if (getRandom(1000) >= MONSTERS.get(npc.getId()))
|
||||
{
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
if (npc.getId() == 18908)
|
||||
{
|
||||
st = getQuestState(player, false);
|
||||
if ((st != null) && st.isCond(1) && (st.getQuestItemsCount(SHINY_SALMON) < 5))
|
||||
{
|
||||
st.giveItems(SHINY_SALMON, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
if ((st.getQuestItemsCount(SHINY_SALMON) >= 5) && (st.getQuestItemsCount(SHOES_STRING_OF_SEL_MAHUM) >= 10))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
final L2PcInstance member = getRandomPartyMember(player, 1);
|
||||
if (member == null)
|
||||
{
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
st = getQuestState(member, false);
|
||||
if (st.getQuestItemsCount(SHOES_STRING_OF_SEL_MAHUM) < 10)
|
||||
{
|
||||
st.giveItems(SHOES_STRING_OF_SEL_MAHUM, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
if ((st.getQuestItemsCount(SHINY_SALMON) >= 5) && (st.getQuestItemsCount(SHOES_STRING_OF_SEL_MAHUM) >= 10))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
final QuestState prev = player.getQuestState(Q00252_ItSmellsDelicious.class.getSimpleName());
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = ((player.getLevel() >= 82) && (prev != null) && prev.isCompleted()) ? "30200-01.htm" : "30200-02.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "30200-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.addExpAndSp(224784, 342528);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = "30200-07.html";
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
if (!st.isNowAvailable())
|
||||
{
|
||||
htmltext = "30200-03.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.setState(State.CREATED);
|
||||
htmltext = ((player.getLevel() >= 82) && (prev != null) && (prev.getState() == State.COMPLETED)) ? "30200-01.htm" : "30200-02.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user