Addition of quests 568 and 588.

Contributed by Dmitri.
This commit is contained in:
MobiusDevelopment
2020-02-16 13:17:01 +00:00
parent f23415c2b6
commit eddbb43a56
136 changed files with 2196 additions and 308 deletions

View File

@@ -1,5 +1,4 @@
504 Competition for the Bandit Stronghold
568 Special Mission: Nornil's Cave
570 Special Mission: Kartia's Labyrinth (Party)
571 Special Mission: Proof of Unity (Field Raid)
572 Special Mission: Proof of Courage (Field Raid)
@@ -8,7 +7,6 @@
576 Special Mission: Defeat Spezion
585 Can't Go Against the Time
586 Mutated Creatures
588 Head-on Crash
655 A Grand Plan for Taming Wild Beasts
667 How to Cover Shilen's Eyes
676 Hunter Guild Request – Wasteland West

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
Do you have something else you need?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 30499-02.html">"How do I go to the Altar of Evil?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Tapoy:<br>
Are you here on a mission from the Adventure Guild? I've seen many who are. If so, I'll explain the details.<br>
You'll have to select <font color="LEVEL">Dark Elf Village</font> from the teleport link I give you and go there. The area for an active mission will appear <font color="LEVEL">at the top of the teleport list</font> so it won't be hard to find.<br>
But you have to watch out for one thing.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 30499-03.html">"What's that?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
There's no Gatekeeper in the Dark Elf Village. In the past, there had been a Gatekeeper, however, now, due to a tragic accident, there is only a <font color="LEVEL">Teleport Device</font>.<br>
Anyway, there's no other option. Go and check the missions.<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
There's no Gatekeeper in the Dark Elf Village. In the past, there had been a Gatekeeper, however, now, due to a tragic accident, there is only a <font color="LEVEL">Teleport Device</font>.<br>
Anyway, there's no other option. Go and check the missions.<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.<br>
<font color="LEVEL">(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)</font>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-02.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
Don't tell me you're going to walk all the way up there. I know a better way.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-03.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Heset:<br>
When setting out for a joumey, veteran adventurers always pack <font color="LEVEL">Scrolls of Escape</font>, it teleports the user immediately to the closest village or to the check point.<br>
If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You can use the scroll now or later. Just don't forget to <font color="LEVEL">pack enough Scrolls of Escape once you retum to town</font>.<br>
You can easily buy Scrolls of Escape at stores. Be safe until we meet again.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-05.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
Don't tell me you're going to walk all the way up there. I know a better way.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave usescroll">"Go on Aden."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Truth Seeker Devianne:<br>
In order to take on this mission, you must first build more trust with us.<br>
<font color="LEVEL">(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)</font><br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-02.htm">"Sure, no problem!"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-03.htm">"Go on."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-04.htm">"Alright."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Adventure Guildsman Penny:<br>
You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.<br>
But if you want to listen to the explanation again, I'd be happy to tell you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-05.html">"Receive the mission."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Good choice. Now, go to <font color="LEVEL">Black Wizard Lapathia</font> at the <font color="LEVEL">Altar of Evil</font> and do the mission that she gives you. When the mission is done, come back to me.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-06.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Welcome back! So, did you do a good job?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-07.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-08.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Adventure Guildsman Penny:<br>
To do the mission, you have to go to <font color="LEVEL">Black Wizard Lapathia</font> at the <font color="LEVEL">Altar of Evil</font>. Do the mission that Lapathia gives. Then, come back to me. <br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Adventure Guildsman Penny:<br>
I'm sure the Gatekeeper of the town, <font color="LEVEL">Gatekeeper Elise</font>, could give you a better explanation. Go to her and ask how you can go to the <font color="LEVEL">Altar of Evil</font>. She's very friendly so don't be shy.<br>
If you anive successfully, meet the black wizard, Lapathia, and ask about the mission.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-10.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
You need to leam how to get there first. Go to <font color="LEVEL">Gatekeeper Elise</font> and ask how to go to the <font color="LEVEL">Altar of Evil</font>. She will give you a detailed explanation.<br>
If you arive successfully, meet the black wizard, Lapathia, and ask about the mission.<br>
</body></html>

View File

@@ -0,0 +1,261 @@
/*
* 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.Q00568_SpecialMissionNornilsCave;
import org.l2jmobius.gameserver.enums.Faction;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.Location;
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;
/**
* Special Mission: Nornil's Cave (568)
* @URL https://l2wiki.com/Special_Mission:_Nornil%27s_Cave
* @author Dmitri
*/
public class Q00568_SpecialMissionNornilsCave extends Quest
{
// NPCs
private static final int PENNY = 34413;
private static final int HESET = 33780;
private static final int TAPOY = 30499;
// Rewards
private static final int SCROLL_OF_ESCAPE_NORNIL_CAVE = 39503;
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
// Misc
private static final int MIN_LEVEL = 93;
private static final int MAX_LEVEL = 95;
// Location
private static final Location TOWN_OF_ADEN = new Location(146632, 26760, -2213);
public Q00568_SpecialMissionNornilsCave()
{
super(568);
addStartNpc(PENNY);
addTalkId(PENNY, HESET, TAPOY);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
addFactionLevel(Faction.ADVENTURE_GUILD, 5, "34413-00.htm");
}
@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 "34413-02.htm":
case "34413-03.htm":
case "34413-06.html":
case "34413-07.html":
case "30499-02.html":
case "33780-02.html":
{
htmltext = event;
break;
}
case "34413-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34413-08.html": // PENNY
{
qs.setCond(2, true);
htmltext = event;
break;
}
case "30499-03.html": // TAPOY
{
qs.setCond(3, true);
htmltext = event;
break;
}
case "33780-03.html": // HESET
{
qs.setCond(5, true);
htmltext = event;
break;
}
case "33780-05.html": // HESET
{
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
htmltext = event;
break;
}
case "usescroll":
{
// TODO: force player to use item SCROLL_OF_ESCAPE_TOWN_OF_ADEN
player.teleToLocation(TOWN_OF_ADEN); // Town of Aden near Npc Penny - temp solution
takeItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, -1); // remove SOE - temp solution
break;
}
case "34413-10.html":
{
final StringBuilder str = new StringBuilder("00");
checkQuestCompleted(player, str); // Initialize the array with all quests completed
if (str.indexOf("11") != -1) // verify if all quests completed
{
giveItems(player, SCROLL_OF_ESCAPE_NORNIL_CAVE, 1);
addExpAndSp(player, 2386605060L, 2386560);
addFactionPoints(player, Faction.ADVENTURE_GUILD, 260); // add FP points to ADVENTURE_GUILD Faction
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
}
else
{
htmltext = "34413-08.html";
}
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() == PENNY)
{
htmltext = "34413-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case PENNY:
{
if (qs.getCond() == 1)
{
htmltext = "34413-05.html";
}
else if (qs.getCond() == 2)
{
htmltext = "34413-08.html";
}
else if (qs.getCond() == 6)
{
htmltext = "34413-09.html";
}
break;
}
case TAPOY:
{
if (qs.getCond() == 2)
{
htmltext = "30499-01.html";
}
else if (qs.getCond() == 3)
{
final QuestState st = player.getQuestState("Q10386_MysteriousJourney");
if ((st != null) && st.isCompleted())
{
qs.setCond(4, true);
htmltext = null;
}
else
{
htmltext = "30499-03.html";
}
}
else if (qs.getCond() == 4)
{
htmltext = "30499-04.html";
}
break;
}
case HESET:
{
if (qs.getCond() == 4)
{
htmltext = "33780-01.html";
}
else if (qs.getCond() == 5)
{
final StringBuilder str = new StringBuilder("00");
checkQuestCompleted(player, str); // Initialize the array with all quests completed
if (str.indexOf("11") != -1) // verify if all quests completed
{
qs.setCond(6, true);
htmltext = "33780-04.html";
}
else
{
htmltext = "33780-03.html";
}
}
break;
}
}
break;
}
case State.COMPLETED:
{
if (qs.isNowAvailable())
{
qs.setState(State.CREATED);
htmltext = "34413-01.htm";
}
else
{
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
}
break;
}
}
return htmltext;
}
private StringBuilder checkQuestCompleted(PlayerInstance player, StringBuilder string)
{
int index = 0;
final char ch = '1';
final QuestState st1 = player.getQuestState("Q00753_ReactingToACrisis");
if ((st1 != null) && st1.isCompleted())
{
index = 0;
string.setCharAt(index, ch);
}
final QuestState st2 = player.getQuestState("Q00588_HeadOnCrash");
if ((st2 != null) && st2.isCompleted())
{
index = 1;
string.setCharAt(index, ch);
}
return string;
}
}

View File

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

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Hmm ... For you, as long as there is no work.<br>
(This quest is available once a day. Updating quest takes place daily at 6:30 am.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Wanderer Wanderer! You are just in time! I need your help .. coming contamination on all of us .. help us, we need such brave war like you!<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00588_HeadOnCrash 33796-02.htm">"I'll help you!"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bern:<br>
We were closing in Golem shaped monsters infect us and our children, they have a machine <font color="LEVEL">"Devices Creating Golem" and only 5 but we do not force</font> ... In addition, some of them kept the keys to the cells they store materials that are collected for reproduction itself, collect at least 30 of the Keys to the Red Door. I'll help you, here is a list of monsters in which they are kept: <br>
<font color="LEVEL">Scout Nornil 1, spicules Warrior 1, Scout Nornil 2, spicules Warrior 2, spicules Ratnikov Commander (1) Commander Ratnikov spicules (2), spicules Adjutant Ratnikov</font> ... <br><br>
Thank you, O brave warrior, we're waiting for you with good news!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bern:<br>
We were closing in Golem shaped monsters infect us and our children, they have a machine "Devices Creating Golem" and only 5 but we do not force ... In addition, some of them kept the keys to the cells they store materials that are collected for reproduction itself, collect at least 30 of the Keys to the Red Door. I'll help you, here is a list of monsters in which they are kept: <br>
Scout Nornil 1, spicules Warrior 1, Scout Nornil 2, spicules Warrior 2, spicules Ratnikov Commander (1) Commander Ratnikov spicules (2), spicules Adjutant Ratnikov ... <br><br>
Thank you, O brave warrior, we're waiting for you with good news!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
I have heard of your exploits! You brought all that I asked for?<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00588_HeadOnCrash 33796-05.html">"Tell everything"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Thank you, we are all indebted to you! <br>
However, this is very small, we only recaptured the golems for a few days, they can launch an attack at any moment .. That's your reward for your lion heart! But you know may need your help at any time!
</body></html>

View File

@@ -0,0 +1,163 @@
/*
* 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.Q00588_HeadOnCrash;
import java.util.HashSet;
import java.util.Set;
import org.l2jmobius.gameserver.enums.QuestSound;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.holders.NpcLogListHolder;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
import org.l2jmobius.gameserver.network.NpcStringId;
/**
* Head-on Crash (588)
* @URL https://l2wiki.com/Head-on_Crash
* @author Dmitri
*/
public class Q00588_HeadOnCrash extends Quest
{
// Npc
private static final int BERNA = 33796;
// Monsters
private static final int SPICULA_LARVA = 23304;
// Misc
private static final String KILL_COUNT_VAR = "KillCount";
private static final int MIN_LEVEL = 93;
private static final int MAX_LEVEL = 103;
public Q00588_HeadOnCrash()
{
super(588);
addStartNpc(BERNA);
addTalkId(BERNA);
addKillId(SPICULA_LARVA);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "lvl.htm");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
switch (event)
{
case "33796-02.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "33796-05.html":
{
giveAdena(player, 587070, true);
addExpAndSp(player, 1193302530L, 1193280);
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (npc.getId() == BERNA)
{
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "33796-01.htm";
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "33796-03.html";
}
else if (qs.isCond(2))
{
htmltext = "33796-04.html";
}
break;
}
case State.COMPLETED:
{
if (!qs.isNowAvailable())
{
htmltext = "33796-00.htm";
break;
}
qs.setState(State.CREATED);
// fallthrough
}
}
}
return htmltext;
}
@Override
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
if (killCount < 5)
{
qs.set(KILL_COUNT_VAR, killCount);
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
sendNpcLogList(killer);
}
else
{
qs.setCond(2, true);
qs.unset(KILL_COUNT_VAR);
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public Set<NpcLogListHolder> getNpcLogList(PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1))
{
final Set<NpcLogListHolder> holder = new HashSet<>();
holder.add(new NpcLogListHolder(NpcStringId.DEFEATED_SPICULA_LARVA.getId(), true, qs.getInt(KILL_COUNT_VAR)));
return holder;
}
return super.getNpcLogList(player);
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Hmm ... For you, as long as there is no work.<br>
(This quest is available after reaching level 93-103.)
</body></html>

View File

@@ -144,6 +144,7 @@ import quests.Q00564_BasicMissionKartiasLabyrinthSolo.Q00564_BasicMissionKartias
import quests.Q00565_BasicMissionFairySettlementWest.Q00565_BasicMissionFairySettlementWest;
import quests.Q00566_BasicMissionFairySettlementEast.Q00566_BasicMissionFairySettlementEast;
import quests.Q00567_BasicMissionIsleOfSouls.Q00567_BasicMissionIsleOfSouls;
import quests.Q00568_SpecialMissionNornilsCave.Q00568_SpecialMissionNornilsCave;
import quests.Q00569_BasicMissionSealOfShilen.Q00569_BasicMissionSealOfShilen;
import quests.Q00574_SpecialMissionNornilsGarden.Q00574_SpecialMissionNornilsGarden;
import quests.Q00580_BeyondTheMemories.Q00580_BeyondTheMemories;
@@ -152,6 +153,7 @@ import quests.Q00582_WashBloodWithBlood.Q00582_WashBloodWithBlood;
import quests.Q00583_MeaningOfSurvival.Q00583_MeaningOfSurvival;
import quests.Q00584_NeverSayGoodBye.Q00584_NeverSayGoodBye;
import quests.Q00587_MoreAggressiveOperation.Q00587_MoreAggressiveOperation;
import quests.Q00588_HeadOnCrash.Q00588_HeadOnCrash;
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
import quests.Q00620_FourGoblets.Q00620_FourGoblets;
@@ -512,7 +514,6 @@ import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProj
import quests.Q10856_SuperionAppears.Q10856_SuperionAppears;
import quests.Q10857_SecretTeleport.Q10857_SecretTeleport;
import quests.not_done.Q00504_CompetitionForTheBanditStronghold;
import quests.not_done.Q00568_SpecialMissionNornilsCave;
import quests.not_done.Q00570_SpecialMissionKartiasLabyrinthParty;
import quests.not_done.Q00571_SpecialMissionProofOfUnityFieldRaid;
import quests.not_done.Q00572_SpecialMissionProofOfCourageFieldRaid;
@@ -521,7 +522,6 @@ import quests.not_done.Q00575_SpecialMissionFortuna;
import quests.not_done.Q00576_SpecialMissionDefeatSpezion;
import quests.not_done.Q00585_CantGoAgainstTheTime;
import quests.not_done.Q00586_MutatedCreatures;
import quests.not_done.Q00588_HeadOnCrash;
import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts;
import quests.not_done.Q00667_CoveringShilensEyes;
import quests.not_done.Q00744_TheAlligatorHunterReturns;
@@ -736,7 +736,7 @@ public class QuestMasterHandler
Q00565_BasicMissionFairySettlementWest.class,
Q00566_BasicMissionFairySettlementEast.class,
Q00567_BasicMissionIsleOfSouls.class,
Q00568_SpecialMissionNornilsCave.class, // TODO: Not done.
Q00568_SpecialMissionNornilsCave.class,
Q00569_BasicMissionSealOfShilen.class,
Q00570_SpecialMissionKartiasLabyrinthParty.class, // TODO: Not done.
Q00571_SpecialMissionProofOfUnityFieldRaid.class, // TODO: Not done.
@@ -753,7 +753,7 @@ public class QuestMasterHandler
Q00585_CantGoAgainstTheTime.class, // TODO: Not done.
Q00586_MutatedCreatures.class, // TODO: Not done.
Q00587_MoreAggressiveOperation.class,
Q00588_HeadOnCrash.class, // TODO: Not done.
Q00588_HeadOnCrash.class,
Q00617_GatherTheFlames.class,
Q00618_IntoTheFlame.class,
Q00620_FourGoblets.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 Q00568_SpecialMissionNornilsCave extends Quest
{
private static final int START_NPC = 34413;
public Q00568_SpecialMissionNornilsCave()
{
super(568);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

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 Q00588_HeadOnCrash extends Quest
{
private static final int START_NPC = 33796;
public Q00588_HeadOnCrash()
{
super(588);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

View File

@@ -4,7 +4,6 @@
555 Red Libra Request - Atelia Refinery
556 Red Libra Request - Fallen Emperor's Throne
557 Red Libra Request - Fall of Etina
568 Special Mission: Nornil's Cave
570 Special Mission: Kartia's Labyrinth (Party)
571 Special Mission: Proof of Unity (Field Raid)
572 Special Mission: Proof of Courage (Field Raid)
@@ -14,7 +13,6 @@
577 Basic Mission: Silent Valley
585 Can't Go Against the Time
586 Mutated Creatures
588 Head-on Crash
591 Great Ambitions
599 Demons and Dimensional Energy
655 A Grand Plan for Taming Wild Beasts

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
Do you have something else you need?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 30499-02.html">"How do I go to the Altar of Evil?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Tapoy:<br>
Are you here on a mission from the Adventure Guild? I've seen many who are. If so, I'll explain the details.<br>
You'll have to select <font color="LEVEL">Dark Elf Village</font> from the teleport link I give you and go there. The area for an active mission will appear <font color="LEVEL">at the top of the teleport list</font> so it won't be hard to find.<br>
But you have to watch out for one thing.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 30499-03.html">"What's that?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
There's no Gatekeeper in the Dark Elf Village. In the past, there had been a Gatekeeper, however, now, due to a tragic accident, there is only a <font color="LEVEL">Teleport Device</font>.<br>
Anyway, there's no other option. Go and check the missions.<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
There's no Gatekeeper in the Dark Elf Village. In the past, there had been a Gatekeeper, however, now, due to a tragic accident, there is only a <font color="LEVEL">Teleport Device</font>.<br>
Anyway, there's no other option. Go and check the missions.<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.<br>
<font color="LEVEL">(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)</font>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-02.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
Don't tell me you're going to walk all the way up there. I know a better way.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-03.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Heset:<br>
When setting out for a joumey, veteran adventurers always pack <font color="LEVEL">Scrolls of Escape</font>, it teleports the user immediately to the closest village or to the check point.<br>
If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You can use the scroll now or later. Just don't forget to <font color="LEVEL">pack enough Scrolls of Escape once you retum to town</font>.<br>
You can easily buy Scrolls of Escape at stores. Be safe until we meet again.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-05.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
Don't tell me you're going to walk all the way up there. I know a better way.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave usescroll">"Go on Aden."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Truth Seeker Devianne:<br>
In order to take on this mission, you must first build more trust with us.<br>
<font color="LEVEL">(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)</font><br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-02.htm">"Sure, no problem!"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-03.htm">"Go on."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-04.htm">"Alright."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Adventure Guildsman Penny:<br>
You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.<br>
But if you want to listen to the explanation again, I'd be happy to tell you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-05.html">"Receive the mission."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Good choice. Now, go to <font color="LEVEL">Black Wizard Lapathia</font> at the <font color="LEVEL">Altar of Evil</font> and do the mission that she gives you. When the mission is done, come back to me.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-06.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Welcome back! So, did you do a good job?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-07.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-08.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Adventure Guildsman Penny:<br>
To do the mission, you have to go to <font color="LEVEL">Black Wizard Lapathia</font> at the <font color="LEVEL">Altar of Evil</font>. Do the mission that Lapathia gives. Then, come back to me. <br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Adventure Guildsman Penny:<br>
I'm sure the Gatekeeper of the town, <font color="LEVEL">Gatekeeper Elise</font>, could give you a better explanation. Go to her and ask how you can go to the <font color="LEVEL">Altar of Evil</font>. She's very friendly so don't be shy.<br>
If you anive successfully, meet the black wizard, Lapathia, and ask about the mission.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-10.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
You need to leam how to get there first. Go to <font color="LEVEL">Gatekeeper Elise</font> and ask how to go to the <font color="LEVEL">Altar of Evil</font>. She will give you a detailed explanation.<br>
If you arive successfully, meet the black wizard, Lapathia, and ask about the mission.<br>
</body></html>

View File

@@ -0,0 +1,261 @@
/*
* 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.Q00568_SpecialMissionNornilsCave;
import org.l2jmobius.gameserver.enums.Faction;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.Location;
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;
/**
* Special Mission: Nornil's Cave (568)
* @URL https://l2wiki.com/Special_Mission:_Nornil%27s_Cave
* @author Dmitri
*/
public class Q00568_SpecialMissionNornilsCave extends Quest
{
// NPCs
private static final int PENNY = 34413;
private static final int HESET = 33780;
private static final int TAPOY = 30499;
// Rewards
private static final int SCROLL_OF_ESCAPE_NORNIL_CAVE = 39503;
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
// Misc
private static final int MIN_LEVEL = 93;
private static final int MAX_LEVEL = 95;
// Location
private static final Location TOWN_OF_ADEN = new Location(146632, 26760, -2213);
public Q00568_SpecialMissionNornilsCave()
{
super(568);
addStartNpc(PENNY);
addTalkId(PENNY, HESET, TAPOY);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
addFactionLevel(Faction.ADVENTURE_GUILD, 5, "34413-00.htm");
}
@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 "34413-02.htm":
case "34413-03.htm":
case "34413-06.html":
case "34413-07.html":
case "30499-02.html":
case "33780-02.html":
{
htmltext = event;
break;
}
case "34413-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34413-08.html": // PENNY
{
qs.setCond(2, true);
htmltext = event;
break;
}
case "30499-03.html": // TAPOY
{
qs.setCond(3, true);
htmltext = event;
break;
}
case "33780-03.html": // HESET
{
qs.setCond(5, true);
htmltext = event;
break;
}
case "33780-05.html": // HESET
{
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
htmltext = event;
break;
}
case "usescroll":
{
// TODO: force player to use item SCROLL_OF_ESCAPE_TOWN_OF_ADEN
player.teleToLocation(TOWN_OF_ADEN); // Town of Aden near Npc Penny - temp solution
takeItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, -1); // remove SOE - temp solution
break;
}
case "34413-10.html":
{
final StringBuilder str = new StringBuilder("00");
checkQuestCompleted(player, str); // Initialize the array with all quests completed
if (str.indexOf("11") != -1) // verify if all quests completed
{
giveItems(player, SCROLL_OF_ESCAPE_NORNIL_CAVE, 1);
addExpAndSp(player, 2386605060L, 2386560);
addFactionPoints(player, Faction.ADVENTURE_GUILD, 260); // add FP points to ADVENTURE_GUILD Faction
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
}
else
{
htmltext = "34413-08.html";
}
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() == PENNY)
{
htmltext = "34413-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case PENNY:
{
if (qs.getCond() == 1)
{
htmltext = "34413-05.html";
}
else if (qs.getCond() == 2)
{
htmltext = "34413-08.html";
}
else if (qs.getCond() == 6)
{
htmltext = "34413-09.html";
}
break;
}
case TAPOY:
{
if (qs.getCond() == 2)
{
htmltext = "30499-01.html";
}
else if (qs.getCond() == 3)
{
final QuestState st = player.getQuestState("Q10386_MysteriousJourney");
if ((st != null) && st.isCompleted())
{
qs.setCond(4, true);
htmltext = null;
}
else
{
htmltext = "30499-03.html";
}
}
else if (qs.getCond() == 4)
{
htmltext = "30499-04.html";
}
break;
}
case HESET:
{
if (qs.getCond() == 4)
{
htmltext = "33780-01.html";
}
else if (qs.getCond() == 5)
{
final StringBuilder str = new StringBuilder("00");
checkQuestCompleted(player, str); // Initialize the array with all quests completed
if (str.indexOf("11") != -1) // verify if all quests completed
{
qs.setCond(6, true);
htmltext = "33780-04.html";
}
else
{
htmltext = "33780-03.html";
}
}
break;
}
}
break;
}
case State.COMPLETED:
{
if (qs.isNowAvailable())
{
qs.setState(State.CREATED);
htmltext = "34413-01.htm";
}
else
{
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
}
break;
}
}
return htmltext;
}
private StringBuilder checkQuestCompleted(PlayerInstance player, StringBuilder string)
{
int index = 0;
final char ch = '1';
final QuestState st1 = player.getQuestState("Q00753_ReactingToACrisis");
if ((st1 != null) && st1.isCompleted())
{
index = 0;
string.setCharAt(index, ch);
}
final QuestState st2 = player.getQuestState("Q00588_HeadOnCrash");
if ((st2 != null) && st2.isCompleted())
{
index = 1;
string.setCharAt(index, ch);
}
return string;
}
}

View File

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

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Hmm ... For you, as long as there is no work.<br>
(This quest is available once a day. Updating quest takes place daily at 6:30 am.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Wanderer Wanderer! You are just in time! I need your help .. coming contamination on all of us .. help us, we need such brave war like you!<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00588_HeadOnCrash 33796-02.htm">"I'll help you!"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bern:<br>
We were closing in Golem shaped monsters infect us and our children, they have a machine <font color="LEVEL">"Devices Creating Golem" and only 5 but we do not force</font> ... In addition, some of them kept the keys to the cells they store materials that are collected for reproduction itself, collect at least 30 of the Keys to the Red Door. I'll help you, here is a list of monsters in which they are kept: <br>
<font color="LEVEL">Scout Nornil 1, spicules Warrior 1, Scout Nornil 2, spicules Warrior 2, spicules Ratnikov Commander (1) Commander Ratnikov spicules (2), spicules Adjutant Ratnikov</font> ... <br><br>
Thank you, O brave warrior, we're waiting for you with good news!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bern:<br>
We were closing in Golem shaped monsters infect us and our children, they have a machine "Devices Creating Golem" and only 5 but we do not force ... In addition, some of them kept the keys to the cells they store materials that are collected for reproduction itself, collect at least 30 of the Keys to the Red Door. I'll help you, here is a list of monsters in which they are kept: <br>
Scout Nornil 1, spicules Warrior 1, Scout Nornil 2, spicules Warrior 2, spicules Ratnikov Commander (1) Commander Ratnikov spicules (2), spicules Adjutant Ratnikov ... <br><br>
Thank you, O brave warrior, we're waiting for you with good news!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
I have heard of your exploits! You brought all that I asked for?<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00588_HeadOnCrash 33796-05.html">"Tell everything"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Thank you, we are all indebted to you! <br>
However, this is very small, we only recaptured the golems for a few days, they can launch an attack at any moment .. That's your reward for your lion heart! But you know may need your help at any time!
</body></html>

View File

@@ -0,0 +1,163 @@
/*
* 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.Q00588_HeadOnCrash;
import java.util.HashSet;
import java.util.Set;
import org.l2jmobius.gameserver.enums.QuestSound;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.holders.NpcLogListHolder;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
import org.l2jmobius.gameserver.network.NpcStringId;
/**
* Head-on Crash (588)
* @URL https://l2wiki.com/Head-on_Crash
* @author Dmitri
*/
public class Q00588_HeadOnCrash extends Quest
{
// Npc
private static final int BERNA = 33796;
// Monsters
private static final int SPICULA_LARVA = 23304;
// Misc
private static final String KILL_COUNT_VAR = "KillCount";
private static final int MIN_LEVEL = 93;
private static final int MAX_LEVEL = 103;
public Q00588_HeadOnCrash()
{
super(588);
addStartNpc(BERNA);
addTalkId(BERNA);
addKillId(SPICULA_LARVA);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "lvl.htm");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
switch (event)
{
case "33796-02.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "33796-05.html":
{
giveAdena(player, 587070, true);
addExpAndSp(player, 1193302530L, 1193280);
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (npc.getId() == BERNA)
{
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "33796-01.htm";
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "33796-03.html";
}
else if (qs.isCond(2))
{
htmltext = "33796-04.html";
}
break;
}
case State.COMPLETED:
{
if (!qs.isNowAvailable())
{
htmltext = "33796-00.htm";
break;
}
qs.setState(State.CREATED);
// fallthrough
}
}
}
return htmltext;
}
@Override
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
if (killCount < 5)
{
qs.set(KILL_COUNT_VAR, killCount);
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
sendNpcLogList(killer);
}
else
{
qs.setCond(2, true);
qs.unset(KILL_COUNT_VAR);
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public Set<NpcLogListHolder> getNpcLogList(PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1))
{
final Set<NpcLogListHolder> holder = new HashSet<>();
holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_SPICULA_LARVA.getId(), true, qs.getInt(KILL_COUNT_VAR)));
return holder;
}
return super.getNpcLogList(player);
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Hmm ... For you, as long as there is no work.<br>
(This quest is available after reaching level 93-103.)
</body></html>

View File

@@ -122,6 +122,7 @@ import quests.Q00564_BasicMissionKartiasLabyrinthSolo.Q00564_BasicMissionKartias
import quests.Q00565_BasicMissionFairySettlementWest.Q00565_BasicMissionFairySettlementWest;
import quests.Q00566_BasicMissionFairySettlementEast.Q00566_BasicMissionFairySettlementEast;
import quests.Q00567_BasicMissionIsleOfSouls.Q00567_BasicMissionIsleOfSouls;
import quests.Q00568_SpecialMissionNornilsCave.Q00568_SpecialMissionNornilsCave;
import quests.Q00569_BasicMissionSealOfShilen.Q00569_BasicMissionSealOfShilen;
import quests.Q00574_SpecialMissionNornilsGarden.Q00574_SpecialMissionNornilsGarden;
import quests.Q00580_BeyondTheMemories.Q00580_BeyondTheMemories;
@@ -130,6 +131,7 @@ import quests.Q00582_WashBloodWithBlood.Q00582_WashBloodWithBlood;
import quests.Q00583_MeaningOfSurvival.Q00583_MeaningOfSurvival;
import quests.Q00584_NeverSayGoodBye.Q00584_NeverSayGoodBye;
import quests.Q00587_MoreAggressiveOperation.Q00587_MoreAggressiveOperation;
import quests.Q00588_HeadOnCrash.Q00588_HeadOnCrash;
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
@@ -582,7 +584,7 @@ public class QuestMasterHandler
Q00565_BasicMissionFairySettlementWest.class,
Q00566_BasicMissionFairySettlementEast.class,
Q00567_BasicMissionIsleOfSouls.class,
Q00568_SpecialMissionNornilsCave.class, // TODO: Not done.
Q00568_SpecialMissionNornilsCave.class,
Q00569_BasicMissionSealOfShilen.class,
Q00570_SpecialMissionKartiasLabyrinthParty.class, // TODO: Not done.
Q00571_SpecialMissionProofOfUnityFieldRaid.class, // TODO: Not done.
@@ -600,7 +602,7 @@ public class QuestMasterHandler
Q00585_CantGoAgainstTheTime.class, // TODO: Not done.
Q00586_MutatedCreatures.class, // TODO: Not done.
Q00587_MoreAggressiveOperation.class,
Q00588_HeadOnCrash.class, // TODO: Not done.
Q00588_HeadOnCrash.class,
Q00589_ASecretChange.class, // FIXME: Custom.
Q00590_ToEachTheirOwn.class, // FIXME: Custom.
Q00591_GreatAmbitions.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 org.l2jmobius.Config;
import org.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Q00568_SpecialMissionNornilsCave extends Quest
{
private static final int START_NPC = 34413;
public Q00568_SpecialMissionNornilsCave()
{
super(568);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

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 Q00588_HeadOnCrash extends Quest
{
private static final int START_NPC = 33796;
public Q00588_HeadOnCrash()
{
super(588);
addStartNpc(START_NPC);
addTalkId(START_NPC);
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
}
}

View File

@@ -7,7 +7,6 @@
557 Red Libra Request - Fall of Etina
558 Request from the Red Libra Guild - Sea of Spores
559 Request from the Red Libra Guild - Krofin’s Nest
568 Special Mission: Nornil's Cave
570 Special Mission: Kartia's Labyrinth (Party)
571 Special Mission: Proof of Unity (Field Raid)
572 Special Mission: Proof of Courage (Field Raid)
@@ -18,7 +17,6 @@
579 Basic Mission: Blazing Swamp
585 Can't Go Against the Time
586 Mutated Creatures
588 Head-on Crash
591 Great Ambitions
593 Basic Mission: Pagan Temple
594 Basic Mission: Dimensional Rift

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
Do you have something else you need?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 30499-02.html">"How do I go to the Altar of Evil?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Tapoy:<br>
Are you here on a mission from the Adventure Guild? I've seen many who are. If so, I'll explain the details.<br>
You'll have to select <font color="LEVEL">Dark Elf Village</font> from the teleport link I give you and go there. The area for an active mission will appear <font color="LEVEL">at the top of the teleport list</font> so it won't be hard to find.<br>
But you have to watch out for one thing.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 30499-03.html">"What's that?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
There's no Gatekeeper in the Dark Elf Village. In the past, there had been a Gatekeeper, however, now, due to a tragic accident, there is only a <font color="LEVEL">Teleport Device</font>.<br>
Anyway, there's no other option. Go and check the missions.<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tapoy:<br>
There's no Gatekeeper in the Dark Elf Village. In the past, there had been a Gatekeeper, however, now, due to a tragic accident, there is only a <font color="LEVEL">Teleport Device</font>.<br>
Anyway, there's no other option. Go and check the missions.<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.<br>
<font color="LEVEL">(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)</font>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-02.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
Don't tell me you're going to walk all the way up there. I know a better way.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-03.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Heset:<br>
When setting out for a joumey, veteran adventurers always pack <font color="LEVEL">Scrolls of Escape</font>, it teleports the user immediately to the closest village or to the check point.<br>
If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You can use the scroll now or later. Just don't forget to <font color="LEVEL">pack enough Scrolls of Escape once you retum to town</font>.<br>
You can easily buy Scrolls of Escape at stores. Be safe until we meet again.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 33780-05.html">"Go on."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Heset:<br>
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
Don't tell me you're going to walk all the way up there. I know a better way.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave usescroll">"Go on Aden."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Truth Seeker Devianne:<br>
In order to take on this mission, you must first build more trust with us.<br>
<font color="LEVEL">(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)</font><br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-02.htm">"Sure, no problem!"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-03.htm">"Go on."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-04.htm">"Alright."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Adventure Guildsman Penny:<br>
You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.<br>
But if you want to listen to the explanation again, I'd be happy to tell you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-05.html">"Receive the mission."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Good choice. Now, go to <font color="LEVEL">Black Wizard Lapathia</font> at the <font color="LEVEL">Altar of Evil</font> and do the mission that she gives you. When the mission is done, come back to me.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-06.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Welcome back! So, did you do a good job?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-07.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-08.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Adventure Guildsman Penny:<br>
To do the mission, you have to go to <font color="LEVEL">Black Wizard Lapathia</font> at the <font color="LEVEL">Altar of Evil</font>. Do the mission that Lapathia gives. Then, come back to me. <br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Adventure Guildsman Penny:<br>
I'm sure the Gatekeeper of the town, <font color="LEVEL">Gatekeeper Elise</font>, could give you a better explanation. Go to her and ask how you can go to the <font color="LEVEL">Altar of Evil</font>. She's very friendly so don't be shy.<br>
If you anive successfully, meet the black wizard, Lapathia, and ask about the mission.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00568_SpecialMissionNornilsCave 34413-10.html">"Yes, I did."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventure Guildsman Penny:<br>
You need to leam how to get there first. Go to <font color="LEVEL">Gatekeeper Elise</font> and ask how to go to the <font color="LEVEL">Altar of Evil</font>. She will give you a detailed explanation.<br>
If you arive successfully, meet the black wizard, Lapathia, and ask about the mission.<br>
</body></html>

View File

@@ -0,0 +1,261 @@
/*
* 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.Q00568_SpecialMissionNornilsCave;
import org.l2jmobius.gameserver.enums.Faction;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.Location;
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;
/**
* Special Mission: Nornil's Cave (568)
* @URL https://l2wiki.com/Special_Mission:_Nornil%27s_Cave
* @author Dmitri
*/
public class Q00568_SpecialMissionNornilsCave extends Quest
{
// NPCs
private static final int PENNY = 34413;
private static final int HESET = 33780;
private static final int TAPOY = 30499;
// Rewards
private static final int SCROLL_OF_ESCAPE_NORNIL_CAVE = 39503;
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
// Misc
private static final int MIN_LEVEL = 93;
private static final int MAX_LEVEL = 95;
// Location
private static final Location TOWN_OF_ADEN = new Location(146632, 26760, -2213);
public Q00568_SpecialMissionNornilsCave()
{
super(568);
addStartNpc(PENNY);
addTalkId(PENNY, HESET, TAPOY);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
addFactionLevel(Faction.ADVENTURE_GUILD, 5, "34413-00.htm");
}
@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 "34413-02.htm":
case "34413-03.htm":
case "34413-06.html":
case "34413-07.html":
case "30499-02.html":
case "33780-02.html":
{
htmltext = event;
break;
}
case "34413-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "34413-08.html": // PENNY
{
qs.setCond(2, true);
htmltext = event;
break;
}
case "30499-03.html": // TAPOY
{
qs.setCond(3, true);
htmltext = event;
break;
}
case "33780-03.html": // HESET
{
qs.setCond(5, true);
htmltext = event;
break;
}
case "33780-05.html": // HESET
{
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
htmltext = event;
break;
}
case "usescroll":
{
// TODO: force player to use item SCROLL_OF_ESCAPE_TOWN_OF_ADEN
player.teleToLocation(TOWN_OF_ADEN); // Town of Aden near Npc Penny - temp solution
takeItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, -1); // remove SOE - temp solution
break;
}
case "34413-10.html":
{
final StringBuilder str = new StringBuilder("00");
checkQuestCompleted(player, str); // Initialize the array with all quests completed
if (str.indexOf("11") != -1) // verify if all quests completed
{
giveItems(player, SCROLL_OF_ESCAPE_NORNIL_CAVE, 1);
addExpAndSp(player, 2386605060L, 2386560);
addFactionPoints(player, Faction.ADVENTURE_GUILD, 260); // add FP points to ADVENTURE_GUILD Faction
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
}
else
{
htmltext = "34413-08.html";
}
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() == PENNY)
{
htmltext = "34413-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case PENNY:
{
if (qs.getCond() == 1)
{
htmltext = "34413-05.html";
}
else if (qs.getCond() == 2)
{
htmltext = "34413-08.html";
}
else if (qs.getCond() == 6)
{
htmltext = "34413-09.html";
}
break;
}
case TAPOY:
{
if (qs.getCond() == 2)
{
htmltext = "30499-01.html";
}
else if (qs.getCond() == 3)
{
final QuestState st = player.getQuestState("Q10386_MysteriousJourney");
if ((st != null) && st.isCompleted())
{
qs.setCond(4, true);
htmltext = null;
}
else
{
htmltext = "30499-03.html";
}
}
else if (qs.getCond() == 4)
{
htmltext = "30499-04.html";
}
break;
}
case HESET:
{
if (qs.getCond() == 4)
{
htmltext = "33780-01.html";
}
else if (qs.getCond() == 5)
{
final StringBuilder str = new StringBuilder("00");
checkQuestCompleted(player, str); // Initialize the array with all quests completed
if (str.indexOf("11") != -1) // verify if all quests completed
{
qs.setCond(6, true);
htmltext = "33780-04.html";
}
else
{
htmltext = "33780-03.html";
}
}
break;
}
}
break;
}
case State.COMPLETED:
{
if (qs.isNowAvailable())
{
qs.setState(State.CREATED);
htmltext = "34413-01.htm";
}
else
{
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
}
break;
}
}
return htmltext;
}
private StringBuilder checkQuestCompleted(PlayerInstance player, StringBuilder string)
{
int index = 0;
final char ch = '1';
final QuestState st1 = player.getQuestState("Q00753_ReactingToACrisis");
if ((st1 != null) && st1.isCompleted())
{
index = 0;
string.setCharAt(index, ch);
}
final QuestState st2 = player.getQuestState("Q00588_HeadOnCrash");
if ((st2 != null) && st2.isCompleted())
{
index = 1;
string.setCharAt(index, ch);
}
return string;
}
}

View File

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

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Hmm ... For you, as long as there is no work.<br>
(This quest is available once a day. Updating quest takes place daily at 6:30 am.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Wanderer Wanderer! You are just in time! I need your help .. coming contamination on all of us .. help us, we need such brave war like you!<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00588_HeadOnCrash 33796-02.htm">"I'll help you!"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bern:<br>
We were closing in Golem shaped monsters infect us and our children, they have a machine <font color="LEVEL">"Devices Creating Golem" and only 5 but we do not force</font> ... In addition, some of them kept the keys to the cells they store materials that are collected for reproduction itself, collect at least 30 of the Keys to the Red Door. I'll help you, here is a list of monsters in which they are kept: <br>
<font color="LEVEL">Scout Nornil 1, spicules Warrior 1, Scout Nornil 2, spicules Warrior 2, spicules Ratnikov Commander (1) Commander Ratnikov spicules (2), spicules Adjutant Ratnikov</font> ... <br><br>
Thank you, O brave warrior, we're waiting for you with good news!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Bern:<br>
We were closing in Golem shaped monsters infect us and our children, they have a machine "Devices Creating Golem" and only 5 but we do not force ... In addition, some of them kept the keys to the cells they store materials that are collected for reproduction itself, collect at least 30 of the Keys to the Red Door. I'll help you, here is a list of monsters in which they are kept: <br>
Scout Nornil 1, spicules Warrior 1, Scout Nornil 2, spicules Warrior 2, spicules Ratnikov Commander (1) Commander Ratnikov spicules (2), spicules Adjutant Ratnikov ... <br><br>
Thank you, O brave warrior, we're waiting for you with good news!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
I have heard of your exploits! You brought all that I asked for?<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00588_HeadOnCrash 33796-05.html">"Tell everything"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Thank you, we are all indebted to you! <br>
However, this is very small, we only recaptured the golems for a few days, they can launch an attack at any moment .. That's your reward for your lion heart! But you know may need your help at any time!
</body></html>

View File

@@ -0,0 +1,163 @@
/*
* 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.Q00588_HeadOnCrash;
import java.util.HashSet;
import java.util.Set;
import org.l2jmobius.gameserver.enums.QuestSound;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.holders.NpcLogListHolder;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
import org.l2jmobius.gameserver.network.NpcStringId;
/**
* Head-on Crash (588)
* @URL https://l2wiki.com/Head-on_Crash
* @author Dmitri
*/
public class Q00588_HeadOnCrash extends Quest
{
// Npc
private static final int BERNA = 33796;
// Monsters
private static final int SPICULA_LARVA = 23304;
// Misc
private static final String KILL_COUNT_VAR = "KillCount";
private static final int MIN_LEVEL = 93;
private static final int MAX_LEVEL = 103;
public Q00588_HeadOnCrash()
{
super(588);
addStartNpc(BERNA);
addTalkId(BERNA);
addKillId(SPICULA_LARVA);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "lvl.htm");
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
String htmltext = null;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
switch (event)
{
case "33796-02.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "33796-05.html":
{
giveAdena(player, 587070, true);
addExpAndSp(player, 1193302530L, 1193280);
qs.exitQuest(QuestType.DAILY, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (npc.getId() == BERNA)
{
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "33796-01.htm";
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "33796-03.html";
}
else if (qs.isCond(2))
{
htmltext = "33796-04.html";
}
break;
}
case State.COMPLETED:
{
if (!qs.isNowAvailable())
{
htmltext = "33796-00.htm";
break;
}
qs.setState(State.CREATED);
// fallthrough
}
}
}
return htmltext;
}
@Override
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
if (killCount < 5)
{
qs.set(KILL_COUNT_VAR, killCount);
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
sendNpcLogList(killer);
}
else
{
qs.setCond(2, true);
qs.unset(KILL_COUNT_VAR);
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public Set<NpcLogListHolder> getNpcLogList(PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(1))
{
final Set<NpcLogListHolder> holder = new HashSet<>();
holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_SPICULA_LARVA.getId(), true, qs.getInt(KILL_COUNT_VAR)));
return holder;
}
return super.getNpcLogList(player);
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Bern:<br>
Hmm ... For you, as long as there is no work.<br>
(This quest is available after reaching level 93-103.)
</body></html>

View File

@@ -122,6 +122,7 @@ import quests.Q00564_BasicMissionKartiasLabyrinthSolo.Q00564_BasicMissionKartias
import quests.Q00565_BasicMissionFairySettlementWest.Q00565_BasicMissionFairySettlementWest;
import quests.Q00566_BasicMissionFairySettlementEast.Q00566_BasicMissionFairySettlementEast;
import quests.Q00567_BasicMissionIsleOfSouls.Q00567_BasicMissionIsleOfSouls;
import quests.Q00568_SpecialMissionNornilsCave.Q00568_SpecialMissionNornilsCave;
import quests.Q00569_BasicMissionSealOfShilen.Q00569_BasicMissionSealOfShilen;
import quests.Q00574_SpecialMissionNornilsGarden.Q00574_SpecialMissionNornilsGarden;
import quests.Q00580_BeyondTheMemories.Q00580_BeyondTheMemories;
@@ -130,6 +131,7 @@ import quests.Q00582_WashBloodWithBlood.Q00582_WashBloodWithBlood;
import quests.Q00583_MeaningOfSurvival.Q00583_MeaningOfSurvival;
import quests.Q00584_NeverSayGoodBye.Q00584_NeverSayGoodBye;
import quests.Q00587_MoreAggressiveOperation.Q00587_MoreAggressiveOperation;
import quests.Q00588_HeadOnCrash.Q00588_HeadOnCrash;
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
@@ -600,7 +602,7 @@ public class QuestMasterHandler
Q00565_BasicMissionFairySettlementWest.class,
Q00566_BasicMissionFairySettlementEast.class,
Q00567_BasicMissionIsleOfSouls.class,
Q00568_SpecialMissionNornilsCave.class, // TODO: Not done.
Q00568_SpecialMissionNornilsCave.class,
Q00569_BasicMissionSealOfShilen.class,
Q00570_SpecialMissionKartiasLabyrinthParty.class, // TODO: Not done.
Q00571_SpecialMissionProofOfUnityFieldRaid.class, // TODO: Not done.
@@ -619,7 +621,7 @@ public class QuestMasterHandler
Q00585_CantGoAgainstTheTime.class, // TODO: Not done.
Q00586_MutatedCreatures.class, // TODO: Not done.
Q00587_MoreAggressiveOperation.class,
Q00588_HeadOnCrash.class, // TODO: Not done.
Q00588_HeadOnCrash.class,
Q00589_ASecretChange.class, // FIXME: Custom.
Q00590_ToEachTheirOwn.class, // FIXME: Custom.
Q00591_GreatAmbitions.class, // TODO: Not done.

Some files were not shown because too many files have changed in this diff Show More