Nightmare Kamaloka.
Contributed by NviX.
This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-1.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-1.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
Do you know about <font color="LEVEL">Nightmare Kamaloka?</font> It's a place for those who had to leave their homes, waiting for the right moment to go back. <br>
|
||||
The way to Nightmare Kamaloka is very dangerous and it changes every time, so it's not just for anyone. The reason why people still went though, is because it was a safe place.<br>
|
||||
Most of those people were fugitives or those whose lives were threatened.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00760_BlockTheExit 30870-2.html">"I see."</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-2.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-2.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
Those creatures grew stonger there and whenever the gates opened, they were able to go to the places they wanted.<br>
|
||||
However, when the <font color="LEVEL">Seal of Punishment</font> was released, it affected multiple dimensions. A lot of things were changed because of that impact, and even Nightmare Kamaloka was affected. I'm not sure about the details, but the various paths to Nightmare Kamaloka stopped working.<br>
|
||||
The problem is that the dimensional door is linked to a place near Aden.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00760_BlockTheExit 30870-3.html">"I see."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-3.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-3.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
Those creatures in Nightmare Kamaloka have been trying to come out to Aden. That's why we had to plan a battle there. The difference in the dimensions is making it difficult, though. It's because they keep appearing out from the other dimensions, even if we get rid of them.<br>
|
||||
We have to defeat the creatures from each of the dimensions. In order to do that, we need the help of as many adventurers as possible. Thanks for listening to me.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00760_BlockTheExit 30870-7.html">"I'll help you."</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-4.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-4.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
<!--TODO: Find off text.-->
|
||||
Are you here now? Collect army soldiers and battle finally Nightmare Kamaloka!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-5.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-5.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
<!--TODO: Find of text.-->
|
||||
Oh, you're alive? I am very proud of you and your soldiers that you were able to slay the monsters.<br>
|
||||
You deserve my reward.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00760_BlockTheExit 30870-8.html">Get reward!</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-6.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-6.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
<!--TODO: Find off text.-->
|
||||
You already told me that you are a brave warrior and got my reward.<br>
|
||||
(You already complete this quest today.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-7.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-7.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
I'll tell you again. Please don't let them use Aden as an exit. Go to Nightmare Kamaloka and defeat <font color="LEVEL">Tracker Mino, Ill-fated Princess Sola, Fallen Angel Ariarc, and Confined Princess Sirra</font>, in that order. Lastly, defeat <font color="LEVEL">Betrayed Dark Rider</font>.<br>
|
||||
The monsters in Nightmare Kamaloka won't be easy to defeat, so make sure to take your friends with you. I won't say thanks until you come back safe and sound.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-8.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/30870-8.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Kurtiz:<br>
|
||||
<!--TODO: Find off text.-->
|
||||
Keep reward. Now all the soldiers will know that you are a brave killer monsters!
|
||||
</body></html>
|
117
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/Q00760_BlockTheExit.java
vendored
Normal file
117
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/Q00760_BlockTheExit.java
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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.Q00760_BlockTheExit;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author NviX
|
||||
*/
|
||||
public class Q00760_BlockTheExit extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int KURTIZ = 30870;
|
||||
// Monsters
|
||||
private static final int DARK_RIDER = 26102;
|
||||
// Items
|
||||
private static final int CURTIZ_REWARD_BOX = 46560;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 99;
|
||||
private static final int MAX_LEVEL = 105;
|
||||
|
||||
public Q00760_BlockTheExit()
|
||||
{
|
||||
super(760, Q00760_BlockTheExit.class.getSimpleName(), "Block the Exit");
|
||||
addStartNpc(KURTIZ);
|
||||
addTalkId(KURTIZ);
|
||||
addKillId(DARK_RIDER);
|
||||
addCondMinLevel(MIN_LEVEL, "no_level.html");
|
||||
addCondMaxLevel(MAX_LEVEL, "no_level.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "30870-7.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "30870-8.html":
|
||||
{
|
||||
giveItems(player, CURTIZ_REWARD_BOX, 1);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "30870-1.html";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "30870-4.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "30870-5.html";
|
||||
}
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
if (!qs.isNowAvailable())
|
||||
{
|
||||
htmltext = "30870-6.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "30870-1.html";
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/no_level.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00760_BlockTheExit/no_level.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Kurtiz:<br>
|
||||
Please, go away.<br>
|
||||
(This quest is available for characters lvls 99-105.)
|
||||
</body></html>
|
Reference in New Issue
Block a user