Quest Helping Others (10821).

This commit is contained in:
MobiusDev 2016-07-30 10:56:10 +00:00
parent 6372c9c1be
commit 976a62f137
13 changed files with 194 additions and 2 deletions

View File

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

View File

@ -0,0 +1,6 @@
<html><body>Sir Kristof Rodemai:<br>
Young traveler, has Lionel Hunter sent you here? Then I should greet you properly.<br>
I'm Kristof Rodemai. You must have met my son already. How was he? He's not too skilled, but he's thorough in his work.<br>
Just like me. My test might seem easy for some, harder for others. But it's about what a strong warrior must possess.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10821_HelpingOthers 30868-04.htm">"What is it?"</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Kristof Rodemai:<br>
This place is called the land of abundance, but war and chaos has always been a constant. You are not ready to carry out my request.<br>
(Only characters above Lv. 99.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Kristof Rodemai:<br>
You must first talk to Lionel before coming to me.<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,6 @@
<html><body>Sir Kristof Rodemai:<br>
If you want to become a truly strong warrior, you must know how to care for those who are weaker.<br>
You were weak once as well. And I'm sure that you were helped by someone to get this far.<br>
You must not forget that just because you've become stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10821_HelpingOthers 30868-05.htm">"What should I do?"</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Kristof Rodemai:<br>
Those who are strong must help those who are weaker. Without helping those around, one cannot become truly powerful.<br>
I want to check that you know how care for those who are weaker.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10821_HelpingOthers 30868-06.html">"How can I prove that?"</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Kristof Rodemai:<br>
Help those who are weaker than you. Help them grow stronger, and you'll be able to receive a <font color="LEVEL">Mentee's Mark</font>.<br>
That will be the proof that you've taken the time to help those who are weaker than you.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Kristof Rodemai:<br>
You haven't passed my test yet.<br>
Become a mentor for those who are weaker and help them grow. Bring back the <font color="LEVEL">Mentee's Mark</font>.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Kristof Rodemai:<br>
You've passed the test I gave you.<br>
How was becoming a mentor for those weaker than you? You learned that being a great warrior is not all about just being strong, right?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10821_HelpingOthers 30868-09.html">"Yes."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sir Kristof Rodemai:<br>
The fact that you've learned that is enough.<br>
Always remember that. I'll give you a certificate.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Sir Kristof Rodemai:<br>
The fact that you've learned that is enough.<br>
Always remember that. I'll give you a certificate.<br>
Since you've collected all the certificates, you should go see Lionel now.
</body></html>

View File

@ -0,0 +1,144 @@
/*
* 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.Q10821_HelpingOthers;
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;
/**
* For Honor (10821)
* @URL https://l2wiki.com/Helping_Others
* @author Mobius
*/
public final class Q10821_HelpingOthers extends Quest
{
// NPC
private static final int SIR_ERIC_RODEMAI = 30868;
// Items
private static final int MENTEE_MARK = 33804;
private static final int DAICHIR_SERTIFICATE = 45628;
private static final int OLYMPIAD_MANAGER_CERTIFICATE = 45629;
private static final int ISHUMA_CERTIFICATE = 45630;
// Rewards
private static final int SIR_KRISTOF_RODEMAI_CERTIFICATE = 45631;
private static final int SPELLBOOK_FAVOR_OF_THE_EXALTED = 45928;
// Misc
private static final int MIN_LEVEL = 99;
public Q10821_HelpingOthers()
{
super(10821);
addStartNpc(SIR_ERIC_RODEMAI);
addTalkId(SIR_ERIC_RODEMAI);
addCondMinLevel(MIN_LEVEL, "30868-02.html");
addCondStartedQuest(Q10817_ExaltedOneWhoOvercomesTheLimit.class.getSimpleName(), "30868-03.html");
// registerQuestItems(MENTEE_MARK); Should they be removed when abandoning quest?
}
@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 "30868-04.htm":
case "30868-05.htm":
{
htmltext = event;
break;
}
case "30868-06.html":
{
qs.startQuest();
htmltext = event;
break;
}
case "30868-09.html":
{
if (qs.isCond(1) && (getQuestItemsCount(player, MENTEE_MARK) >= 45000))
{
if ((player.getLevel() >= MIN_LEVEL))
{
if (hasQuestItems(player, DAICHIR_SERTIFICATE, ISHUMA_CERTIFICATE, OLYMPIAD_MANAGER_CERTIFICATE))
{
htmltext = "30868-10.html";
}
else
{
htmltext = event;
}
takeItems(player, MENTEE_MARK, 45000);
giveItems(player, SIR_KRISTOF_RODEMAI_CERTIFICATE, 1);
giveItems(player, SPELLBOOK_FAVOR_OF_THE_EXALTED, 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 = "30868-01.htm";
break;
}
case State.STARTED:
{
if (getQuestItemsCount(player, MENTEE_MARK) >= 45000)
{
htmltext = "30868-08.html";
}
else
{
htmltext = "30868-07.html";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}

View File

@ -359,6 +359,7 @@ import quests.Q10817_ExaltedOneWhoOvercomesTheLimit.Q10817_ExaltedOneWhoOvercome
import quests.Q10818_ConfrontingAGiantMonster.Q10818_ConfrontingAGiantMonster; import quests.Q10818_ConfrontingAGiantMonster.Q10818_ConfrontingAGiantMonster;
import quests.Q10819_ForHonor.Q10819_ForHonor; import quests.Q10819_ForHonor.Q10819_ForHonor;
import quests.Q10820_RelationshipsBefittingOfTheStatus.Q10820_RelationshipsBefittingOfTheStatus; import quests.Q10820_RelationshipsBefittingOfTheStatus.Q10820_RelationshipsBefittingOfTheStatus;
import quests.Q10821_HelpingOthers.Q10821_HelpingOthers;
/** /**
* @author NosBit * @author NosBit
@ -708,7 +709,8 @@ public class QuestMasterHandler
Q10817_ExaltedOneWhoOvercomesTheLimit.class, Q10817_ExaltedOneWhoOvercomesTheLimit.class,
Q10818_ConfrontingAGiantMonster.class, Q10818_ConfrontingAGiantMonster.class,
Q10819_ForHonor.class, Q10819_ForHonor.class,
Q10820_RelationshipsBefittingOfTheStatus.class Q10820_RelationshipsBefittingOfTheStatus.class,
Q10821_HelpingOthers.class
}; };
public static void main(String[] args) public static void main(String[] args)