Quest Relationships Befitting of the Status (10820).

This commit is contained in:
MobiusDev
2016-07-30 08:52:19 +00:00
parent 18f1ac68b4
commit 4b707d727b
17 changed files with 249 additions and 3 deletions

View File

@@ -163,7 +163,6 @@
10806 The Dimensional Warp, Part 6
10807 The Dimensional Warp, Part 7
10809 The Hero's Journey: Blazing Swamp
10820 Relationships Befitting of the Status
10821 Helping Others
10823 Exalted, One Who Shatters the Limit
10824 Confronting the Greatest Danger

View File

@@ -103,7 +103,6 @@ public final class Q10819_ForHonor extends Quest
giveItems(player, BATTLE_QUICK_HEALING_POTION, 180);
giveItems(player, OLYMPIAD_MANAGER_CERTIFICATE, 1);
qs.exitQuest(false, true);
htmltext = event;
}
else
{

View File

@@ -0,0 +1,6 @@
<html><body>Maestro Ishuma:<br>
What brings you here?<br>
Did Lionel send you? Hmm... I see. I didn't think he would be able to find someone to send to me.<br>
Let's see... How do you maintain your equipment? You know that it's not all about strength, right?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-04.htm">"Of course."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Maestro Ishuma:<br>
Who are you? Did you get lost?<br>
(Only characters above Lv. 99.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Maestro Ishuma:<br>
I don't know where you heard this story, but you need to talk to Lionel first.<br>
(Only characters who are performing the Exalted, One Who Overcomes the Limit quest may take this quest.)
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Maestro Ishuma:<br>
Good. Well, I would like to ask you to craft a <font color="LEVEL">Citrine Pendant</font>.<br>
Why a pendant, you ask? I believe there are a few conditions you must meet in order to become a strong warrior.<br>
For me, having you craft a Citrine Pendant is the easiest way to check that you've got what it takes.<br>
It looks like you need a better explanation?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-05.htm">"Yes, please."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Maestro Ishuma:<br>
Well, here's an easier explanation. In order to craft a Citrine Pendant, you need two things.<br>
First, you must be an <font color="LEVEL">experienced Maestro</font>. If you are not a top-class artisan, you won't be able to even try crafting this item. It looks like you meet this condition.<br>
The second is <font color="LEVEL">luck</font>. Without luck, it won't matter how great of a Maestro you are.<br>
I believe that in order to become strong, you must have someone who can maintain your equipment, and the better luck you have, the bigger the chances that you'll get stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-07.html">"I think I get it."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Maestro Ishuma:<br>
Well, here's an easier explanation. In order to craft a Citrine Pendant, you need two things.<br>
First, you need an <font color="LEVEL">experienced Maestro</font>. One must be a top-class artisan to even try crafting this item. It's great if you have someone who can maintain your equipment for you, but if you don't, you must maintain a good relationship with an experienced Maestro at all times.<br>
The second is <font color="LEVEL">luck</font>. Without luck, it won't matter how great of a Maestro one is.<br>
I believe that in order to become strong, you must have someone who can maintain your equipment, and the better luck you have, the bigger the chances that you'll get stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-07.html">"I think I get it."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Maestro Ishuma:<br>
Well, if you got that, take the materials I give you and try making one.<br>
If you need more <font color="LEVEL">Recipe: Citrine Pendant</font> or <font color="LEVEL">Citrine Pendant Fragments</font> let me know. You'll have to get the other materials, though.<br>
Here, take them.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Maestro Ishuma:<br>
It looks like you still haven't completed the <font color="LEVEL">Citrine Pendant</font>. Do you need more materials? What do you need?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-09.html">"I need a Recipe: Citrine Pendant."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-10.html">"I need Citrine Pendant Fragments."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Maestro Ishuma:<br>
Here. Don't forget that this is something a Maestro needs.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Maestro Ishuma:<br>
Here. Will 10 fragments be enough? I can give you more if you need. You won't find much use for them anywhere else, so don't be greedy.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Maestro Ishuma:<br>
Did you make it?<br>
I thought it would take long, but you came back faster than I thought. Let me take a look.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10820_RelationshipsBefittingOfTheStatus 32615-12.html">"Here you go."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Maestro Ishuma:<br>
Oh, this really is a Citrine Pendant.<br>
It looks perfect. Here's the certificate.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Maestro Ishuma:<br>
Oh, this really is a Citrine Pendant.<br>
It looks perfect. Here's the certificate.<br>
It looks like you've finished the other tests as well. Go see Lionel now.
</body></html>

View File

@@ -0,0 +1,181 @@
/*
* 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.Q10820_RelationshipsBefittingOfTheStatus;
import com.l2jmobius.gameserver.enums.CategoryType;
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 quests.Q10817_ExaltedOneWhoOvercomesTheLimit.Q10817_ExaltedOneWhoOvercomesTheLimit;
/**
* Relationships Befitting of the Status (10820)
* @URL https://l2wiki.com/Relationships_Befitting_of_the_Status
* @author Mobius
*/
public final class Q10820_RelationshipsBefittingOfTheStatus extends Quest
{
// NPC
private static final int ISHUMA = 32615;
// Items
private static final int CITRINE_PENDANT = 45640;
private static final int CITRINE_PENDANT_FRAGMENT = 45639;
private static final int CITRINE_PENDANT_RECIPE = 45643;
private static final int DAICHIR_SERTIFICATE = 45628;
private static final int OLYMPIAD_MANAGER_CERTIFICATE = 45629;
private static final int SIR_KRISTOF_RODEMAI_CERTIFICATE = 45631;
// Rewards
private static final int ISHUMA_CERTIFICATE = 45630;
private static final int ETERNAL_ARMOR_CRAFTING_PACK = 39324;
// Misc
private static final int MIN_LEVEL = 99;
public Q10820_RelationshipsBefittingOfTheStatus()
{
super(10820);
addStartNpc(ISHUMA);
addTalkId(ISHUMA);
addCondMinLevel(MIN_LEVEL, "32615-02.html");
addCondStartedQuest(Q10817_ExaltedOneWhoOvercomesTheLimit.class.getSimpleName(), "32615-03.html");
registerQuestItems(CITRINE_PENDANT, CITRINE_PENDANT_FRAGMENT, CITRINE_PENDANT_RECIPE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "32615-04.htm":
{
htmltext = event;
break;
}
case "32615-05.htm":
{
if (!player.isInCategory(CategoryType.WARSMITH_GROUP))
{
htmltext = "32615-06.htm";
}
else
{
htmltext = event;
}
break;
}
case "32615-07.html":
{
if (qs.isCreated())
{
giveItems(player, CITRINE_PENDANT_RECIPE, 1);
giveItems(player, CITRINE_PENDANT_FRAGMENT, 10);
qs.startQuest();
htmltext = event;
}
break;
}
case "32615-09.html":
{
if (qs.isCond(1))
{
giveItems(player, CITRINE_PENDANT_RECIPE, 1);
htmltext = event;
}
break;
}
case "32615-10.html":
{
if (qs.isCond(1))
{
giveItems(player, CITRINE_PENDANT_FRAGMENT, 10);
htmltext = event;
}
break;
}
case "32615-12.html":
{
if (qs.isCond(1) && hasQuestItems(player, CITRINE_PENDANT))
{
if ((player.getLevel() >= MIN_LEVEL))
{
if (hasQuestItems(player, DAICHIR_SERTIFICATE, OLYMPIAD_MANAGER_CERTIFICATE, SIR_KRISTOF_RODEMAI_CERTIFICATE))
{
htmltext = "32615-13.html";
}
else
{
htmltext = event;
}
takeItems(player, CITRINE_PENDANT, -1);
giveItems(player, ETERNAL_ARMOR_CRAFTING_PACK, 1);
giveItems(player, ISHUMA_CERTIFICATE, 1);
qs.exitQuest(false, true);
}
else
{
htmltext = getNoQuestLevelRewardMsg(player);
}
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "32615-01.htm";
break;
}
case State.STARTED:
{
if (hasQuestItems(player, CITRINE_PENDANT))
{
htmltext = "32615-11.html";
}
else
{
htmltext = "32615-08.html";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}

View File

@@ -358,6 +358,7 @@ import quests.Q10815_StepUp.Q10815_StepUp;
import quests.Q10817_ExaltedOneWhoOvercomesTheLimit.Q10817_ExaltedOneWhoOvercomesTheLimit;
import quests.Q10818_ConfrontingAGiantMonster.Q10818_ConfrontingAGiantMonster;
import quests.Q10819_ForHonor.Q10819_ForHonor;
import quests.Q10820_RelationshipsBefittingOfTheStatus.Q10820_RelationshipsBefittingOfTheStatus;
/**
* @author NosBit
@@ -706,7 +707,8 @@ public class QuestMasterHandler
Q10815_StepUp.class,
Q10817_ExaltedOneWhoOvercomesTheLimit.class,
Q10818_ConfrontingAGiantMonster.class,
Q10819_ForHonor.class
Q10819_ForHonor.class,
Q10820_RelationshipsBefittingOfTheStatus.class
};
public static void main(String[] args)