Addition of quest Take Up Arms (10562).

Contributed by NightBR.
This commit is contained in:
MobiusDevelopment 2019-04-11 13:43:43 +00:00
parent 8e3c2e14d2
commit e26df7c727
48 changed files with 669 additions and 114 deletions

View File

@ -175,7 +175,6 @@
10557 New Power, Winds of Fate
10558 Hidden in Chaos
10559 Before the Guide
10562 Take Up Arms
10563 Control of Power
10564 Prove Progress
10565 Nothing Is Impossible

View File

@ -0,0 +1,5 @@
<html><body>Herphah:<br>
We've had quite a long time together. You don't need to be so anxious. You've made impressive progress since we first met.<br>
You've completed half of the courses. From now on, you will receive real field missions.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-02.htm">"Yes."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
I received a report that you completed missions for the Adventurers Guides. The faction speaks highly of you. Penny said that they would assign higher-level missions to you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-03.htm">"Go on."</button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Herphah:<br>
I'm happy to see your Amity Level with the Adventurers Guides growing. Full support from a faction would be of great help to both your progress and reputation.<br>
It would be good for you to raise your position within the Adventurers Guides. it still has things to teach you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-04.htm">"Alright."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
Are you getting familiar with this routine? Then, you should be able to guess what I'm going to tell you.<br>
Meet <font color="LEVEL">Adventure Guildsman Penny</font>. Carry out new missions of Adventurers Guides and raise the Amity Level with them to level 3.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
You raised the Amity Level with the Adventurers Guides to level 3? Already? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-06.html">"Yes I did"</button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Herphah:<br>
Good. Seeing you grow like this is why I love what I do. Hmm... Something to help you? Right, I have some items ready for you this time as I well.<br>
I need to tell you about <font color="LEVEL">La Vie En Rose's Noble Brooch</font>. Like the Talisman I gave you last time, a brooch is an item that equips jewels for unique effects. Your Jewel Slot will be activated once you equip a brooch.<br>
Try equipping the <font color="LEVEL">Emerald Lv. 1 jewel</font> I gave you. Each jewel has a different effect so equipping jewels that suit you best will help you grow stronger.<br>
If you're ready for the next step, speak to me again.<br>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
It becomes clearer to me every time we meet; I've met a lot of adventurers who dream of becoming heroes, but you are special. There is a bigger world waiting for you.<br>
Let's do our best for the next goal too!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34413-02.html">"Go on."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
Now, you have to achieve Amity Level 3 of the Adventure Guild. Since we are heading toward level 3, I think it will be alright to give you tougher missions.<br>
Tell me when you want to receive missions from the Adventure Guild.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
I'll be sure to tell Herphah about this. You should go and see Herphah now.<br>
I'll see you again, soon.<br>
</body></html>

View File

@ -0,0 +1,169 @@
/*
* 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.Q10562_TakeUpArms;
import com.l2jmobius.gameserver.enums.Faction;
import com.l2jmobius.gameserver.enums.QuestType;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Take Up Arms (10562)
* @URL https://l2wiki.com/Take_Up_Arms
* @author NightBR
*/
public final class Q10562_TakeUpArms extends Quest
{
// NPCs
private static final int HERPHAH = 34362;
private static final int PENNY = 34413;
// Rewards
private static final long EXP = 7123508455L;
private static final int SP = 6411158;
private static final int SOUL_SHOT_GRADE_R = 22433;
private static final int BS_SHOT_GRADE_R = 22434;
private static final int PA_ART_OF_SEDUCTION = 37928;
private static final int LA_VIE_EN_ROSES_NOBLE_BROOCH = 38767;
private static final int EMERALD = 38880;
// Misc
private static final int MIN_LEVEL = 85;
private static final int MAX_LEVEL = 97;
public Q10562_TakeUpArms()
{
super(10562);
addStartNpc(HERPHAH);
addTalkId(HERPHAH, PENNY);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "34362-02.htm":
case "34362-03.htm":
{
htmltext = event;
break;
}
case "34362-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34362-06.html":
{
// Rewards
giveItems(player, SOUL_SHOT_GRADE_R, 2500);
giveItems(player, BS_SHOT_GRADE_R, 2500);
giveItems(player, PA_ART_OF_SEDUCTION, 10);
giveItems(player, LA_VIE_EN_ROSES_NOBLE_BROOCH, 1);
giveItems(player, EMERALD, 1);
addExpAndSp(player, EXP, SP);
qs.exitQuest(QuestType.ONE_TIME, true);
htmltext = event;
break;
}
case "34413-02.html":
{
qs.setCond(2, true);
htmltext = event;
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:
{
if (npc.getId() == HERPHAH)
{
htmltext = "34362-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case HERPHAH:
{
if (qs.isCond(3))
{
htmltext = "34362-05.html";
}
else
{
htmltext = "noAmity.html";
}
break;
}
case PENNY:
{
if (qs.isCond(1))
{
htmltext = "34413-01.html";
}
else if (qs.isCond(2))
{
// Checking if reached level 3 with Adventurer's Guild Faction
if (player.getFactionLevel(Faction.ADVENTURE_GUILD) >= 3)
{
qs.setCond(3, true);
htmltext = "34413-03.html";
}
else
{
htmltext = "34413-02.html";
}
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}

View File

@ -0,0 +1,3 @@
<html><body>Penny:<br>
Meet <font color="LEVEL">Adventure Guildsman Penny</font>. Carry out new missions of Adventurers Guides and raise the Amity Level with them to level 3.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
I don't understand why someone like you is interested in this mission?<br>
(Only characters above Lv.85.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Shannon:<br>
I don't trust you.<br>
(Ertheia classes cannot perform this quest.)
</body></html>

View File

@ -352,6 +352,7 @@ import quests.Q10543_SheddingWeight.Q10543_SheddingWeight;
import quests.Q10544_SeekerSupplies.Q10544_SeekerSupplies;
import quests.Q10560_WayOfWanderingKnight.Q10560_WayOfWanderingKnight;
import quests.Q10561_AcrossTheDeathLine.Q10561_AcrossTheDeathLine;
import quests.Q10562_TakeUpArms.Q10562_TakeUpArms;
import quests.Q10658_MakkumInTheDimension.Q10658_MakkumInTheDimension;
import quests.Q10701_TheRoadToDestruction.Q10701_TheRoadToDestruction;
import quests.Q10702_TheRoadToInfinity.Q10702_TheRoadToInfinity;
@ -893,7 +894,7 @@ public class QuestMasterHandler
Q10559_BeforeTheGuide.class, // TODO: Not done.
Q10560_WayOfWanderingKnight.class,
Q10561_AcrossTheDeathLine.class,
Q10562_TakeUpArms.class, // TODO: Not done.
Q10562_TakeUpArms.class,
Q10563_ControlOfPower.class, // TODO: Not done.
Q10564_ProveProgress.class, // TODO: Not done.
Q10565_NothingIsImpossible.class, // TODO: Not done.

View File

@ -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 com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Q10562_TakeUpArms extends Quest
{
private static final int START_NPC = 34362;
public Q10562_TakeUpArms()
{
super(10562);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

View File

@ -189,7 +189,6 @@
10557 New Power, Winds of Fate
10558 Hidden in Chaos
10559 Before the Guide
10562 Take Up Arms
10563 Control of Power
10564 Prove Progress
10565 Nothing Is Impossible

View File

@ -0,0 +1,5 @@
<html><body>Herphah:<br>
We've had quite a long time together. You don't need to be so anxious. You've made impressive progress since we first met.<br>
You've completed half of the courses. From now on, you will receive real field missions.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-02.htm">"Yes."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
I received a report that you completed missions for the Adventurers Guides. The faction speaks highly of you. Penny said that they would assign higher-level missions to you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-03.htm">"Go on."</button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Herphah:<br>
I'm happy to see your Amity Level with the Adventurers Guides growing. Full support from a faction would be of great help to both your progress and reputation.<br>
It would be good for you to raise your position within the Adventurers Guides. it still has things to teach you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-04.htm">"Alright."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
Are you getting familiar with this routine? Then, you should be able to guess what I'm going to tell you.<br>
Meet <font color="LEVEL">Adventure Guildsman Penny</font>. Carry out new missions of Adventurers Guides and raise the Amity Level with them to level 3.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
You raised the Amity Level with the Adventurers Guides to level 3? Already? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-06.html">"Yes I did"</button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Herphah:<br>
Good. Seeing you grow like this is why I love what I do. Hmm... Something to help you? Right, I have some items ready for you this time as I well.<br>
I need to tell you about <font color="LEVEL">La Vie En Rose's Noble Brooch</font>. Like the Talisman I gave you last time, a brooch is an item that equips jewels for unique effects. Your Jewel Slot will be activated once you equip a brooch.<br>
Try equipping the <font color="LEVEL">Emerald Lv. 1 jewel</font> I gave you. Each jewel has a different effect so equipping jewels that suit you best will help you grow stronger.<br>
If you're ready for the next step, speak to me again.<br>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
It becomes clearer to me every time we meet; I've met a lot of adventurers who dream of becoming heroes, but you are special. There is a bigger world waiting for you.<br>
Let's do our best for the next goal too!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34413-02.html">"Go on."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
Now, you have to achieve Amity Level 3 of the Adventure Guild. Since we are heading toward level 3, I think it will be alright to give you tougher missions.<br>
Tell me when you want to receive missions from the Adventure Guild.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
I'll be sure to tell Herphah about this. You should go and see Herphah now.<br>
I'll see you again, soon.<br>
</body></html>

View File

@ -0,0 +1,169 @@
/*
* 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.Q10562_TakeUpArms;
import com.l2jmobius.gameserver.enums.Faction;
import com.l2jmobius.gameserver.enums.QuestType;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Take Up Arms (10562)
* @URL https://l2wiki.com/Take_Up_Arms
* @author NightBR
*/
public final class Q10562_TakeUpArms extends Quest
{
// NPCs
private static final int HERPHAH = 34362;
private static final int PENNY = 34413;
// Rewards
private static final long EXP = 7123508455L;
private static final int SP = 6411158;
private static final int SOUL_SHOT_GRADE_R = 22433;
private static final int BS_SHOT_GRADE_R = 22434;
private static final int PA_ART_OF_SEDUCTION = 37928;
private static final int LA_VIE_EN_ROSES_NOBLE_BROOCH = 38767;
private static final int EMERALD = 38880;
// Misc
private static final int MIN_LEVEL = 85;
private static final int MAX_LEVEL = 97;
public Q10562_TakeUpArms()
{
super(10562);
addStartNpc(HERPHAH);
addTalkId(HERPHAH, PENNY);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "34362-02.htm":
case "34362-03.htm":
{
htmltext = event;
break;
}
case "34362-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34362-06.html":
{
// Rewards
giveItems(player, SOUL_SHOT_GRADE_R, 2500);
giveItems(player, BS_SHOT_GRADE_R, 2500);
giveItems(player, PA_ART_OF_SEDUCTION, 10);
giveItems(player, LA_VIE_EN_ROSES_NOBLE_BROOCH, 1);
giveItems(player, EMERALD, 1);
addExpAndSp(player, EXP, SP);
qs.exitQuest(QuestType.ONE_TIME, true);
htmltext = event;
break;
}
case "34413-02.html":
{
qs.setCond(2, true);
htmltext = event;
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:
{
if (npc.getId() == HERPHAH)
{
htmltext = "34362-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case HERPHAH:
{
if (qs.isCond(3))
{
htmltext = "34362-05.html";
}
else
{
htmltext = "noAmity.html";
}
break;
}
case PENNY:
{
if (qs.isCond(1))
{
htmltext = "34413-01.html";
}
else if (qs.isCond(2))
{
// Checking if reached level 3 with Adventurer's Guild Faction
if (player.getFactionLevel(Faction.ADVENTURE_GUILD) >= 3)
{
qs.setCond(3, true);
htmltext = "34413-03.html";
}
else
{
htmltext = "34413-02.html";
}
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}

View File

@ -0,0 +1,3 @@
<html><body>Penny:<br>
Meet <font color="LEVEL">Adventure Guildsman Penny</font>. Carry out new missions of Adventurers Guides and raise the Amity Level with them to level 3.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
I don't understand why someone like you is interested in this mission?<br>
(Only characters above Lv.85.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Shannon:<br>
I don't trust you.<br>
(Ertheia classes cannot perform this quest.)
</body></html>

View File

@ -306,6 +306,7 @@ import quests.Q10543_SheddingWeight.Q10543_SheddingWeight;
import quests.Q10544_SeekerSupplies.Q10544_SeekerSupplies;
import quests.Q10560_WayOfWanderingKnight.Q10560_WayOfWanderingKnight;
import quests.Q10561_AcrossTheDeathLine.Q10561_AcrossTheDeathLine;
import quests.Q10562_TakeUpArms.Q10562_TakeUpArms;
import quests.Q10658_MakkumInTheDimension.Q10658_MakkumInTheDimension;
import quests.Q10701_TheRoadToDestruction.Q10701_TheRoadToDestruction;
import quests.Q10702_TheRoadToInfinity.Q10702_TheRoadToInfinity;
@ -804,7 +805,7 @@ public class QuestMasterHandler
Q10559_BeforeTheGuide.class, // TODO: Not done.
Q10560_WayOfWanderingKnight.class,
Q10561_AcrossTheDeathLine.class,
Q10562_TakeUpArms.class, // TODO: Not done.
Q10562_TakeUpArms.class,
Q10563_ControlOfPower.class, // TODO: Not done.
Q10564_ProveProgress.class, // TODO: Not done.
Q10565_NothingIsImpossible.class, // TODO: Not done.

View File

@ -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 com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Q10562_TakeUpArms extends Quest
{
private static final int START_NPC = 34362;
public Q10562_TakeUpArms()
{
super(10562);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

View File

@ -201,7 +201,6 @@
10557 New Power, Winds of Fate
10558 Hidden in Chaos
10559 Before the Guide
10562 Take Up Arms
10563 Control of Power
10564 Prove Progress
10565 Nothing Is Impossible

View File

@ -0,0 +1,5 @@
<html><body>Herphah:<br>
We've had quite a long time together. You don't need to be so anxious. You've made impressive progress since we first met.<br>
You've completed half of the courses. From now on, you will receive real field missions.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-02.htm">"Yes."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
I received a report that you completed missions for the Adventurers Guides. The faction speaks highly of you. Penny said that they would assign higher-level missions to you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-03.htm">"Go on."</button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Herphah:<br>
I'm happy to see your Amity Level with the Adventurers Guides growing. Full support from a faction would be of great help to both your progress and reputation.<br>
It would be good for you to raise your position within the Adventurers Guides. it still has things to teach you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-04.htm">"Alright."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
Are you getting familiar with this routine? Then, you should be able to guess what I'm going to tell you.<br>
Meet <font color="LEVEL">Adventure Guildsman Penny</font>. Carry out new missions of Adventurers Guides and raise the Amity Level with them to level 3.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
You raised the Amity Level with the Adventurers Guides to level 3? Already? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34362-06.html">"Yes I did"</button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Herphah:<br>
Good. Seeing you grow like this is why I love what I do. Hmm... Something to help you? Right, I have some items ready for you this time as I well.<br>
I need to tell you about <font color="LEVEL">La Vie En Rose's Noble Brooch</font>. Like the Talisman I gave you last time, a brooch is an item that equips jewels for unique effects. Your Jewel Slot will be activated once you equip a brooch.<br>
Try equipping the <font color="LEVEL">Emerald Lv. 1 jewel</font> I gave you. Each jewel has a different effect so equipping jewels that suit you best will help you grow stronger.<br>
If you're ready for the next step, speak to me again.<br>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Penny:<br>
It becomes clearer to me every time we meet; I've met a lot of adventurers who dream of becoming heroes, but you are special. There is a bigger world waiting for you.<br>
Let's do our best for the next goal too!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10562_TakeUpArms 34413-02.html">"Go on."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
Now, you have to achieve Amity Level 3 of the Adventure Guild. Since we are heading toward level 3, I think it will be alright to give you tougher missions.<br>
Tell me when you want to receive missions from the Adventure Guild.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Penny:<br>
I'll be sure to tell Herphah about this. You should go and see Herphah now.<br>
I'll see you again, soon.<br>
</body></html>

View File

@ -0,0 +1,169 @@
/*
* 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.Q10562_TakeUpArms;
import com.l2jmobius.gameserver.enums.Faction;
import com.l2jmobius.gameserver.enums.QuestType;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Take Up Arms (10562)
* @URL https://l2wiki.com/Take_Up_Arms
* @author NightBR
*/
public final class Q10562_TakeUpArms extends Quest
{
// NPCs
private static final int HERPHAH = 34362;
private static final int PENNY = 34413;
// Rewards
private static final long EXP = 7123508455L;
private static final int SP = 6411158;
private static final int SOUL_SHOT_GRADE_R = 22433;
private static final int BS_SHOT_GRADE_R = 22434;
private static final int PA_ART_OF_SEDUCTION = 37928;
private static final int LA_VIE_EN_ROSES_NOBLE_BROOCH = 38767;
private static final int EMERALD = 38880;
// Misc
private static final int MIN_LEVEL = 85;
private static final int MAX_LEVEL = 97;
public Q10562_TakeUpArms()
{
super(10562);
addStartNpc(HERPHAH);
addTalkId(HERPHAH, PENNY);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "34362-02.htm":
case "34362-03.htm":
{
htmltext = event;
break;
}
case "34362-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34362-06.html":
{
// Rewards
giveItems(player, SOUL_SHOT_GRADE_R, 2500);
giveItems(player, BS_SHOT_GRADE_R, 2500);
giveItems(player, PA_ART_OF_SEDUCTION, 10);
giveItems(player, LA_VIE_EN_ROSES_NOBLE_BROOCH, 1);
giveItems(player, EMERALD, 1);
addExpAndSp(player, EXP, SP);
qs.exitQuest(QuestType.ONE_TIME, true);
htmltext = event;
break;
}
case "34413-02.html":
{
qs.setCond(2, true);
htmltext = event;
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:
{
if (npc.getId() == HERPHAH)
{
htmltext = "34362-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case HERPHAH:
{
if (qs.isCond(3))
{
htmltext = "34362-05.html";
}
else
{
htmltext = "noAmity.html";
}
break;
}
case PENNY:
{
if (qs.isCond(1))
{
htmltext = "34413-01.html";
}
else if (qs.isCond(2))
{
// Checking if reached level 3 with Adventurer's Guild Faction
if (player.getFactionLevel(Faction.ADVENTURE_GUILD) >= 3)
{
qs.setCond(3, true);
htmltext = "34413-03.html";
}
else
{
htmltext = "34413-02.html";
}
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}

View File

@ -0,0 +1,3 @@
<html><body>Penny:<br>
Meet <font color="LEVEL">Adventure Guildsman Penny</font>. Carry out new missions of Adventurers Guides and raise the Amity Level with them to level 3.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Herphah:<br>
I don't understand why someone like you is interested in this mission?<br>
(Only characters above Lv.85.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Shannon:<br>
I don't trust you.<br>
(Ertheia classes cannot perform this quest.)
</body></html>

View File

@ -304,6 +304,7 @@ import quests.Q10543_SheddingWeight.Q10543_SheddingWeight;
import quests.Q10544_SeekerSupplies.Q10544_SeekerSupplies;
import quests.Q10560_WayOfWanderingKnight.Q10560_WayOfWanderingKnight;
import quests.Q10561_AcrossTheDeathLine.Q10561_AcrossTheDeathLine;
import quests.Q10562_TakeUpArms.Q10562_TakeUpArms;
import quests.Q10658_MakkumInTheDimension.Q10658_MakkumInTheDimension;
import quests.Q10701_TheRoadToDestruction.Q10701_TheRoadToDestruction;
import quests.Q10702_TheRoadToInfinity.Q10702_TheRoadToInfinity;
@ -818,7 +819,7 @@ public class QuestMasterHandler
Q10559_BeforeTheGuide.class, // TODO: Not done.
Q10560_WayOfWanderingKnight.class,
Q10561_AcrossTheDeathLine.class,
Q10562_TakeUpArms.class, // TODO: Not done.
Q10562_TakeUpArms.class,
Q10563_ControlOfPower.class, // TODO: Not done.
Q10564_ProveProgress.class, // TODO: Not done.
Q10565_NothingIsImpossible.class, // TODO: Not done.

View File

@ -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 com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Q10562_TakeUpArms extends Quest
{
private static final int START_NPC = 34362;
public Q10562_TakeUpArms()
{
super(10562);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}