Addition of quest Key to the Refining Process (600).
Contributed by Dmitri.
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
588 Head-on Crash
|
||||
591 Great Ambitions
|
||||
599 Demons and Dimensional Energy
|
||||
600 Key to the Refining Process
|
||||
655 A Grand Plan for Taming Wild Beasts
|
||||
665 Basic Training for Hunter Guild Member
|
||||
666 Knowledgeable Hunter Guild Member
|
||||
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
The Enchanted Valley has changed, so it's very dangerous.<br>
|
||||
I don't think you are supposed to be here yet. Come back when you get stronger.<br>
|
||||
(Only characters above Lv. 103 and level of trust of the Blackbird Clan fraction level 4 and above.)
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.<br>
|
||||
What do you say? if you don't remember what to do, I can tell you again.
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-02.htm">"Please tell me again."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess select_mission">"I know what I should do."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-03.htm">"What is it you need to do?"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.<br>
|
||||
Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.<br>
|
||||
That's about it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess select_mission">"Yes, sure."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05.html"><font color="A62F31">"I'll take the intermediate mission."</font></Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05a.html"><font color="A62F31">"I'll take the advanced mission."</font></Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06a.html">"I'll take the intermediate mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05a.html"><font color="A62F31">"I'll take the advanced mission."</font></Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06a.html">"I'll take the intermediate mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06b.html">"I'll take the advanced mission."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Alright. Here's the mission. Hunt the <font color="LEVEL">Kerberos Leger, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and the Fury Kerberos Nero</font>, and collect their <font color="LEVEL">Mutated Spirit's Souls</font> as proof.<br>You can get rewards only if you bring at least 200. Of course, you'll get more rewards if you bring more.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Your Unworldly Visitors Faction Level Must be 9 or above may undertake this mission.
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the basic mission to collect 20 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-07.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the intermediate mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Q00600_KeyToTheRefiningProcess 34427-07a.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the advanced mission to collect 60 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-07b.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">20 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">40 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">60 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>y></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">20 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">40 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">60 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.<br>
|
||||
I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-10.html">"I did my best to earn your trust."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.<br>
|
||||
As long as you don't forget us, that is. We thank you for your hard work.
|
||||
</body></html>
|
@@ -0,0 +1,337 @@
|
||||
/*
|
||||
* 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.Q00600_KeyToTheRefiningProcess;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Key to the Refining Process (600)
|
||||
* @URL https://l2wiki.com/Key_to_the_Refining_Process
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00600_KeyToTheRefiningProcess extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DEVIANNE = 34427;
|
||||
// Monsters
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
24148, // Death Pondus 105
|
||||
24153, // Devil Varos 105
|
||||
24158, // Demonic Weiss 105
|
||||
24159, // Atelia Yuyurina 104
|
||||
24160, // Atelia Popobena 105
|
||||
24161, // Harke 105
|
||||
24162, // Ergalion 105
|
||||
24163, // Spira 106
|
||||
};
|
||||
// Items
|
||||
private static final int FRAGMENT_OF_CONDENSED_ENERGY = 48549;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 103;
|
||||
|
||||
public Q00600_KeyToTheRefiningProcess()
|
||||
{
|
||||
super(600);
|
||||
addStartNpc(DEVIANNE);
|
||||
addTalkId(DEVIANNE);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(FRAGMENT_OF_CONDENSED_ENERGY);
|
||||
addCondMinLevel(MIN_LEVEL, "34427-00.htm");
|
||||
addFactionLevel(Faction.BLACKBIRD_CLAN, 4, "34427-00.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "34427-02.htm":
|
||||
case "34427-03.htm":
|
||||
case "34427-04.htm":
|
||||
case "34427-04a.htm":
|
||||
case "34427-04b.htm":
|
||||
case "34427-06.html":
|
||||
case "34427-06a.html":
|
||||
case "34427-06b.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "select_mission":
|
||||
{
|
||||
qs.startQuest();
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case "return":
|
||||
{
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case "34427-07.html":
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-07a.html":
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-07b.html":
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-10.html":
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 5:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 20) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 2495659, true);
|
||||
addExpAndSp(player, 27191624760L, 27191610);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 100);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 40) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 4991318, true);
|
||||
addExpAndSp(player, 54383249520L, 54383220);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 200);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 60) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 7486978, true);
|
||||
addExpAndSp(player, 81574874280L, 81574830);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 300);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "34427-01.htm";
|
||||
// fallthrough
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "34427-08.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "34427-08a.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
htmltext = "34427-08b.html";
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
{
|
||||
htmltext = "34427-09.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (!qs.isNowAvailable())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34427-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
|
||||
{
|
||||
executeForEachPlayer(player, npc, isSummon, true, false);
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 2:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 20, 1, true))
|
||||
{
|
||||
qs.setCond(5, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 40, 1, true))
|
||||
{
|
||||
qs.setCond(6, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 60, 1, true))
|
||||
{
|
||||
qs.setCond(7, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -127,6 +127,7 @@ import quests.Q00581_ThePurificationRitual.Q00581_ThePurificationRitual;
|
||||
import quests.Q00582_WashBloodWithBlood.Q00582_WashBloodWithBlood;
|
||||
import quests.Q00583_MeaningOfSurvival.Q00583_MeaningOfSurvival;
|
||||
import quests.Q00584_NeverSayGoodBye.Q00584_NeverSayGoodBye;
|
||||
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
|
||||
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
|
||||
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
|
||||
import quests.Q00620_FourGoblets.Q00620_FourGoblets;
|
||||
@@ -587,7 +588,7 @@ public class QuestMasterHandler
|
||||
Q00590_ToEachTheirOwn.class, // FIXME: Custom.
|
||||
Q00591_GreatAmbitions.class, // TODO: Not done.
|
||||
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class,
|
||||
Q00617_GatherTheFlames.class,
|
||||
Q00618_IntoTheFlame.class,
|
||||
Q00620_FourGoblets.class,
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00600_KeyToTheRefiningProcess extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34427;
|
||||
|
||||
public Q00600_KeyToTheRefiningProcess()
|
||||
{
|
||||
super(600);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
@@ -28,7 +28,6 @@
|
||||
595 Special Mission: Raider's Crossroads
|
||||
596 Special Mission: Defeat Baylor
|
||||
599 Demons and Dimensional Energy
|
||||
600 Key to the Refining Process
|
||||
655 A Grand Plan for Taming Wild Beasts
|
||||
665 Basic Training for Hunter Guild Member
|
||||
666 Knowledgeable Hunter Guild Member
|
||||
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
The Enchanted Valley has changed, so it's very dangerous.<br>
|
||||
I don't think you are supposed to be here yet. Come back when you get stronger.<br>
|
||||
(Only characters above Lv. 103 and level of trust of the Blackbird Clan fraction level 4 and above.)
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.<br>
|
||||
What do you say? if you don't remember what to do, I can tell you again.
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-02.htm">"Please tell me again."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess select_mission">"I know what I should do."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-03.htm">"What is it you need to do?"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.<br>
|
||||
Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.<br>
|
||||
That's about it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess select_mission">"Yes, sure."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05.html"><font color="A62F31">"I'll take the intermediate mission."</font></Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05a.html"><font color="A62F31">"I'll take the advanced mission."</font></Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06a.html">"I'll take the intermediate mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05a.html"><font color="A62F31">"I'll take the advanced mission."</font></Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06a.html">"I'll take the intermediate mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06b.html">"I'll take the advanced mission."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Alright. Here's the mission. Hunt the <font color="LEVEL">Kerberos Leger, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and the Fury Kerberos Nero</font>, and collect their <font color="LEVEL">Mutated Spirit's Souls</font> as proof.<br>You can get rewards only if you bring at least 200. Of course, you'll get more rewards if you bring more.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Your Unworldly Visitors Faction Level Must be 9 or above may undertake this mission.
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the basic mission to collect 20 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-07.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the intermediate mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Q00600_KeyToTheRefiningProcess 34427-07a.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the advanced mission to collect 60 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-07b.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">20 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">40 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">60 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>y></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">20 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">40 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">60 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.<br>
|
||||
I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-10.html">"I did my best to earn your trust."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.<br>
|
||||
As long as you don't forget us, that is. We thank you for your hard work.
|
||||
</body></html>
|
@@ -0,0 +1,337 @@
|
||||
/*
|
||||
* 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.Q00600_KeyToTheRefiningProcess;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Key to the Refining Process (600)
|
||||
* @URL https://l2wiki.com/Key_to_the_Refining_Process
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00600_KeyToTheRefiningProcess extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DEVIANNE = 34427;
|
||||
// Monsters
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
24148, // Death Pondus 105
|
||||
24153, // Devil Varos 105
|
||||
24158, // Demonic Weiss 105
|
||||
24159, // Atelia Yuyurina 104
|
||||
24160, // Atelia Popobena 105
|
||||
24161, // Harke 105
|
||||
24162, // Ergalion 105
|
||||
24163, // Spira 106
|
||||
};
|
||||
// Items
|
||||
private static final int FRAGMENT_OF_CONDENSED_ENERGY = 48549;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 103;
|
||||
|
||||
public Q00600_KeyToTheRefiningProcess()
|
||||
{
|
||||
super(600);
|
||||
addStartNpc(DEVIANNE);
|
||||
addTalkId(DEVIANNE);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(FRAGMENT_OF_CONDENSED_ENERGY);
|
||||
addCondMinLevel(MIN_LEVEL, "34427-00.htm");
|
||||
addFactionLevel(Faction.BLACKBIRD_CLAN, 4, "34427-00.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "34427-02.htm":
|
||||
case "34427-03.htm":
|
||||
case "34427-04.htm":
|
||||
case "34427-04a.htm":
|
||||
case "34427-04b.htm":
|
||||
case "34427-06.html":
|
||||
case "34427-06a.html":
|
||||
case "34427-06b.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "select_mission":
|
||||
{
|
||||
qs.startQuest();
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case "return":
|
||||
{
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case "34427-07.html":
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-07a.html":
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-07b.html":
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-10.html":
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 5:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 20) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 2495659, true);
|
||||
addExpAndSp(player, 27191624760L, 27191610);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 100);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 40) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 4991318, true);
|
||||
addExpAndSp(player, 54383249520L, 54383220);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 200);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 60) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 7486978, true);
|
||||
addExpAndSp(player, 81574874280L, 81574830);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 300);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "34427-01.htm";
|
||||
// fallthrough
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "34427-08.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "34427-08a.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
htmltext = "34427-08b.html";
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
{
|
||||
htmltext = "34427-09.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (!qs.isNowAvailable())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34427-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
|
||||
{
|
||||
executeForEachPlayer(player, npc, isSummon, true, false);
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 2:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 20, 1, true))
|
||||
{
|
||||
qs.setCond(5, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 40, 1, true))
|
||||
{
|
||||
qs.setCond(6, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 60, 1, true))
|
||||
{
|
||||
qs.setCond(7, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -127,6 +127,7 @@ import quests.Q00581_ThePurificationRitual.Q00581_ThePurificationRitual;
|
||||
import quests.Q00582_WashBloodWithBlood.Q00582_WashBloodWithBlood;
|
||||
import quests.Q00583_MeaningOfSurvival.Q00583_MeaningOfSurvival;
|
||||
import quests.Q00584_NeverSayGoodBye.Q00584_NeverSayGoodBye;
|
||||
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
|
||||
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
|
||||
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
|
||||
import quests.Q00620_FourGoblets.Q00620_FourGoblets;
|
||||
@@ -603,7 +604,7 @@ public class QuestMasterHandler
|
||||
Q00595_SpecialMissionRaidersCrossroads.class, // TODO: Not done.
|
||||
Q00596_SpecialMissionDefeatBaylor.class, // TODO: Not done.
|
||||
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class,
|
||||
Q00617_GatherTheFlames.class,
|
||||
Q00618_IntoTheFlame.class,
|
||||
Q00620_FourGoblets.class,
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00600_KeyToTheRefiningProcess extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34427;
|
||||
|
||||
public Q00600_KeyToTheRefiningProcess()
|
||||
{
|
||||
super(600);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
@@ -60,7 +60,6 @@
|
||||
595 Special Mission: Raider's Crossroads
|
||||
596 Special Mission: Defeat Baylor
|
||||
599 Demons and Dimensional Energy
|
||||
600 Key to the Refining Process
|
||||
655 A Grand Plan for Taming Wild Beasts
|
||||
665 Basic Training for Hunter Guild Member
|
||||
666 Knowledgeable Hunter Guild Member
|
||||
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
The Enchanted Valley has changed, so it's very dangerous.<br>
|
||||
I don't think you are supposed to be here yet. Come back when you get stronger.<br>
|
||||
(Only characters above Lv. 103 and level of trust of the Blackbird Clan fraction level 4 and above.)
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.<br>
|
||||
What do you say? if you don't remember what to do, I can tell you again.
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-02.htm">"Please tell me again."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess select_mission">"I know what I should do."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-03.htm">"What is it you need to do?"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.<br>
|
||||
Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.<br>
|
||||
That's about it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess select_mission">"Yes, sure."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05.html"><font color="A62F31">"I'll take the intermediate mission."</font></Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05a.html"><font color="A62F31">"I'll take the advanced mission."</font></Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06a.html">"I'll take the intermediate mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-05a.html"><font color="A62F31">"I'll take the advanced mission."</font></Button>
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Let me tell you what to do. Just choose the mission that you are capable of doing.<br>
|
||||
Basic Mission - Collect <font color="LEVEL">20</font> Mutated Spirit's Souls.<br1>
|
||||
Intermediate Mission - Collect <font color="LEVEL">40</font> Mutated Spirit's Souls.<br1>
|
||||
Advanced Mission - Collect <font color="LEVEL">60</font> Mutated Spirit's Souls.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06.html">"I'll take the basic mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06a.html">"I'll take the intermediate mission."</Button>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-06b.html">"I'll take the advanced mission."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Alright. Here's the mission. Hunt the <font color="LEVEL">Kerberos Leger, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and the Fury Kerberos Nero</font>, and collect their <font color="LEVEL">Mutated Spirit's Souls</font> as proof.<br>You can get rewards only if you bring at least 200. Of course, you'll get more rewards if you bring more.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Your Unworldly Visitors Faction Level Must be 9 or above may undertake this mission.
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the basic mission to collect 20 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-07.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the intermediate mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Q00600_KeyToTheRefiningProcess 34427-07a.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
You have chosen the advanced mission to collect 60 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.<br>
|
||||
Are you sure you want to proceed with this mission?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-07b.html">"Yes, I've made my decision."</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q00600_KeyToTheRefiningProcess return">"Let me reconsider."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">20 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">40 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Good. Left me explain the details. Go to the <font color="LEVEL">Garden of Spirits</font>, defeat the <font color="LEVEL">Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero</font>, and put them to rest.<br>
|
||||
As evidence, please bring back <font color="LEVEL">60 Mutated Spirit's Souls</font>. It should be manageable.
|
||||
</body></html>y></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">20 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">40 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Go to the <font color="LEVEL">Garden of Spirits</font> and defeat all type monsters until you collect <font color="LEVEL">60 Mutated Spirit's Souls</font>.
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.<br>
|
||||
I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00600_KeyToTheRefiningProcess 34427-10.html">"I did my best to earn your trust."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Truth Seeker Devianne:<br>
|
||||
Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.<br>
|
||||
As long as you don't forget us, that is. We thank you for your hard work.
|
||||
</body></html>
|
@@ -0,0 +1,337 @@
|
||||
/*
|
||||
* 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.Q00600_KeyToTheRefiningProcess;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Key to the Refining Process (600)
|
||||
* @URL https://l2wiki.com/Key_to_the_Refining_Process
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00600_KeyToTheRefiningProcess extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DEVIANNE = 34427;
|
||||
// Monsters
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
24148, // Death Pondus 105
|
||||
24153, // Devil Varos 105
|
||||
24158, // Demonic Weiss 105
|
||||
24159, // Atelia Yuyurina 104
|
||||
24160, // Atelia Popobena 105
|
||||
24161, // Harke 105
|
||||
24162, // Ergalion 105
|
||||
24163, // Spira 106
|
||||
};
|
||||
// Items
|
||||
private static final int FRAGMENT_OF_CONDENSED_ENERGY = 48549;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 103;
|
||||
|
||||
public Q00600_KeyToTheRefiningProcess()
|
||||
{
|
||||
super(600);
|
||||
addStartNpc(DEVIANNE);
|
||||
addTalkId(DEVIANNE);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(FRAGMENT_OF_CONDENSED_ENERGY);
|
||||
addCondMinLevel(MIN_LEVEL, "34427-00.htm");
|
||||
addFactionLevel(Faction.BLACKBIRD_CLAN, 4, "34427-00.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "34427-02.htm":
|
||||
case "34427-03.htm":
|
||||
case "34427-04.htm":
|
||||
case "34427-04a.htm":
|
||||
case "34427-04b.htm":
|
||||
case "34427-06.html":
|
||||
case "34427-06a.html":
|
||||
case "34427-06b.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "select_mission":
|
||||
{
|
||||
qs.startQuest();
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case "return":
|
||||
{
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case "34427-07.html":
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-07a.html":
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-07b.html":
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34427-10.html":
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 5:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 20) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 2495659, true);
|
||||
addExpAndSp(player, 27191624760L, 27191610);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 100);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 40) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 4991318, true);
|
||||
addExpAndSp(player, 54383249520L, 54383220);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 200);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
if ((getQuestItemsCount(player, FRAGMENT_OF_CONDENSED_ENERGY) == 60) && (player.getLevel() >= MIN_LEVEL))
|
||||
{
|
||||
// if (chance < 30)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 2);
|
||||
// }
|
||||
// else if (chance < 100)
|
||||
// {
|
||||
// giveItems(player, SAVIORS_WISH, 1);
|
||||
// }
|
||||
giveAdena(player, 7486978, true);
|
||||
addExpAndSp(player, 81574874280L, 81574830);
|
||||
addFactionPoints(player, Faction.BLACKBIRD_CLAN, 300);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "34427-01.htm";
|
||||
// fallthrough
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 8) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 9))
|
||||
{
|
||||
htmltext = "34427-04a.htm";
|
||||
break;
|
||||
}
|
||||
else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 9)
|
||||
{
|
||||
htmltext = "34427-04b.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34427-04.htm";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "34427-08.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "34427-08a.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
htmltext = "34427-08b.html";
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
{
|
||||
htmltext = "34427-09.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (!qs.isNowAvailable())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34427-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
|
||||
{
|
||||
executeForEachPlayer(player, npc, isSummon, true, false);
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 2:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 20, 1, true))
|
||||
{
|
||||
qs.setCond(5, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 40, 1, true))
|
||||
{
|
||||
qs.setCond(6, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
if (giveItemRandomly(player, npc, FRAGMENT_OF_CONDENSED_ENERGY, 1, 60, 1, true))
|
||||
{
|
||||
qs.setCond(7, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -57,6 +57,7 @@ import quests.Q00561_BasicMissionHarnakUndergroundRuins.Q00561_BasicMissionHarna
|
||||
import quests.Q00564_BasicMissionKartiasLabyrinthSolo.Q00564_BasicMissionKartiasLabyrinthSolo;
|
||||
import quests.Q00567_BasicMissionIsleOfSouls.Q00567_BasicMissionIsleOfSouls;
|
||||
import quests.Q00580_BeyondTheMemories.Q00580_BeyondTheMemories;
|
||||
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
|
||||
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
|
||||
import quests.Q00620_FourGoblets.Q00620_FourGoblets;
|
||||
import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed;
|
||||
@@ -298,7 +299,7 @@ public class QuestMasterHandler
|
||||
Q00595_SpecialMissionRaidersCrossroads.class, // TODO: Not done.
|
||||
Q00596_SpecialMissionDefeatBaylor.class, // TODO: Not done.
|
||||
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class,
|
||||
Q00618_IntoTheFlame.class,
|
||||
Q00620_FourGoblets.class,
|
||||
Q00655_AGrandPlanForTamingWildBeasts.class, // TODO: Not done.
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00600_KeyToTheRefiningProcess extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34427;
|
||||
|
||||
public Q00600_KeyToTheRefiningProcess()
|
||||
{
|
||||
super(600);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user