This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-0.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-0.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
Excellent! I hate to throw you into the fire on your first mission, but it's vital that we find out what happened to our scout!<br>
|
||||
Cool your heels a minute and I'll tell you where to focus your search.<br>
|
||||
We lost contact with him inside the Swamp of Screams. If you follow the path you can't miss it. I also marked it on your map, so don't get lost! Last thing I need is another missing person.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-0a.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-0a.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
We have no use for someone so inexperienced. Get some more training and we'll see what we can do for you...<br>
|
||||
(Only characters who are level 81 or higher may undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-0b.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-0b.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
I'm glad to have you on the force! Makes me more optimistic about our chances...<br>
|
||||
Anyway, I called you here to ask you a favor. I sent a group of scouts into the Swamp of Screams to investigate the ongoing conflict there, but we've lost contact with one of them. I need someone to find out what happened. Are you up to the task?<br>
|
||||
<a action="bypass -h Quest Q00109_InSearchOfTheNest 31553-0.htm">"Sure, no big deal. I'll do it."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-1.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
What's the hold up?<br>
|
||||
We lost contact with the scout inside the Swamp of Screams. Follow the path and you can't miss it. I marked it on the map so you shouldn't get lost. Remember, countless lives are at stake here! We need to find that scout!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-2.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-2.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
I can tell by your looks that you found something. Well? Is my scout OK?<br>
|
||||
Spit it out, soldier! What do you know?<br>
|
||||
<a action="bypass -h Quest Q00109_InSearchOfTheNest 31553-3.html">"Read this memo."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-3.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-3.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
Ah, I see... He's dead, then.<br>
|
||||
Good work. At least he gave us some important information: the Stakatos are becoming both wilder and stronger, though we don't know why.<br>
|
||||
Our Golden Ram Mercenaries must now prepare for what may well be our final battle. Take this news to <font color="LEVEL">Kahman</font>. He will reward you for your efforts.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-3a.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31553-3a.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Mercenary Captain Pierce:<br>
|
||||
You've done your part, and I thank you for it. Go to see <font color="LEVEL">Kahman</font> over there for your reward.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31554-1.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31554-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
State your business here! We received no order.<br>
|
||||
<a action="bypass -h Quest Q00109_InSearchOfTheNest 31554-2.html">"Pierce sent me."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31554-2.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/31554-2.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
Oh, yeah! It's you! Right, then. Here you go! Don't be too disappointed if it's less than you'd like. Come back later and there'll be more work for you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/32015-1.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/32015-1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body><br>
|
||||
The corpse of Pierce's scout, who came here looking for the entrance. Search for any clues he might have left.<br>
|
||||
<a action="bypass -h Quest Q00109_InSearchOfTheNest 32015-2.html">Search the corpse.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/32015-2.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/32015-2.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body><br>
|
||||
(Beneath the corpse you find a memo. You should take it to Mercenary Captain Pierce.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/32015-3.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/32015-3.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body><br>
|
||||
(There's nothing else here. Take the memo to Mercenary Captain Pierce.)
|
||||
</body></html>
|
138
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/Q00109_InSearchOfTheNest.java
vendored
Normal file
138
trunk/dist/game/data/scripts/quests/Q00109_InSearchOfTheNest/Q00109_InSearchOfTheNest.java
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* 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.Q00109_InSearchOfTheNest;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* In Search of the Nest (109)
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00109_InSearchOfTheNest extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int PIERCE = 31553;
|
||||
private static final int SCOUTS_CORPSE = 32015;
|
||||
private static final int KAHMAN = 31554;
|
||||
// Items
|
||||
private static final int SCOUTS_NOTE = 14858;
|
||||
|
||||
public Q00109_InSearchOfTheNest()
|
||||
{
|
||||
super(109, Q00109_InSearchOfTheNest.class.getSimpleName(), "In Search of the Nest");
|
||||
addStartNpc(PIERCE);
|
||||
addTalkId(PIERCE, SCOUTS_CORPSE, KAHMAN);
|
||||
registerQuestItems(SCOUTS_NOTE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31553-0.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32015-2.html":
|
||||
st.giveItems(SCOUTS_NOTE, 1);
|
||||
st.setCond(2, true);
|
||||
break;
|
||||
case "31553-3.html":
|
||||
st.takeItems(SCOUTS_NOTE, -1);
|
||||
st.setCond(3, true);
|
||||
break;
|
||||
case "31554-2.html":
|
||||
st.giveAdena(161500, true);
|
||||
st.addExpAndSp(701500, 50000);
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case PIERCE:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() < 81) ? "31553-0a.htm" : "31553-0b.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (st.getInt("cond"))
|
||||
{
|
||||
case 1:
|
||||
htmltext = "31553-1.html";
|
||||
break;
|
||||
case 2:
|
||||
htmltext = "31553-2.html";
|
||||
break;
|
||||
case 3:
|
||||
htmltext = "31553-3a.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SCOUTS_CORPSE:
|
||||
if (st.isStarted())
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "32015-1.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "32015-3.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case KAHMAN:
|
||||
if (st.isStarted() && st.isCond(3))
|
||||
{
|
||||
htmltext = "31554-1.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user