Garden of Spirits teleport zones.
This commit is contained in:
parent
cc24fc452c
commit
137945b7a3
1
trunk/dist/game/data/scripts.cfg
vendored
1
trunk/dist/game/data/scripts.cfg
vendored
@ -70,6 +70,7 @@ ai/npc/Teleports/DelusionTeleport/DelusionTeleport.java
|
|||||||
ai/npc/Teleports/DimensionalWarpTeleport/DimensionalWarpTeleport.java
|
ai/npc/Teleports/DimensionalWarpTeleport/DimensionalWarpTeleport.java
|
||||||
ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java
|
ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java
|
||||||
ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java
|
ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java
|
||||||
|
ai/npc/Teleports/GardenOfSpirits/GardenOfSpirits.java
|
||||||
ai/npc/Teleports/GiantServant/GiantServant.java
|
ai/npc/Teleports/GiantServant/GiantServant.java
|
||||||
ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java
|
ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java
|
||||||
ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java
|
ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java
|
||||||
|
112
trunk/dist/game/data/scripts/ai/npc/Teleports/GardenOfSpirits/GardenOfSpirits.java
vendored
Normal file
112
trunk/dist/game/data/scripts/ai/npc/Teleports/GardenOfSpirits/GardenOfSpirits.java
vendored
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
/*
|
||||||
|
* 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.npc.Teleports.GardenOfSpirits;
|
||||||
|
|
||||||
|
import com.l2jmobius.gameserver.model.Location;
|
||||||
|
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||||
|
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
||||||
|
|
||||||
|
import ai.npc.AbstractNpcAI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Garden of Spirits teleport zones.
|
||||||
|
* @author Mobius
|
||||||
|
*/
|
||||||
|
final class GardenOfSpirits extends AbstractNpcAI
|
||||||
|
{
|
||||||
|
// Zones
|
||||||
|
private static final int ZONE_ID_1 = 200213;
|
||||||
|
private static final int ZONE_ID_2 = 200214;
|
||||||
|
private static final int ZONE_ID_3 = 200215;
|
||||||
|
private static final int ZONE_ID_4 = 200216;
|
||||||
|
private static final int ZONE_ID_5 = 200217;
|
||||||
|
private static final int ZONE_ID_6 = 200218;
|
||||||
|
private static final int ZONE_ID_7 = 200219;
|
||||||
|
private static final int ZONE_ID_8 = 200220;
|
||||||
|
// Teleport Locations
|
||||||
|
private static final Location TELEPORT_LOC_1 = new Location(-55613, 84681, -4560);
|
||||||
|
private static final Location TELEPORT_LOC_2 = new Location(-53634, 88711, -3944);
|
||||||
|
private static final Location TELEPORT_LOC_3 = new Location(-42123, 79254, -4056);
|
||||||
|
private static final Location TELEPORT_LOC_4 = new Location(-45887, 77906, -3656);
|
||||||
|
private static final Location TELEPORT_LOC_5 = new Location(-34900, 83422, -3512);
|
||||||
|
private static final Location TELEPORT_LOC_6 = new Location(-42123, 79254, -4056);
|
||||||
|
private static final Location TELEPORT_LOC_7 = new Location(-42123, 91991, -3793);
|
||||||
|
private static final Location TELEPORT_LOC_8 = new Location(-39725, 80900, -3931);
|
||||||
|
|
||||||
|
private GardenOfSpirits()
|
||||||
|
{
|
||||||
|
super(GardenOfSpirits.class.getSimpleName(), "ai/npc/Teleports");
|
||||||
|
addEnterZoneId(ZONE_ID_1, ZONE_ID_2, ZONE_ID_3, ZONE_ID_4, ZONE_ID_5, ZONE_ID_6, ZONE_ID_7, ZONE_ID_8);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onEnterZone(L2Character character, L2ZoneType zone)
|
||||||
|
{
|
||||||
|
if (character.isPlayer())
|
||||||
|
{
|
||||||
|
switch (zone.getId())
|
||||||
|
{
|
||||||
|
case ZONE_ID_1:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_2:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_2);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_3:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_3);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_4:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_4);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_5:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_5);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_6:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_6);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_7:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_7);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZONE_ID_8:
|
||||||
|
{
|
||||||
|
character.teleToLocation(TELEPORT_LOC_8);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.onEnterZone(character, zone);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
new GardenOfSpirits();
|
||||||
|
}
|
||||||
|
}
|
48
trunk/dist/game/data/zones/custom_script.xml
vendored
48
trunk/dist/game/data/zones/custom_script.xml
vendored
@ -392,4 +392,52 @@
|
|||||||
<node X="-46350" Y="-150683" />
|
<node X="-46350" Y="-150683" />
|
||||||
<node X="-47024" Y="-150476" />
|
<node X="-47024" Y="-150476" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_1" id="200213" type="ScriptZone" shape="NPoly" minZ="-4200" maxZ="-3800">
|
||||||
|
<node X="-53409" Y="88130" />
|
||||||
|
<node X="-54099" Y="88167" />
|
||||||
|
<node X="-54629" Y="87458" />
|
||||||
|
<node X="-53755" Y="87364" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_2" id="200214" type="ScriptZone" shape="NPoly" minZ="-4500" maxZ="-4100">
|
||||||
|
<node X="-54961" Y="85204" />
|
||||||
|
<node X="-55716" Y="85716" />
|
||||||
|
<node X="-54918" Y="86634" />
|
||||||
|
<node X="-54345" Y="85978" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_3" id="200215" type="ScriptZone" shape="NPoly" minZ="-3700" maxZ="-3300">
|
||||||
|
<node X="-46141" Y="78790" />
|
||||||
|
<node X="-45343" Y="78010" />
|
||||||
|
<node X="-44150" Y="78544" />
|
||||||
|
<node X="-45453" Y="79647" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_4" id="200216" type="ScriptZone" shape="NPoly" minZ="-4000" maxZ="-3400">
|
||||||
|
<node X="-43070" Y="78727" />
|
||||||
|
<node X="-43384" Y="79738" />
|
||||||
|
<node X="-44762" Y="79660" />
|
||||||
|
<node X="-44273" Y="78483" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_5" id="200217" type="ScriptZone" shape="NPoly" minZ="-4000" maxZ="-3700">
|
||||||
|
<node X="-40486" Y="78625" />
|
||||||
|
<node X="-40414" Y="79360" />
|
||||||
|
<node X="-39347" Y="79271" />
|
||||||
|
<node X="-39298" Y="78587" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_6" id="200218" type="ScriptZone" shape="NPoly" minZ="-3900" maxZ="-3300">
|
||||||
|
<node X="-34457" Y="82936" />
|
||||||
|
<node X="-35342" Y="82996" />
|
||||||
|
<node X="-35857" Y="81423" />
|
||||||
|
<node X="-34606" Y="81865" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_7" id="200219" type="ScriptZone" shape="NPoly" minZ="-4000" maxZ="-3600">
|
||||||
|
<node X="-39771" Y="81358" />
|
||||||
|
<node X="-38891" Y="80975" />
|
||||||
|
<node X="-38332" Y="81729" />
|
||||||
|
<node X="-39284" Y="82749" />
|
||||||
|
</zone>
|
||||||
|
<zone name="garden_of_spirits_teleport_zone_8" id="200220" type="ScriptZone" shape="NPoly" minZ="-3800" maxZ="-3300">
|
||||||
|
<node X="-41168" Y="91949" />
|
||||||
|
<node X="-41620" Y="91384" />
|
||||||
|
<node X="-40647" Y="90710" />
|
||||||
|
<node X="-40329" Y="91280" />
|
||||||
|
</zone>
|
||||||
</list>
|
</list>
|
Loading…
Reference in New Issue
Block a user