Quest Luck Befitting of the Status (10826).

This commit is contained in:
MobiusDev 2016-07-31 11:13:48 +00:00
parent 2ba2fd6abd
commit 8c8f1768fe
18 changed files with 291 additions and 2 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
10826 Luck Befitting of the Status
10827 Step Up to Lead
10829 In Search of the Cause
10830 The Lost Garden of Spirits

View File

@ -0,0 +1,6 @@
<html><body>Blacksmith of Mammon:<br>
Are you the one that Lionel mentioned?<br>
I knew that you would be coming to see me.<br>
Well, you might be talented, but I don't plan on making this easy for you. I'll give you a certificate if you pass my test.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus 31126-04.htm">"What's the test?"</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Blacksmith of Mammon:<br>
What brings you here? I can't talk to unqualified individuals.<br>
(Only characters above Lv. 100.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Blacksmith of Mammon:<br>
I think I heard something, but you have to talk to Lionel first.<br>
(Only characters who are performing the Exalted, One Who Shatters the Limit quest may take this quest.)
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Blacksmith of Mammon:<br>
Becoming strong physically is important. Of course it is. However, do you really think that that's all you need to become strong?<br>
Then you are wrong. If you don't have luck, you will never get as strong. If you are not lucky, you are just all muscles. Don't you agree?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus 31126-05.htm">"Is there a problem with that?"</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Blacksmith of Mammon:<br>
Of course it would be a problem. Luck isn't something just from the gods. You need to persevere until you get lucky.<br>
I want to test your perseverance to bring about that luck. I'll give you a certificate if you pass my test. Deal?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus 31126-06.html">"I will try."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Blacksmith of Mammon:<br>
Here, I'll give you a <font color="LEVEL">Lady's Ornamental Silver Knife</font>. Use the <font color="LEVEL">Scroll: Enchant Weapon (R-grade)</font> to enchant it.<br>
I'll give you a certificate if you can enchant it up to <font color="LEVEL">+7</font>.<br>Just letting you know, the <font color="LEVEL">Lady's Ornamental Silver Knife</font> has no value. I just want to test your perseverance and luck.<br>
If you ever lose it, I can provide you with another <font color="LEVEL">Lady's Ornamental Silver Knife</font>.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Blacksmith of Mammon:<br>
Where's the <font color="LEVEL">Lady's Ornamental Silver Knife</font> I gave you?<br>
Hmm... I understand from that look. Don't wory. I'll give you another one.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus 31126-08.html">"Thank you."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Blacksmith of Mammon:<br>
Here. Now use this Scroll: Enchant Weapon (R-grade) to enchant it. I'll give you a certificate if you can enchant it up to <font color="LEVEL">+7</font>.<br>
Just letting you know, the <font color="LEVEL">Lady's Ornamental Silver Knife</font> has no value. If you ever lose it, I can provide you with another <font color="LEVEL">Lady's Ornamental Silver Knife</font>.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Blacksmith of Mammon:<br>
You didn't even get started? How do you plan on passing my test?
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Blacksmith of Mammon:<br>
I'm sure you know this isn't enough. You didn't even get started.<br>
Keep in mind that the Lady's Ornamental Silver Knife might disappear <font color="LEVEL">if you enchant it above +4</font>. I hope you persevere.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Blacksmith of Mammon:<br>
Well, you do have some luck, but it's not enough. You realize that, right?
</body></html>

View File

@ -0,0 +1,17 @@
<html><body>Blacksmith of Mammon:<br>
Oh you made it? Good. I'll give you the certificate, so let me have the Lady's Ornamental Silver Knife. Good job enchanting it to +7. Pick one of the following in exchange.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_shaper">Amaranthine Shaper</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_cutter">Amaranthine Cutter</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_slasher">Amaranthine Slasher</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_avenger">Amaranthine Avenger</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_fighter">Amaranthine Fighter</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_stormer">Amaranthine Stormer</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_thrower">Amaranthine Thrower</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_shooter">Amaranthine Shooter</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_buster">Amaranthine Buster</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_caster">Amaranthine Caster</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_retributer">Amaranthine Retributer</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_dualsword">Amaranthine Dualsword</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_dualdagger">Amaranthine Dual Dagger</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_dualblunt">Amaranthine Dual Blunt Weapon</Button>
</body></html>

View File

@ -0,0 +1,18 @@
<html><body>Blacksmith of Mammon:<br>
Oh, good! I told you +7 would be enough, but you got something better?<br>
Well, I'm sorry, but I can't give you something better. But I'll make sure to remember your perseverance and luck. Alright, I'll give you the certificate, so let me have that Lady's Ornamental Silver Knife. You can also take one of the following.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_shaper">Amaranthine Shaper</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_cutter">Amaranthine Cutter</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_slasher">Amaranthine Slasher</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_avenger">Amaranthine Avenger</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_fighter">Amaranthine Fighter</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_stormer">Amaranthine Stormer</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_thrower">Amaranthine Thrower</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_shooter">Amaranthine Shooter</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_buster">Amaranthine Buster</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_caster">Amaranthine Caster</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_retributer">Amaranthine Retributer</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_dualsword">Amaranthine Dualsword</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_dualdagger">Amaranthine Dual Dagger</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10826_LuckBefittingOfTheStatus reward_dualblunt">Amaranthine Dual Blunt Weapon</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Blacksmith of Mammon:<br>
Alright, I got it. Take this certificate. I hope you come back for something else, rather than just a test.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Blacksmith of Mammon:<br>
Alright, I got it. Take this certificate. I hope you come back for something else, rather than just a test.<br>
It looks like you got all the certificates. Go see Lionel now.
</body></html>

View File

@ -0,0 +1,198 @@
/*
* 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.Q10826_LuckBefittingOfTheStatus;
import java.util.HashMap;
import java.util.Map;
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.Q10823_ExaltedOneWhoShattersTheLimit.Q10823_ExaltedOneWhoShattersTheLimit;
/**
* Luck Befitting of the Status (10826)
* @URL https://l2wiki.com/Luck_Befitting_of_the_Status
* @author Mobius
*/
public final class Q10826_LuckBefittingOfTheStatus extends Quest
{
// NPC
private static final int BLACKSMITH_OF_MAMMON = 31126;
// Items
private static final int LADY_KNIFE = 45645;
private static final int MERLOT_SERTIFICATE = 46056;
private static final int KURTIZ_CERTIFICATE = 46057;
private static final int GUSTAV_CERTIFICATE = 45636;
// Rewards
private static final int MAMMON_CERTIFICATE = 45635;
private static final int SPELLBOOK_FATE_OF_THE_EXALTED = 46036;
private static final Map<String, Integer> WEAPON_REWARDS = new HashMap<>();
static
{
WEAPON_REWARDS.put("reward_shaper", 17416);
WEAPON_REWARDS.put("reward_cutter", 17417);
WEAPON_REWARDS.put("reward_slasher", 17418);
WEAPON_REWARDS.put("reward_avenger", 17419);
WEAPON_REWARDS.put("reward_fighter", 17420);
WEAPON_REWARDS.put("reward_stormer", 17421);
WEAPON_REWARDS.put("reward_thrower", 17422);
WEAPON_REWARDS.put("reward_shooter", 17423);
WEAPON_REWARDS.put("reward_buster", 17424);
WEAPON_REWARDS.put("reward_caster", 17425);
WEAPON_REWARDS.put("reward_retributer", 17426);
WEAPON_REWARDS.put("reward_dualsword", 17427);
WEAPON_REWARDS.put("reward_dualdagger", 17428);
WEAPON_REWARDS.put("reward_dualblunt", 17429);
}
// Misc
private static final int MIN_LEVEL = 100;
public Q10826_LuckBefittingOfTheStatus()
{
super(10826);
addStartNpc(BLACKSMITH_OF_MAMMON);
addTalkId(BLACKSMITH_OF_MAMMON);
addCondMinLevel(MIN_LEVEL, "31126-02.html");
addCondStartedQuest(Q10823_ExaltedOneWhoShattersTheLimit.class.getSimpleName(), "31126-03.html");
registerQuestItems(LADY_KNIFE);
}
@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 "31126-04.htm":
case "31126-05.htm":
{
htmltext = event;
break;
}
case "31126-06.html":
{
if (qs.isCreated())
{
qs.startQuest();
giveItems(player, LADY_KNIFE, 1);
htmltext = event;
}
break;
}
case "31126-08.html":
{
if (qs.isCond(1))
{
giveItems(player, LADY_KNIFE, 1);
htmltext = event;
}
break;
}
}
if (event.startsWith("reward_"))
{
if (qs.isCond(1) && (getEnchantLevel(player, LADY_KNIFE) >= 7))
{
if ((player.getLevel() >= MIN_LEVEL))
{
if (hasQuestItems(player, KURTIZ_CERTIFICATE, MERLOT_SERTIFICATE, GUSTAV_CERTIFICATE))
{
htmltext = "31126-15.html";
}
else
{
htmltext = "31126-14.html";
}
giveItems(player, WEAPON_REWARDS.get(event), 1);
giveItems(player, MAMMON_CERTIFICATE, 1);
giveItems(player, SPELLBOOK_FATE_OF_THE_EXALTED, 1);
qs.exitQuest(false, true);
}
else
{
htmltext = getNoQuestLevelRewardMsg(player);
}
}
}
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 = "31126-01.htm";
break;
}
case State.STARTED:
{
if (!hasQuestItems(player, LADY_KNIFE))
{
htmltext = "31126-07.html";
}
else
{
final int enchantLevel = getEnchantLevel(player, LADY_KNIFE);
if (enchantLevel == 0)
{
htmltext = "31126-09.html";
}
else if (enchantLevel < 5)
{
htmltext = "31126-10.html";
}
else if (enchantLevel < 7)
{
htmltext = "31126-11.html";
}
else if (enchantLevel == 7)
{
htmltext = "31126-12.html";
}
else
{
htmltext = "31126-13.html";
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}

View File

@ -363,6 +363,7 @@ import quests.Q10821_HelpingOthers.Q10821_HelpingOthers;
import quests.Q10823_ExaltedOneWhoShattersTheLimit.Q10823_ExaltedOneWhoShattersTheLimit;
import quests.Q10824_ConfrontingTheGreatestDanger.Q10824_ConfrontingTheGreatestDanger;
import quests.Q10825_ForVictory.Q10825_ForVictory;
import quests.Q10826_LuckBefittingOfTheStatus.Q10826_LuckBefittingOfTheStatus;
/**
* @author NosBit
@ -716,7 +717,8 @@ public class QuestMasterHandler
Q10821_HelpingOthers.class,
Q10823_ExaltedOneWhoShattersTheLimit.class,
Q10824_ConfrontingTheGreatestDanger.class,
Q10825_ForVictory.class
Q10825_ForVictory.class,
Q10826_LuckBefittingOfTheStatus.class
};
public static void main(String[] args)