Addition of Camille instance.

Contributed by Sero.
This commit is contained in:
MobiusDevelopment 2021-01-22 03:06:01 +00:00
parent e2717ad7ff
commit 54243f5a23
28 changed files with 840 additions and 4 deletions

View File

@ -18326,4 +18326,28 @@
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220001" name="E_F_Camille_door_01">
<nodes nodeZ="4624">
<node x="-245777" y="148770" />
<node x="-245473" y="148772" />
<node x="-245472" y="148868" />
<node x="-245776" y="148867" />
</nodes>
<location x="-245489" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220002" name="E_F_Camille_door_02">
<nodes nodeZ="4624">
<node x="-246048" y="148772" />
<node x="-245744" y="148771" />
<node x="-245743" y="148867" />
<node x="-246049" y="148868" />
</nodes>
<location x="-246031" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
</list>

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Camille -->
<instance id="266" maxWorlds="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
<time duration="60" empty="3" />
<locations>
<enter type="FIXED">
<location x="-245768" y="147832" z="4662" />
</enter>
<exit type="ORIGIN" />
</locations>
<parameters>
<param name="firstDoorId" value="12220001" />
<param name="secondDoorId" value="12220002" />
</parameters>
<conditions>
<condition type="Party">
<param name="html" value="condNoParty.html" />
</condition>
<condition type="PartyLeader">
<param name="html" value="condNoPartyLeader.html" />
</condition>
<condition type="CommandChannel" />
<condition type="CommandChannelLeader" />
<condition type="GroupMin">
<param name="limit" value="14" />
</condition>
<condition type="GroupMax">
<param name="limit" value="35" />
</condition>
<condition type="Level">
<param name="min" value="90" />
<param name="max" value="115" />
</condition>
<condition type="Distance" />
<condition type="Reenter" />
</conditions>
<reenter apply="NONE">
<reset day="WEDNESDAY" hour="6" minute="30" />
</reenter>
<doorlist>
<door id="12220001" />
<door id="12220002" />
</doorlist>
<spawnlist>
<group>
<npc id="26236" x="-245752" y="150392" z="11845" heading="49140" /> <!-- Camille -->
<npc id="26243" x="-245768" y="148472" z="4662" heading="49140" /> <!-- Mamut -->
<npc id="26244" x="-245752" y="151112" z="4662" heading="49140" /> <!-- Isburg -->
</group>
<group name="teleport" spawnByDefault="false">
<npc id="34324" x="-245752" y="151112" z="4662" heading="16198" /> <!-- Transmission Unit -->
</group>
</spawnlist>
</instance>

View File

@ -1,7 +1,7 @@
<html><body>Erda:<br>
Thank you. Without your help, we couldn't have won easily.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0"><font color="LEVEL">"I want to enter Outer Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda tp_inner"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Camille enterInstance"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda teleport"><font color="LEVEL">"Please open the way to Etinah Great Temple."</font></Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Transporter:<br>
This device sends you up.
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Camille teleup">Enter the Inner Messiah Castle</Button>
</body></html>

View File

@ -0,0 +1,121 @@
/*
* 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 ai.bosses.Camille;
import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.instancezone.Instance;
import instances.AbstractInstance;
/**
* Camille instance zone.
* @author Sero
* @URL https://www.youtube.com/watch?v=jpv9S_xQVrA
*/
public class Camille extends AbstractInstance
{
// NPCs
private static final int CAMILLE = 26236;
private static final int MAMUT = 26243;
private static final int ISBURG = 26244;
private static final int TRANSMISSION_UNIT = 34324;
private static final int ERDA = 34319;
// Locations
private static final Location ENTER_LOCATION = new Location(-245768, 147832, 4662);
private static final Location TELEPORTER_LOCATION = new Location(-245752, 151112, 4662);
private static final Location CAMILLE_LOCATION = new Location(-245752, 150392, 11845);
// Misc
private static final int TEMPLATE_ID = 266;
public Camille()
{
super(TEMPLATE_ID);
addStartNpc(ERDA);
addTalkId(ERDA, TRANSMISSION_UNIT);
addFirstTalkId(TRANSMISSION_UNIT);
addKillId(CAMILLE, MAMUT, ISBURG);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
switch (event)
{
case "enterInstance":
{
enterInstance(player, npc, TEMPLATE_ID);
final Instance world = player.getInstanceWorld();
if (isInInstance(world))
{
world.getPlayers().forEach(p -> p.teleToLocation(ENTER_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
case "teleup":
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world) && (npc.getId() == TRANSMISSION_UNIT))
{
world.getPlayers().forEach(p -> p.teleToLocation(CAMILLE_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
}
return super.onAdvEvent(event, npc, player);
}
@Override
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
switch (npc.getId())
{
case MAMUT:
{
world.openCloseDoor(world.getTemplateParameters().getInt("firstDoorId"), true);
world.openCloseDoor(world.getTemplateParameters().getInt("secondDoorId"), true);
world.setReenterTime();
break;
}
case ISBURG:
{
addSpawn(TRANSMISSION_UNIT, TELEPORTER_LOCATION, false, 0, false, world.getId());
world.setReenterTime();
break;
}
case CAMILLE:
{
world.finishInstance();
break;
}
}
}
return super.onKill(npc, player, isSummon);
}
public static void main(String[] args)
{
new Camille();
}
}

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
You must be in a party to enter.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
The leader of the party should try to enter.
</body></html>

View File

@ -18326,4 +18326,28 @@
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220001" name="E_F_Camille_door_01">
<nodes nodeZ="4624">
<node x="-245777" y="148770" />
<node x="-245473" y="148772" />
<node x="-245472" y="148868" />
<node x="-245776" y="148867" />
</nodes>
<location x="-245489" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220002" name="E_F_Camille_door_02">
<nodes nodeZ="4624">
<node x="-246048" y="148772" />
<node x="-245744" y="148771" />
<node x="-245743" y="148867" />
<node x="-246049" y="148868" />
</nodes>
<location x="-246031" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
</list>

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Camille -->
<instance id="266" maxWorlds="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
<time duration="60" empty="3" />
<locations>
<enter type="FIXED">
<location x="-245768" y="147832" z="4662" />
</enter>
<exit type="ORIGIN" />
</locations>
<parameters>
<param name="firstDoorId" value="12220001" />
<param name="secondDoorId" value="12220002" />
</parameters>
<conditions>
<condition type="Party">
<param name="html" value="condNoParty.html" />
</condition>
<condition type="PartyLeader">
<param name="html" value="condNoPartyLeader.html" />
</condition>
<condition type="CommandChannel" />
<condition type="CommandChannelLeader" />
<condition type="GroupMin">
<param name="limit" value="14" />
</condition>
<condition type="GroupMax">
<param name="limit" value="35" />
</condition>
<condition type="Level">
<param name="min" value="90" />
<param name="max" value="115" />
</condition>
<condition type="Distance" />
<condition type="Reenter" />
</conditions>
<reenter apply="NONE">
<reset day="WEDNESDAY" hour="6" minute="30" />
</reenter>
<doorlist>
<door id="12220001" />
<door id="12220002" />
</doorlist>
<spawnlist>
<group>
<npc id="26236" x="-245752" y="150392" z="11845" heading="49140" /> <!-- Camille -->
<npc id="26243" x="-245768" y="148472" z="4662" heading="49140" /> <!-- Mamut -->
<npc id="26244" x="-245752" y="151112" z="4662" heading="49140" /> <!-- Isburg -->
</group>
<group name="teleport" spawnByDefault="false">
<npc id="34324" x="-245752" y="151112" z="4662" heading="16198" /> <!-- Transmission Unit -->
</group>
</spawnlist>
</instance>

View File

@ -1,7 +1,7 @@
<html><body>Erda:<br>
Thank you. Without your help, we couldn't have won easily.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0"><font color="LEVEL">"I want to enter Outer Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda tp_inner"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Camille enterInstance"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda teleport"><font color="LEVEL">"Please open the way to Etinah Great Temple."</font></Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Transporter:<br>
This device sends you up.
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Camille teleup">Enter the Inner Messiah Castle</Button>
</body></html>

View File

@ -0,0 +1,121 @@
/*
* 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 ai.bosses.Camille;
import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.instancezone.Instance;
import instances.AbstractInstance;
/**
* Camille instance zone.
* @author Sero
* @URL https://www.youtube.com/watch?v=jpv9S_xQVrA
*/
public class Camille extends AbstractInstance
{
// NPCs
private static final int CAMILLE = 26236;
private static final int MAMUT = 26243;
private static final int ISBURG = 26244;
private static final int TRANSMISSION_UNIT = 34324;
private static final int ERDA = 34319;
// Locations
private static final Location ENTER_LOCATION = new Location(-245768, 147832, 4662);
private static final Location TELEPORTER_LOCATION = new Location(-245752, 151112, 4662);
private static final Location CAMILLE_LOCATION = new Location(-245752, 150392, 11845);
// Misc
private static final int TEMPLATE_ID = 266;
public Camille()
{
super(TEMPLATE_ID);
addStartNpc(ERDA);
addTalkId(ERDA, TRANSMISSION_UNIT);
addFirstTalkId(TRANSMISSION_UNIT);
addKillId(CAMILLE, MAMUT, ISBURG);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
switch (event)
{
case "enterInstance":
{
enterInstance(player, npc, TEMPLATE_ID);
final Instance world = player.getInstanceWorld();
if (isInInstance(world))
{
world.getPlayers().forEach(p -> p.teleToLocation(ENTER_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
case "teleup":
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world) && (npc.getId() == TRANSMISSION_UNIT))
{
world.getPlayers().forEach(p -> p.teleToLocation(CAMILLE_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
}
return super.onAdvEvent(event, npc, player);
}
@Override
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
switch (npc.getId())
{
case MAMUT:
{
world.openCloseDoor(world.getTemplateParameters().getInt("firstDoorId"), true);
world.openCloseDoor(world.getTemplateParameters().getInt("secondDoorId"), true);
world.setReenterTime();
break;
}
case ISBURG:
{
addSpawn(TRANSMISSION_UNIT, TELEPORTER_LOCATION, false, 0, false, world.getId());
world.setReenterTime();
break;
}
case CAMILLE:
{
world.finishInstance();
break;
}
}
}
return super.onKill(npc, player, isSummon);
}
public static void main(String[] args)
{
new Camille();
}
}

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
You must be in a party to enter.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
The leader of the party should try to enter.
</body></html>

View File

@ -18326,4 +18326,28 @@
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220001" name="E_F_Camille_door_01">
<nodes nodeZ="4624">
<node x="-245777" y="148770" />
<node x="-245473" y="148772" />
<node x="-245472" y="148868" />
<node x="-245776" y="148867" />
</nodes>
<location x="-245489" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220002" name="E_F_Camille_door_02">
<nodes nodeZ="4624">
<node x="-246048" y="148772" />
<node x="-245744" y="148771" />
<node x="-245743" y="148867" />
<node x="-246049" y="148868" />
</nodes>
<location x="-246031" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
</list>

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Camille -->
<instance id="266" maxWorlds="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
<time duration="60" empty="3" />
<locations>
<enter type="FIXED">
<location x="-245768" y="147832" z="4662" />
</enter>
<exit type="ORIGIN" />
</locations>
<parameters>
<param name="firstDoorId" value="12220001" />
<param name="secondDoorId" value="12220002" />
</parameters>
<conditions>
<condition type="Party">
<param name="html" value="condNoParty.html" />
</condition>
<condition type="PartyLeader">
<param name="html" value="condNoPartyLeader.html" />
</condition>
<condition type="CommandChannel" />
<condition type="CommandChannelLeader" />
<condition type="GroupMin">
<param name="limit" value="14" />
</condition>
<condition type="GroupMax">
<param name="limit" value="35" />
</condition>
<condition type="Level">
<param name="min" value="90" />
<param name="max" value="115" />
</condition>
<condition type="Distance" />
<condition type="Reenter" />
</conditions>
<reenter apply="NONE">
<reset day="WEDNESDAY" hour="6" minute="30" />
</reenter>
<doorlist>
<door id="12220001" />
<door id="12220002" />
</doorlist>
<spawnlist>
<group>
<npc id="26236" x="-245752" y="150392" z="11845" heading="49140" /> <!-- Camille -->
<npc id="26243" x="-245768" y="148472" z="4662" heading="49140" /> <!-- Mamut -->
<npc id="26244" x="-245752" y="151112" z="4662" heading="49140" /> <!-- Isburg -->
</group>
<group name="teleport" spawnByDefault="false">
<npc id="34324" x="-245752" y="151112" z="4662" heading="16198" /> <!-- Transmission Unit -->
</group>
</spawnlist>
</instance>

View File

@ -1,7 +1,7 @@
<html><body>Erda:<br>
Thank you. Without your help, we couldn't have won easily.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0"><font color="LEVEL">"I want to enter Outer Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda tp_inner"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Camille enterInstance"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda teleport"><font color="LEVEL">"Please open the way to Etinah Great Temple."</font></Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Transporter:<br>
This device sends you up.
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Camille teleup">Enter the Inner Messiah Castle</Button>
</body></html>

View File

@ -0,0 +1,121 @@
/*
* 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 ai.bosses.Camille;
import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.instancezone.Instance;
import instances.AbstractInstance;
/**
* Camille instance zone.
* @author Sero
* @URL https://www.youtube.com/watch?v=jpv9S_xQVrA
*/
public class Camille extends AbstractInstance
{
// NPCs
private static final int CAMILLE = 26236;
private static final int MAMUT = 26243;
private static final int ISBURG = 26244;
private static final int TRANSMISSION_UNIT = 34324;
private static final int ERDA = 34319;
// Locations
private static final Location ENTER_LOCATION = new Location(-245768, 147832, 4662);
private static final Location TELEPORTER_LOCATION = new Location(-245752, 151112, 4662);
private static final Location CAMILLE_LOCATION = new Location(-245752, 150392, 11845);
// Misc
private static final int TEMPLATE_ID = 266;
public Camille()
{
super(TEMPLATE_ID);
addStartNpc(ERDA);
addTalkId(ERDA, TRANSMISSION_UNIT);
addFirstTalkId(TRANSMISSION_UNIT);
addKillId(CAMILLE, MAMUT, ISBURG);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
switch (event)
{
case "enterInstance":
{
enterInstance(player, npc, TEMPLATE_ID);
final Instance world = player.getInstanceWorld();
if (isInInstance(world))
{
world.getPlayers().forEach(p -> p.teleToLocation(ENTER_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
case "teleup":
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world) && (npc.getId() == TRANSMISSION_UNIT))
{
world.getPlayers().forEach(p -> p.teleToLocation(CAMILLE_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
}
return super.onAdvEvent(event, npc, player);
}
@Override
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
switch (npc.getId())
{
case MAMUT:
{
world.openCloseDoor(world.getTemplateParameters().getInt("firstDoorId"), true);
world.openCloseDoor(world.getTemplateParameters().getInt("secondDoorId"), true);
world.setReenterTime();
break;
}
case ISBURG:
{
addSpawn(TRANSMISSION_UNIT, TELEPORTER_LOCATION, false, 0, false, world.getId());
world.setReenterTime();
break;
}
case CAMILLE:
{
world.finishInstance();
break;
}
}
}
return super.onKill(npc, player, isSummon);
}
public static void main(String[] args)
{
new Camille();
}
}

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
You must be in a party to enter.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
The leader of the party should try to enter.
</body></html>

View File

@ -18326,4 +18326,28 @@
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220001" name="E_F_Camille_door_01">
<nodes nodeZ="4624">
<node x="-245777" y="148770" />
<node x="-245473" y="148772" />
<node x="-245472" y="148868" />
<node x="-245776" y="148867" />
</nodes>
<location x="-245489" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
<door id="12220002" name="E_F_Camille_door_02">
<nodes nodeZ="4624">
<node x="-246048" y="148772" />
<node x="-245744" y="148771" />
<node x="-245743" y="148867" />
<node x="-246049" y="148868" />
</nodes>
<location x="-246031" y="148819" z="4640" height="1500" />
<stats basePDef="644" baseMDef="518" baseHpMax="169710" />
<status showHp="false" />
<openStatus default="close" />
</door>
</list>

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Camille -->
<instance id="266" maxWorlds="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
<time duration="60" empty="3" />
<locations>
<enter type="FIXED">
<location x="-245768" y="147832" z="4662" />
</enter>
<exit type="ORIGIN" />
</locations>
<parameters>
<param name="firstDoorId" value="12220001" />
<param name="secondDoorId" value="12220002" />
</parameters>
<conditions>
<condition type="Party">
<param name="html" value="condNoParty.html" />
</condition>
<condition type="PartyLeader">
<param name="html" value="condNoPartyLeader.html" />
</condition>
<condition type="CommandChannel" />
<condition type="CommandChannelLeader" />
<condition type="GroupMin">
<param name="limit" value="14" />
</condition>
<condition type="GroupMax">
<param name="limit" value="35" />
</condition>
<condition type="Level">
<param name="min" value="90" />
<param name="max" value="115" />
</condition>
<condition type="Distance" />
<condition type="Reenter" />
</conditions>
<reenter apply="NONE">
<reset day="WEDNESDAY" hour="6" minute="30" />
</reenter>
<doorlist>
<door id="12220001" />
<door id="12220002" />
</doorlist>
<spawnlist>
<group>
<npc id="26236" x="-245752" y="150392" z="11845" heading="49140" /> <!-- Camille -->
<npc id="26243" x="-245768" y="148472" z="4662" heading="49140" /> <!-- Mamut -->
<npc id="26244" x="-245752" y="151112" z="4662" heading="49140" /> <!-- Isburg -->
</group>
<group name="teleport" spawnByDefault="false">
<npc id="34324" x="-245752" y="151112" z="4662" heading="16198" /> <!-- Transmission Unit -->
</group>
</spawnlist>
</instance>

View File

@ -1,7 +1,7 @@
<html><body>Erda:<br>
Thank you. Without your help, we couldn't have won easily.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0"><font color="LEVEL">"I want to enter Outer Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda tp_inner"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Camille enterInstance"><font color="LEVEL">"I want to enter Inner Messiah's Castle."</font></Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Erda teleport"><font color="LEVEL">"Please open the way to Etinah Great Temple."</font></Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Transporter:<br>
This device sends you up.
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Camille teleup">Enter the Inner Messiah Castle</Button>
</body></html>

View File

@ -0,0 +1,121 @@
/*
* 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 ai.bosses.Camille;
import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.instancezone.Instance;
import instances.AbstractInstance;
/**
* Camille instance zone.
* @author Sero
* @URL https://www.youtube.com/watch?v=jpv9S_xQVrA
*/
public class Camille extends AbstractInstance
{
// NPCs
private static final int CAMILLE = 26236;
private static final int MAMUT = 26243;
private static final int ISBURG = 26244;
private static final int TRANSMISSION_UNIT = 34324;
private static final int ERDA = 34319;
// Locations
private static final Location ENTER_LOCATION = new Location(-245768, 147832, 4662);
private static final Location TELEPORTER_LOCATION = new Location(-245752, 151112, 4662);
private static final Location CAMILLE_LOCATION = new Location(-245752, 150392, 11845);
// Misc
private static final int TEMPLATE_ID = 266;
public Camille()
{
super(TEMPLATE_ID);
addStartNpc(ERDA);
addTalkId(ERDA, TRANSMISSION_UNIT);
addFirstTalkId(TRANSMISSION_UNIT);
addKillId(CAMILLE, MAMUT, ISBURG);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
switch (event)
{
case "enterInstance":
{
enterInstance(player, npc, TEMPLATE_ID);
final Instance world = player.getInstanceWorld();
if (isInInstance(world))
{
world.getPlayers().forEach(p -> p.teleToLocation(ENTER_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
case "teleup":
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world) && (npc.getId() == TRANSMISSION_UNIT))
{
world.getPlayers().forEach(p -> p.teleToLocation(CAMILLE_LOCATION));
world.getDoors().forEach(DoorInstance::closeMe);
}
break;
}
}
return super.onAdvEvent(event, npc, player);
}
@Override
public String onKill(Npc npc, PlayerInstance player, boolean isSummon)
{
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
switch (npc.getId())
{
case MAMUT:
{
world.openCloseDoor(world.getTemplateParameters().getInt("firstDoorId"), true);
world.openCloseDoor(world.getTemplateParameters().getInt("secondDoorId"), true);
world.setReenterTime();
break;
}
case ISBURG:
{
addSpawn(TRANSMISSION_UNIT, TELEPORTER_LOCATION, false, 0, false, world.getId());
world.setReenterTime();
break;
}
case CAMILLE:
{
world.finishInstance();
break;
}
}
}
return super.onKill(npc, player, isSummon);
}
public static void main(String[] args)
{
new Camille();
}
}

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
You must be in a party to enter.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Crystal Prison Entrance Portal:<br>
The leader of the party should try to enter.
</body></html>