Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<html><body>Celin:<br>
|
||||
Those who work together soon understand each other and begin to form bonds, you know.<br>
|
||||
You've heard of esprit de corps, right? That sense of camaraderie can only be made in times of extreme suffering.<br>
|
||||
That's why boot camp is so draining - they do it to establish group mentality... the physical conditional is just a bonus.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-02.htm">"I see."</Button>
|
||||
<html><body>Celin:<br>
|
||||
Those who work together soon understand each other and begin to form bonds, you know.<br>
|
||||
You've heard of esprit de corps, right? That sense of camaraderie can only be made in times of extreme suffering.<br>
|
||||
That's why boot camp is so draining - they do it to establish group mentality... the physical conditional is just a bonus.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-02.htm">"I see."</Button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Celin:<br>
|
||||
Well... good!<br>
|
||||
So you must see how jarring it is when two commandos in the same unit don't see eye to eye! Sadly, I'm not just spouting hypotheticals here - there are two soldiers in my unit who won't talk to each other. If they were to go into combat, they'd be one hell of a weak link...<br>
|
||||
I want someone to get them talking again. Negotiate, bang their heads together... I don't care.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-03.htm">"Who are they?"</Button>
|
||||
<html><body>Celin:<br>
|
||||
Well... good!<br>
|
||||
So you must see how jarring it is when two commandos in the same unit don't see eye to eye! Sadly, I'm not just spouting hypotheticals here - there are two soldiers in my unit who won't talk to each other. If they were to go into combat, they'd be one hell of a weak link...<br>
|
||||
I want someone to get them talking again. Negotiate, bang their heads together... I don't care.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-03.htm">"Who are they?"</Button>
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Celin:<br>
|
||||
There's Walter in Exploration Zone 3, and Dep in Exploration Zone 4.<br>
|
||||
Go to <font color="LEVEL">Walter</font> first - he's closer, and persuade him to sort things out.
|
||||
</body></html>
|
||||
<html><body>Celin:<br>
|
||||
There's Walter in Exploration Zone 3, and Dep in Exploration Zone 4.<br>
|
||||
Go to <font color="LEVEL">Walter</font> first - he's closer, and persuade him to sort things out.
|
||||
</body></html>
|
||||
|
||||
4
trunk/dist/game/data/scripts/quests/Q10364_ObligationsOfTheSeeker/33451-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10364_ObligationsOfTheSeeker/33451-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Celin:<br>
|
||||
Good, I hope that you do! Trust your allies, friend. They make you stronger than you'll ever be alone.<br>
|
||||
(Only those who have completed the "Request of Rangers" quest, and are between levels 14-25, may start this quest.)
|
||||
</body></html>
|
||||
@@ -1,3 +0,0 @@
|
||||
<html><body>Celin:<br>
|
||||
Have you talked to Walter?<br>
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Celin:<br>
|
||||
Good, I hope that you do! Trust your allies, friend. They make you stronger than you'll ever be alone.<br>
|
||||
(Only those who have completed the "Request of Rangers" quest, and are between levels 14-25, may start this quest)
|
||||
</body></html>
|
||||
<html><body>Celin:<br>
|
||||
Good to see you friend! Things are much better here.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<html><body>Celin:<br>
|
||||
Good to see you friend! Things are much better here.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Walter:<br>
|
||||
Did Dep send you? He did, didn't he. Well, I have nothing more to say to him. Hrmph!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-02.html">"No, Celin sent me."</Button>
|
||||
<html><body>Walter:<br>
|
||||
Did Dep send you? He did, didn't he. Well, I have nothing more to say to him. Hrmph!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-02.htm">"No, Celin sent me."</Button>
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Walter:<br>
|
||||
Celin just doesn't know when to give up!<br>
|
||||
Sigh... I tell you, it's about Dep, you can go back and tell Celin it won't work! I simply refuse to get involved with someone who doesn't have a shred of common sense.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-03.html">"What happened?"</Button>
|
||||
<html><body>Walter:<br>
|
||||
Celin just doesn't know when to give up!<br>
|
||||
Sigh... I tell you, it's about Dep, you can go back and tell Celin it won't work! I simply refuse to get involved with someone who doesn't have a shred of common sense.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-03.htm">"What happened?"</Button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Walter:<br>
|
||||
That's the problem, I don't know what happened! We've been working together just fine, then suddenly he gets all bent out of shape and storms off. I tried to find out what the problem was, and smooth things over, but he wouldn't even talk to me.<br>
|
||||
I don't know what he's all worked up about, and frankly, I don't care! Stubborn old... Grr!<br>
|
||||
Well, I have some work related papers that I want to give to him, but I don't want to make waves. Could you take them to him for me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-04.html">"What do you need delivered?"</Button>
|
||||
<html><body>Walter:<br>
|
||||
That's the problem, I don't know what happened! We've been working together just fine, then suddenly he gets all bent out of shape and storms off. I tried to find out what the problem was, and smooth things over, but he wouldn't even talk to me.<br>
|
||||
I don't know what he's all worked up about, and frankly, I don't care! Stubborn old... Grr!<br>
|
||||
Well, I have some work related papers that I want to give to him, but I don't want to make waves. Could you take them to him for me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-04.htm">"What do you need delivered?"</Button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Walter:<br>
|
||||
Ah, it's not so difficult. Old <font color="LEVEL">pieces of paper</font> have been appearing around here. I'm not sure what they're regarding, but Dep likes this kind of stuff.<br1>
|
||||
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font> .<br>
|
||||
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Kraphers and Husk Avians</font> .<br>
|
||||
And... say hi to him for me, okay?
|
||||
<html><body>Walter:<br>
|
||||
Ah, it's not so difficult. Old <font color="LEVEL">pieces of paper</font> have been appearing around here. I'm not sure what they're regarding, but Dep likes this kind of stuff.<br1>
|
||||
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font>.<br>
|
||||
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Kraphers and Husk Avians</font>.<br>
|
||||
And... say hi to him for me, okay?
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Walter:<br>
|
||||
One more time...<br>
|
||||
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font> .<br1>
|
||||
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Krapher and Husk Avians</font> .<br>
|
||||
And... say hi to him for me, okay?
|
||||
<html><body>Walter:<br>
|
||||
One more time...<br>
|
||||
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font>.<br>
|
||||
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Kraphers and Husk Avians</font>.<br>
|
||||
And... say hi to him for me, okay?
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Walter:<br>
|
||||
The pieces of paper are quite hard to read.<br>
|
||||
Take them to <font color="LEVEL">Dep</font> in <font color="LEVEL">the 4th Exploration Area</font>. He'll be interested in them.
|
||||
<html><body>Walter:<br>
|
||||
The pieces of paper are quite hard to read.<br>
|
||||
Take them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font>. He'll be interested in them.
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Walter:<br>
|
||||
Thanks to you, Dep and I have worked out our little misunderstanding. Thank you.<br>
|
||||
(This quest has already been completed.)
|
||||
<html><body>Walter:<br>
|
||||
Thanks to you, Dep and I have worked out our little misunderstanding. Thank you.<br>
|
||||
(This quest has already been completed.)
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Dep:<br>
|
||||
Sigh...<br1>
|
||||
When I'm feeling blue, I want go away, and be alone somewhere quiet. But, when you work as a ranger, you can't get away from busy place like these.<br>
|
||||
Anyway, why are you here?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-02.html">"I've gathered the dirty papers."</Button>
|
||||
<html><body>Dep:<br>
|
||||
Sigh... <br1>
|
||||
When I'm feeling blue, I want go away, and be alone somewhere quiet. But, when you work as a ranger, you can't get away from busy place like these.<br>
|
||||
Anyway, why are you here?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-02.htm">"I've gathered the dirty papers."</Button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Dep:<br>
|
||||
The papers from the Ruins of Ye Sagira?<br>
|
||||
Ye Sagira was the home of the giants - papers discovered there will tell us more about the giants!<br>
|
||||
Show them to me, and tell me... how did you find out about the papers?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-03.html">"Walter told me."</Button>
|
||||
<html><body>Dep:<br>
|
||||
The papers from the Ruins of Ye Sagira?<br>
|
||||
Ye Sagira was the home of the giants - papers discovered there will tell us more about the giants!<br>
|
||||
Show them to me, and tell me... how did you find out about the papers?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-03.htm">"Walter told me."</Button>
|
||||
</body></html>
|
||||
@@ -1,7 +1,7 @@
|
||||
<html><body>Dep:<br>
|
||||
Walter? Hm...<br>
|
||||
Actually, I've known about the paper pieces in Ye Sagira for quite some time now...<br>
|
||||
I just wasn't sure exactly where they were. I was looking for them a while back, wandering through Exploration Zone 3 with Walter, but he kept following me and talking to me and... well... I ended up losing my temper and shouting at him... we haven't spoken since.<br>
|
||||
Did he say anything else?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-04.html">"He said he wanted to talk and make up."</Button>
|
||||
<html><body>Dep:<br>
|
||||
Walter? Hm...<br>
|
||||
Actually, I've known about the paper pieces in Ye Sagira for quite some time now...<br>
|
||||
I just wasn't sure exactly where they were. I was looking for them a while back, wandering through Exploration Zone 3 with Walter, but he kept following me and talking to me and... well... I ended up losing my temper and shouting at him... we haven't spoken since.<br>
|
||||
Did he say anything else?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-04.htm">"He said he wanted to talk and make up."</Button>
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Dep:<br>
|
||||
R... really?<br><br>
|
||||
I should apologize to Walter...Well, let me take those pieces of paper. I hope there's information about the giants in them!
|
||||
<html><body>Dep:<br>
|
||||
R... really?<br>
|
||||
I should apologize to Walter...Well, let me take those pieces of paper. I hope there's information about the giants in them!
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Dep:<br>
|
||||
Walter accepted my apologies!<br1>
|
||||
Thank you so much!<br>
|
||||
(You have already completed this quest)
|
||||
<html><body>Dep:<br>
|
||||
Walter accepted my apologies!<br1>
|
||||
Thank you so much!<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
||||
@@ -1,223 +1,221 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q10364_ObligationsOfTheSeeker;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import quests.Q10363_RequestOfTheSeeker.Q10363_RequestOfTheSeeker;
|
||||
|
||||
/**
|
||||
* Obligations of the Seeker (10364)
|
||||
* @author spider, gyo
|
||||
*/
|
||||
public class Q10364_ObligationsOfTheSeeker extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int CELIN = 33451;
|
||||
private static final int WALTER = 33452;
|
||||
private static final int DEP = 33453;
|
||||
// Monsters
|
||||
private static final int KRAPHER = 22996;
|
||||
private static final int AVIAN = 22994;
|
||||
// Items
|
||||
private static final int DIRTY_PIECE_OF_PAPER = 17578;
|
||||
private static final int DPP_REQUIRED = 5;
|
||||
// Rewards
|
||||
private static final int ADENA_REWARD = 550;
|
||||
private static final int EXP_REWARD = 95000;
|
||||
private static final int SP_REWARD = 22;
|
||||
private static final ItemHolder LEATHER_SHOES = new ItemHolder(37, 1);
|
||||
private static final ItemHolder HEALING_POTIONS = new ItemHolder(1060, 50);
|
||||
// Requirements
|
||||
private static final int MIN_LEVEL = 14;
|
||||
private static final int MAX_LEVEL = 25;
|
||||
|
||||
public Q10364_ObligationsOfTheSeeker()
|
||||
{
|
||||
super(10364, Q10364_ObligationsOfTheSeeker.class.getSimpleName(), "Obligations of the Seeker");
|
||||
addStartNpc(CELIN);
|
||||
addTalkId(CELIN, WALTER, DEP);
|
||||
addKillId(KRAPHER, AVIAN);
|
||||
registerQuestItems(DIRTY_PIECE_OF_PAPER);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33451-05.htm");
|
||||
addCondCompletedQuest(Q10363_RequestOfTheSeeker.class.getSimpleName(), "33451-05.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33451-02.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33451-03.htm": // start quest
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33452-02.html":
|
||||
case "33452-03.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33452-04.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = event;
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33453-02.html":
|
||||
case "33453-03.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33453-04.html":
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
giveAdena(player, ADENA_REWARD, true);
|
||||
addExpAndSp(player, EXP_REWARD, SP_REWARD);
|
||||
giveItems(player, LEATHER_SHOES);
|
||||
giveItems(player, HEALING_POTIONS);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = npc.getId() == CELIN ? "33451-01.htm" : getNoQuestMsg(player);
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case CELIN:
|
||||
{
|
||||
htmltext = "33451-06.html";
|
||||
break;
|
||||
}
|
||||
case WALTER:
|
||||
{
|
||||
htmltext = "33452-07.html";
|
||||
break;
|
||||
}
|
||||
case DEP:
|
||||
{
|
||||
htmltext = "33453-05.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case CELIN:
|
||||
{
|
||||
htmltext = "33451-04.html";
|
||||
break;
|
||||
}
|
||||
case WALTER:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33452-01.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33452-05.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "33452-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DEP:
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33453-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
|
||||
if ((qs != null) && qs.isCond(2) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
|
||||
{
|
||||
giveItems(qs.getPlayer(), DIRTY_PIECE_OF_PAPER, 1);
|
||||
if (getQuestItemsCount(qs.getPlayer(), DIRTY_PIECE_OF_PAPER) >= (DPP_REQUIRED - 1))
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
showOnScreenMsg(qs.getPlayer(), NpcStringId.USE_THE_YE_SAGIRA_TELEPORT_DEVICE_TO_GO_TO_EXPLORATION_AREA_4, ExShowScreenMessage.TOP_CENTER, 10000);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q10364_ObligationsOfTheSeeker;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
import quests.Q10363_RequestOfTheSeeker.Q10363_RequestOfTheSeeker;
|
||||
|
||||
/**
|
||||
* Obligations of the Seeker (10364)
|
||||
* @author Gladicek
|
||||
*/
|
||||
public final class Q10364_ObligationsOfTheSeeker extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int CELIN = 33451;
|
||||
private static final int WALTER = 33452;
|
||||
private static final int DEP = 33453;
|
||||
private static final int KRAPHER = 22996;
|
||||
private static final int AVIAN = 22994;
|
||||
// Items
|
||||
private static final int DIRTY_PAPER_PIECES = 17578;
|
||||
private static final int LEATHER_SHOES = 37;
|
||||
private static final int HEALING_POTION = 1060;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 14;
|
||||
private static final int MAX_LEVEL = 25;
|
||||
|
||||
public Q10364_ObligationsOfTheSeeker()
|
||||
{
|
||||
super(10364);
|
||||
addStartNpc(CELIN);
|
||||
addTalkId(CELIN, WALTER, DEP);
|
||||
addKillId(KRAPHER, AVIAN);
|
||||
registerQuestItems(DIRTY_PAPER_PIECES);
|
||||
addCondMinLevel(MIN_LEVEL, "33451-04.htm");
|
||||
addCondMaxLevel(MAX_LEVEL, "33451-04.htm");
|
||||
addCondCompletedQuest(Q10363_RequestOfTheSeeker.class.getSimpleName(), "33451-04.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33451-02.htm":
|
||||
case "33452-02.htm":
|
||||
case "33452-03.htm":
|
||||
case "33453-02.htm":
|
||||
case "33453-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33451-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33452-04.htm":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33453-04.htm":
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
giveItems(player, LEATHER_SHOES, 1);
|
||||
giveAdena(player, 550, true);
|
||||
giveItems(player, HEALING_POTION, 50);
|
||||
addExpAndSp(player, 95000, 22);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
|
||||
if ((qs != null) && qs.isCond(2))
|
||||
{
|
||||
if (giveItemRandomly(killer, npc, DIRTY_PAPER_PIECES, 1, 5, 0.5, true))
|
||||
{
|
||||
qs.setCond(3);
|
||||
showOnScreenMsg(killer, NpcStringId.USE_THE_YE_SAGIRA_TELEPORT_DEVICE_TO_GO_TO_EXPLORATION_AREA_4, ExShowScreenMessage.TOP_CENTER, 4500);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == CELIN)
|
||||
{
|
||||
htmltext = "33451-01.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case CELIN:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33451-03.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WALTER:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "33452-01.htm";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "33452-05.htm";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "33452-06.htm";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DEP:
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33453-01.htm";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case CELIN:
|
||||
{
|
||||
htmltext = "33451-05.htm";
|
||||
break;
|
||||
}
|
||||
case WALTER:
|
||||
{
|
||||
htmltext = "33452-07.htm";
|
||||
break;
|
||||
}
|
||||
case DEP:
|
||||
{
|
||||
htmltext = "33453-05.htm";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user