Addition of quest The Immortal Pirate King (10418).

Contributed by Dmitri.
This commit is contained in:
MobiusDevelopment
2020-03-19 19:05:51 +00:00
parent 2d4fb64b26
commit 44f102cf7e
72 changed files with 990 additions and 234 deletions

View File

@@ -53,7 +53,6 @@
10357 Altar of Blood that Awakens Destruction
10373 Exploring the Dimension - Sealing the Dimension
10396 Witch of Spores
10418 The Immortal Pirate King
10457 Kefensis' Illusion
10506 Diana's Request
10712 The Minstrel's Song, Part 1

View File

@@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.<br>
(Only characters with Lv. 83-90.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Captain Jeronin:<br>
Hello Hunter. Have you heard of the rumors that are circulating here?<br>
This strong and powerful creature appeared suddenly.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10418_TheImmortalPirateKing 30121-02.htm">keep going</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
He uses Nen. He has tremendous magical power<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10418_TheImmortalPirateKing 30121-03.htm">"Really?"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Captain Jeronin:<br>
Is his name Zaken. This is all true!<br>
Go to Cavern of the Pirate Captain on Devil's Isle and defeat Zaken.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10418_TheImmortalPirateKing 30121-04.htm">Ask about the agreement</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
You can teleport to Devil's Isle via Zaken Researcher Somulitan, located in Giran Harbor.<br>
Go to Cavern of the Pirate Captain on Devil's Isle and defeat Zaken.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
You can teleport to Devil's Isle via Zaken Researcher Somulitan, located in Giran Harbor.<br>
Go to Cavern of the Pirate Captain on Devil's Isle and defeat Zaken.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Captain Jeronin:<br>
Did you kill Zaken?<br>
You ruined Zaken designs...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10418_TheImmortalPirateKing 30121-07.html">"I figured out Zaken"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
Well done. Good job.<br>
If something else is needed, we will contact you for help.
</body></html>

View File

@@ -0,0 +1,128 @@
/*
* 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.Q10418_TheImmortalPirateKing;
import org.l2jmobius.Config;
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;
/**
* The Immortal Pirate King (10418)
* @URL https://l2wiki.com/The_Immortal_Pirate_King
* @author Dmitri
*/
public class Q10418_TheImmortalPirateKing extends Quest
{
// NPC
private static final int JERONIN = 30121;
// Raidboss
private static final int ZAKEN = 29181;
// Misc
private static final int MIN_LEVEL = 83;
private static final int MAX_LEVEL = 90;
public Q10418_TheImmortalPirateKing()
{
super(10418);
addStartNpc(JERONIN);
addTalkId(JERONIN);
addKillId(ZAKEN);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "30121-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 "30121-02.htm":
case "30121-03.htm":
{
htmltext = event;
break;
}
case "30121-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "30121-07.html":
{
// Rewards
giveAdena(player, 359064, true);
addExpAndSp(player, 34720560, 41664);
qs.exitQuest(false, 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:
{
htmltext = "30121-01.htm";
break;
}
case State.STARTED:
{
htmltext = (qs.isCond(1)) ? "30121-05.html" : "30121-06.html";
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
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.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
{
qs.setCond(2, true);
}
}
}

View File

@@ -323,6 +323,7 @@ import quests.Q10414_KekropusLetterWithCourage.Q10414_KekropusLetterWithCourage;
import quests.Q10415_KekropusLetterWithWisdom.Q10415_KekropusLetterWithWisdom;
import quests.Q10416_InSearchOfTheEyeOfArgos.Q10416_InSearchOfTheEyeOfArgos;
import quests.Q10417_DaimonTheWhiteEyed.Q10417_DaimonTheWhiteEyed;
import quests.Q10418_TheImmortalPirateKing.Q10418_TheImmortalPirateKing;
import quests.Q10419_KekropusLetterKampfsWhereabouts.Q10419_KekropusLetterKampfsWhereabouts;
import quests.Q10420_TheVarkaSilenosSupporters.Q10420_TheVarkaSilenosSupporters;
import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_AssassinationOfTheVarkaSilenosCommander;
@@ -518,7 +519,6 @@ import quests.not_done.Q10298_WastelandQueen;
import quests.not_done.Q10357_AltarOfBloodThatAwakensDestruction;
import quests.not_done.Q10373_ExploringTheDimensionSealingTheDimension;
import quests.not_done.Q10396_WitchOfSpores;
import quests.not_done.Q10418_TheImmortalPirateKing;
import quests.not_done.Q10457_KefensisIllusion;
import quests.not_done.Q10506_DianasRequest;
import quests.not_done.Q10748_MysteriousSuggestion1;
@@ -879,7 +879,7 @@ public class QuestMasterHandler
Q10415_KekropusLetterWithWisdom.class,
Q10416_InSearchOfTheEyeOfArgos.class,
Q10417_DaimonTheWhiteEyed.class,
Q10418_TheImmortalPirateKing.class, // TODO: Not done.
Q10418_TheImmortalPirateKing.class,
Q10419_KekropusLetterKampfsWhereabouts.class,
Q10420_TheVarkaSilenosSupporters.class,
Q10421_AssassinationOfTheVarkaSilenosCommander.class,

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