Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
You're Ertheia. Child of the wind. Why would you try to kill Giselle all the way out here?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-02.html">"I didn't know that it was Giselle. She attacked first!"</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
That's not a good reason. The fact that you came all the way here alone is suspicious.<br>
|
||||
You were after Giselle's life in the first place!<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-03.html">"I have Queen Navari's Mark."</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-03.html
vendored
Normal file
6
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-03.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
The Queen of Ertheia sent you?<br>
|
||||
All right, then. Since Giselle became very aggressive after becoming a vampire, I will take your word on your dispute.<br>
|
||||
But what brings you all the way here? Why were you looking for Giselle? I can't imagine Ertheia having business with her.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-04.html">"I was looking for you."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-04.html
vendored
Normal file
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-04.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
Me?<br>
|
||||
What do you want with a wanderer like me? And I don't see why I should even help you. You tried to harm my sister! Good thing I stopped by to check on her.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-05.html">"It's about the Prophecy Machine."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
Prophecy Machine?<br>
|
||||
What about the Prophecy Machine?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-06.html">"Here, take a look."</button>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-06.html
vendored
Normal file
9
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-06.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
<center><font color="LEVEL">A red river flows...hard frost upon the earth...<br1>
|
||||
One of half-noble blood,<br1>
|
||||
descending with the winds to deliver from...<br1>
|
||||
When joined by one...<br1>
|
||||
The path will open to the Grail.</font></center><br1>
|
||||
So why are you showing me this?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-07.html">"I know that you're interested in the Grail."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-07.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
I see. Did Karla tell you? So she still remembers me mentioning the Grail that day.<br>
|
||||
Check this out first.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-08.html">"This?"</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-08.html
vendored
Normal file
6
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-08.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
Surprised? I found it while passing Goddard Territory.<br>
|
||||
This looks similar to the Prophecy Machine that you showed me. It's probably a part of the whole.<br>
|
||||
And about what's written on your machine... I think I know what it's saying.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-09.html">"Do tell."</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-09.html
vendored
Normal file
6
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-09.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
<font color="LEVEL">A red river flows...Hm. I think I can see where this is going.</font><br>
|
||||
It's talking about this continent. A red river flows...hard frost upon the earth. You see, <font color="LEVEL">Elmore</font> rules over a cold part of the land, which it once shared with Aden as Elmoreden. Now the whole continent is swarming with Shilen's bloody works.<br>
|
||||
But this part is surprising. When joined by one...the path will open to the Grail. Truly?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead 33979-10.html">"Who is this one?"</button>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-10.html
vendored
Normal file
8
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-10.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
<font color="LEVEL">One of half-noble blood...</font><br>
|
||||
Ha! Even the prophecy of Ertheia describes me so, huh? Well, it's right. My mother was a commoner. A tragic farce, to be loved by the king! So here I am, a prince only in name. And descending with the winds to deliver from...yes, that is me. I happened to save Faeron once. <font color="LEVEL">Kain</font> is your man!<br>
|
||||
The <font color="LEVEL">Grail</font>...if it's the same <font color="LEVEL">Grail</font>, then...anyway, you can read the rest of the prophecy with the fragment that I found, right?<br>
|
||||
Take it. Your village needs it more than I.<br>
|
||||
Hmm? Wait...<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead spawnWizard">"What?"</button>
|
||||
</body></html>
|
2
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-11.html
vendored
Normal file
2
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979-11.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
Who is that person standing there?</body></html>
|
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979.html
vendored
Normal file
5
trunk/dist/game/data/scripts/instances/FortressOfTheDead/33979.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Kain Van Halter:<br>
|
||||
You trespass on the land of death. Who are you?<br1>
|
||||
No matter. You threatened Giselle with harm, and you will answer to me!<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h Quest FortressOfTheDead 33979-01.html">Quest</button>
|
||||
</body></html>
|
169
trunk/dist/game/data/scripts/instances/FortressOfTheDead/FortressOfTheDead.java
vendored
Normal file
169
trunk/dist/game/data/scripts/instances/FortressOfTheDead/FortressOfTheDead.java
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package instances.FortressOfTheDead;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.Movie;
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.instancezone.Instance;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
import instances.AbstractInstance;
|
||||
import quests.Q10752_WindsOfFateAPromise.Q10752_WindsOfFateAPromise;
|
||||
|
||||
/**
|
||||
* Fortress of the Dead instance zone.
|
||||
* @author Gladicek
|
||||
*/
|
||||
public final class FortressOfTheDead extends AbstractInstance
|
||||
{
|
||||
// NPCs
|
||||
private static final int BROKEN_BOOKSHELF = 31526;
|
||||
private static final int VAMPIRIC_SOLDIER = 19567;
|
||||
private static final int VON_HELLMAN = 19566;
|
||||
private static final int MYSTERIOUS_WIZARD = 33980;
|
||||
private static final int KAIN_VAN_HALTER = 33979;
|
||||
// Items
|
||||
private static final int KAIN_PROPHECY_MACHINE_FRAGMENT = 39538;
|
||||
// Location
|
||||
private static final Location VON_HELLMAN_LOC = new Location(57963, -28676, 568, 49980);
|
||||
private static final Location MYSTERIOUS_WIZARD_LOC = new Location(57982, -28645, 568);
|
||||
private static final Location KAIN_VAN_HALTER_LOC = new Location(57963, -28676, 568, 49980);
|
||||
// Misc
|
||||
private static final int TEMPLATE_ID = 254;
|
||||
|
||||
public FortressOfTheDead()
|
||||
{
|
||||
addStartNpc(BROKEN_BOOKSHELF);
|
||||
addFirstTalkId(KAIN_VAN_HALTER);
|
||||
addTalkId(BROKEN_BOOKSHELF, KAIN_VAN_HALTER, MYSTERIOUS_WIZARD);
|
||||
addKillId(VAMPIRIC_SOLDIER, VON_HELLMAN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
|
||||
if (event.equals("enterInstance"))
|
||||
{
|
||||
enterInstance(player, npc, TEMPLATE_ID);
|
||||
}
|
||||
else
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
if (isFotDInstance(world))
|
||||
{
|
||||
switch (event)
|
||||
{
|
||||
case "33979-01.html":
|
||||
case "33979-02.html":
|
||||
case "33979-03.html":
|
||||
case "33979-04.html":
|
||||
case "33979-05.html":
|
||||
case "33979-06.html":
|
||||
case "33979-07.html":
|
||||
case "33979-08.html":
|
||||
case "33979-09.html":
|
||||
case "33979-10.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "exitInstance":
|
||||
{
|
||||
world.finishInstance(0);
|
||||
break;
|
||||
}
|
||||
case "vampire_dead":
|
||||
{
|
||||
addSpawn(VON_HELLMAN, VON_HELLMAN_LOC, false, 0, false, world.getId());
|
||||
break;
|
||||
}
|
||||
case "hellman_dead":
|
||||
{
|
||||
addSpawn(KAIN_VAN_HALTER, KAIN_VAN_HALTER_LOC, false, 0, false, world.getId());
|
||||
break;
|
||||
}
|
||||
case "spawnWizard":
|
||||
{
|
||||
showOnScreenMsg(player, NpcStringId.TALK_TO_THE_MYSTERIOUS_WIZARD, ExShowScreenMessage.TOP_CENTER, 5000);
|
||||
final L2Npc wizzard = addSpawn(MYSTERIOUS_WIZARD, MYSTERIOUS_WIZARD_LOC, true, 0, false, world.getId());
|
||||
wizzard.setSummoner(player);
|
||||
wizzard.setTitle(player.getAppearance().getVisibleName());
|
||||
wizzard.broadcastInfo();
|
||||
htmltext = "33979-11.html";
|
||||
break;
|
||||
}
|
||||
case "endCinematic":
|
||||
{
|
||||
final QuestState qs = player.getQuestState(Q10752_WindsOfFateAPromise.class.getSimpleName());
|
||||
|
||||
if ((qs != null) && qs.isCond(8))
|
||||
{
|
||||
qs.setCond(9, true);
|
||||
giveItems(player, KAIN_PROPHECY_MACHINE_FRAGMENT, 1);
|
||||
}
|
||||
world.getNpc(KAIN_VAN_HALTER).deleteMe();
|
||||
world.getNpc(MYSTERIOUS_WIZARD).deleteMe();
|
||||
playMovie(player, Movie.ERT_QUEST_B);
|
||||
startQuestTimer("exitInstance", 25000, npc, player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
if (isFotDInstance(world))
|
||||
{
|
||||
if (npc.getId() == VAMPIRIC_SOLDIER)
|
||||
{
|
||||
if (world.getAliveNpcs(VAMPIRIC_SOLDIER).isEmpty())
|
||||
{
|
||||
startQuestTimer("vampire_dead", 3000, npc, player);
|
||||
}
|
||||
}
|
||||
else if (npc.getId() == VON_HELLMAN)
|
||||
{
|
||||
npc.deleteMe();
|
||||
playMovie(player, Movie.ERT_QUEST_A);
|
||||
startQuestTimer("hellman_dead", 6000, npc, player);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
private boolean isFotDInstance(Instance instance)
|
||||
{
|
||||
return (instance != null) && (instance.getTemplateId() == TEMPLATE_ID);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new FortressOfTheDead();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user