diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java deleted file mode 100644 index ff751330f4..0000000000 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java +++ /dev/null @@ -1,64 +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 . - */ -package ai.areas.OrbisTemple; - -import java.util.HashMap; -import java.util.Map; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Orbis Temple AI. - * @author Gladicek - */ -public final class OrbisTempleTeleports extends AbstractNpcAI -{ - private static final Map TELEPORT_DATA = new HashMap<>(); - static - { - TELEPORT_DATA.put(12036, new Location(213983, 53250, -8176)); - TELEPORT_DATA.put(12037, new Location(198022, 90032, -192)); - TELEPORT_DATA.put(12038, new Location(213799, 53253, -14432)); - TELEPORT_DATA.put(12039, new Location(215056, 50467, -8416)); - TELEPORT_DATA.put(12040, new Location(211641, 115547, -12736)); - TELEPORT_DATA.put(12041, new Location(211137, 50501, -14624)); - } - - public OrbisTempleTeleports() - { - addEnterZoneId(TELEPORT_DATA.keySet()); - } - - @Override - public String onEnterZone(L2Character creature, L2ZoneType zone) - { - if (creature.isPlayer() && (creature.getInstanceWorld() == null)) - { - creature.teleToLocation(TELEPORT_DATA.get(zone.getId())); - } - return super.onEnterZone(creature, zone); - } - - public static void main(String[] args) - { - new OrbisTempleTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/custom_script.xml b/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/custom_script.xml index 734e99e130..091f7dc86b 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/custom_script.xml +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/custom_script.xml @@ -476,42 +476,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -568,63 +532,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/teleportzones.xml b/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/teleportzones.xml index 243abe1a42..faf3532f21 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/teleportzones.xml +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/zones/teleportzones.xml @@ -155,4 +155,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java deleted file mode 100644 index 8a1311ce85..0000000000 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java +++ /dev/null @@ -1,97 +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 . - */ -package ai.areas.GainakUnderground; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Gainak Underground Entrance teleport AI. - * @author Mobius - */ -public final class UndergroundEntranceTeleports extends AbstractNpcAI -{ - // Zones - private static final int ZONE_ID_1 = 200207; - private static final int ZONE_ID_2 = 200208; - private static final int ZONE_ID_3 = 200209; - private static final int ZONE_ID_4 = 200210; - private static final int ZONE_ID_5 = 200211; - private static final int ZONE_ID_6 = 200212; - // Teleport Locations - private static final Location TELEPORT_LOC_1 = new Location(-49596, -150715, -14472); - private static final Location TELEPORT_LOC_2 = new Location(17600, -113803, -312); - private static final Location TELEPORT_LOC_3 = new Location(-55283, -147410, -14728); - private static final Location TELEPORT_LOC_4 = new Location(17067, -111738, -320); - private static final Location TELEPORT_LOC_5 = new Location(-46867, -149309, -14216); - private static final Location TELEPORT_LOC_6 = new Location(18784, -115648, -248); - - private UndergroundEntranceTeleports() - { - addEnterZoneId(ZONE_ID_1, ZONE_ID_2, ZONE_ID_3, ZONE_ID_4, ZONE_ID_5, ZONE_ID_6); - } - - @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; - } - } - } - return super.onEnterZone(character, zone); - } - - public static void main(String[] args) - { - new UndergroundEntranceTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java deleted file mode 100644 index ff751330f4..0000000000 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java +++ /dev/null @@ -1,64 +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 . - */ -package ai.areas.OrbisTemple; - -import java.util.HashMap; -import java.util.Map; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Orbis Temple AI. - * @author Gladicek - */ -public final class OrbisTempleTeleports extends AbstractNpcAI -{ - private static final Map TELEPORT_DATA = new HashMap<>(); - static - { - TELEPORT_DATA.put(12036, new Location(213983, 53250, -8176)); - TELEPORT_DATA.put(12037, new Location(198022, 90032, -192)); - TELEPORT_DATA.put(12038, new Location(213799, 53253, -14432)); - TELEPORT_DATA.put(12039, new Location(215056, 50467, -8416)); - TELEPORT_DATA.put(12040, new Location(211641, 115547, -12736)); - TELEPORT_DATA.put(12041, new Location(211137, 50501, -14624)); - } - - public OrbisTempleTeleports() - { - addEnterZoneId(TELEPORT_DATA.keySet()); - } - - @Override - public String onEnterZone(L2Character creature, L2ZoneType zone) - { - if (creature.isPlayer() && (creature.getInstanceWorld() == null)) - { - creature.teleToLocation(TELEPORT_DATA.get(zone.getId())); - } - return super.onEnterZone(creature, zone); - } - - public static void main(String[] args) - { - new OrbisTempleTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/zones/custom_script.xml b/L2J_Mobius_2.5_Underground/dist/game/data/zones/custom_script.xml index a4369aa412..ba5c38f78d 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/zones/custom_script.xml +++ b/L2J_Mobius_2.5_Underground/dist/game/data/zones/custom_script.xml @@ -476,42 +476,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -568,99 +532,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/zones/teleportzones.xml b/L2J_Mobius_2.5_Underground/dist/game/data/zones/teleportzones.xml index 243abe1a42..b876fff7e9 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/zones/teleportzones.xml +++ b/L2J_Mobius_2.5_Underground/dist/game/data/zones/teleportzones.xml @@ -155,4 +155,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java deleted file mode 100644 index 8a1311ce85..0000000000 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java +++ /dev/null @@ -1,97 +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 . - */ -package ai.areas.GainakUnderground; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Gainak Underground Entrance teleport AI. - * @author Mobius - */ -public final class UndergroundEntranceTeleports extends AbstractNpcAI -{ - // Zones - private static final int ZONE_ID_1 = 200207; - private static final int ZONE_ID_2 = 200208; - private static final int ZONE_ID_3 = 200209; - private static final int ZONE_ID_4 = 200210; - private static final int ZONE_ID_5 = 200211; - private static final int ZONE_ID_6 = 200212; - // Teleport Locations - private static final Location TELEPORT_LOC_1 = new Location(-49596, -150715, -14472); - private static final Location TELEPORT_LOC_2 = new Location(17600, -113803, -312); - private static final Location TELEPORT_LOC_3 = new Location(-55283, -147410, -14728); - private static final Location TELEPORT_LOC_4 = new Location(17067, -111738, -320); - private static final Location TELEPORT_LOC_5 = new Location(-46867, -149309, -14216); - private static final Location TELEPORT_LOC_6 = new Location(18784, -115648, -248); - - private UndergroundEntranceTeleports() - { - addEnterZoneId(ZONE_ID_1, ZONE_ID_2, ZONE_ID_3, ZONE_ID_4, ZONE_ID_5, ZONE_ID_6); - } - - @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; - } - } - } - return super.onEnterZone(character, zone); - } - - public static void main(String[] args) - { - new UndergroundEntranceTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/Giran/SuperionFortress/SuperionFortressTeleports.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/Giran/SuperionFortress/SuperionFortressTeleports.java deleted file mode 100644 index 6f80c6618a..0000000000 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/Giran/SuperionFortress/SuperionFortressTeleports.java +++ /dev/null @@ -1,87 +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 . - */ -package ai.areas.Giran.SuperionFortress; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Superion Fortress Teleports AI - * @author Gigi - * @date 2017-03-19 - [12:30:43] - */ -public class SuperionFortressTeleports extends AbstractNpcAI -{ - // Zones - private static final int ZONE_ID_1 = 60166; - private static final int ZONE_ID_2 = 60167; - private static final int ZONE_ID_3 = 60168; - private static final int ZONE_ID_4 = 60169; - // Teleport Locations - private static final Location TELEPORT_LOC_1 = new Location(79331, 194233, -10232); - private static final Location TELEPORT_LOC_2 = new Location(81728, 155577, 480); - private static final Location TELEPORT_LOC_3 = new Location(76178, 194233, -10248); - private static final Location TELEPORT_LOC_4 = new Location(82702, 154180, 480); - - public SuperionFortressTeleports() - { - addEnterZoneId(ZONE_ID_1); // Out of Fortress ---> Superion Port - addEnterZoneId(ZONE_ID_2); // Superion Port ---> Out of Fortress - addEnterZoneId(ZONE_ID_3); // Out of Fortress ---> Superion Starboard - addEnterZoneId(ZONE_ID_4); // Superion Starboard ---> Out of Fortress - } - - @Override - public String onEnterZone(L2Character creature, L2ZoneType zone) - { - if (creature.isPlayer()) - { - switch (zone.getId()) - { - case ZONE_ID_1: - { - creature.teleToLocation(TELEPORT_LOC_1); - break; - } - case ZONE_ID_2: - { - creature.teleToLocation(TELEPORT_LOC_2); - break; - } - case ZONE_ID_3: - { - creature.teleToLocation(TELEPORT_LOC_3); - break; - } - case ZONE_ID_4: - { - creature.teleToLocation(TELEPORT_LOC_4); - break; - } - } - } - return super.onEnterZone(creature, zone); - } - - public static void main(String[] args) - { - new SuperionFortressTeleports(); - } -} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java deleted file mode 100644 index ff751330f4..0000000000 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java +++ /dev/null @@ -1,64 +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 . - */ -package ai.areas.OrbisTemple; - -import java.util.HashMap; -import java.util.Map; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Orbis Temple AI. - * @author Gladicek - */ -public final class OrbisTempleTeleports extends AbstractNpcAI -{ - private static final Map TELEPORT_DATA = new HashMap<>(); - static - { - TELEPORT_DATA.put(12036, new Location(213983, 53250, -8176)); - TELEPORT_DATA.put(12037, new Location(198022, 90032, -192)); - TELEPORT_DATA.put(12038, new Location(213799, 53253, -14432)); - TELEPORT_DATA.put(12039, new Location(215056, 50467, -8416)); - TELEPORT_DATA.put(12040, new Location(211641, 115547, -12736)); - TELEPORT_DATA.put(12041, new Location(211137, 50501, -14624)); - } - - public OrbisTempleTeleports() - { - addEnterZoneId(TELEPORT_DATA.keySet()); - } - - @Override - public String onEnterZone(L2Character creature, L2ZoneType zone) - { - if (creature.isPlayer() && (creature.getInstanceWorld() == null)) - { - creature.teleToLocation(TELEPORT_DATA.get(zone.getId())); - } - return super.onEnterZone(creature, zone); - } - - public static void main(String[] args) - { - new OrbisTempleTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/zones/custom_script.xml b/L2J_Mobius_3.0_Helios/dist/game/data/zones/custom_script.xml index 31ba998330..ba5c38f78d 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/zones/custom_script.xml +++ b/L2J_Mobius_3.0_Helios/dist/game/data/zones/custom_script.xml @@ -476,42 +476,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -568,99 +532,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -873,16 +744,4 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/zones/teleportzones.xml b/L2J_Mobius_3.0_Helios/dist/game/data/zones/teleportzones.xml index 243abe1a42..3408040879 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/zones/teleportzones.xml +++ b/L2J_Mobius_3.0_Helios/dist/game/data/zones/teleportzones.xml @@ -155,4 +155,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java deleted file mode 100644 index 8a1311ce85..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/UndergroundEntranceTeleports.java +++ /dev/null @@ -1,97 +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 . - */ -package ai.areas.GainakUnderground; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Gainak Underground Entrance teleport AI. - * @author Mobius - */ -public final class UndergroundEntranceTeleports extends AbstractNpcAI -{ - // Zones - private static final int ZONE_ID_1 = 200207; - private static final int ZONE_ID_2 = 200208; - private static final int ZONE_ID_3 = 200209; - private static final int ZONE_ID_4 = 200210; - private static final int ZONE_ID_5 = 200211; - private static final int ZONE_ID_6 = 200212; - // Teleport Locations - private static final Location TELEPORT_LOC_1 = new Location(-49596, -150715, -14472); - private static final Location TELEPORT_LOC_2 = new Location(17600, -113803, -312); - private static final Location TELEPORT_LOC_3 = new Location(-55283, -147410, -14728); - private static final Location TELEPORT_LOC_4 = new Location(17067, -111738, -320); - private static final Location TELEPORT_LOC_5 = new Location(-46867, -149309, -14216); - private static final Location TELEPORT_LOC_6 = new Location(18784, -115648, -248); - - private UndergroundEntranceTeleports() - { - addEnterZoneId(ZONE_ID_1, ZONE_ID_2, ZONE_ID_3, ZONE_ID_4, ZONE_ID_5, ZONE_ID_6); - } - - @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; - } - } - } - return super.onEnterZone(character, zone); - } - - public static void main(String[] args) - { - new UndergroundEntranceTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/Giran/SuperionFortress/SuperionFortressTeleports.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/Giran/SuperionFortress/SuperionFortressTeleports.java deleted file mode 100644 index 6f80c6618a..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/Giran/SuperionFortress/SuperionFortressTeleports.java +++ /dev/null @@ -1,87 +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 . - */ -package ai.areas.Giran.SuperionFortress; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Superion Fortress Teleports AI - * @author Gigi - * @date 2017-03-19 - [12:30:43] - */ -public class SuperionFortressTeleports extends AbstractNpcAI -{ - // Zones - private static final int ZONE_ID_1 = 60166; - private static final int ZONE_ID_2 = 60167; - private static final int ZONE_ID_3 = 60168; - private static final int ZONE_ID_4 = 60169; - // Teleport Locations - private static final Location TELEPORT_LOC_1 = new Location(79331, 194233, -10232); - private static final Location TELEPORT_LOC_2 = new Location(81728, 155577, 480); - private static final Location TELEPORT_LOC_3 = new Location(76178, 194233, -10248); - private static final Location TELEPORT_LOC_4 = new Location(82702, 154180, 480); - - public SuperionFortressTeleports() - { - addEnterZoneId(ZONE_ID_1); // Out of Fortress ---> Superion Port - addEnterZoneId(ZONE_ID_2); // Superion Port ---> Out of Fortress - addEnterZoneId(ZONE_ID_3); // Out of Fortress ---> Superion Starboard - addEnterZoneId(ZONE_ID_4); // Superion Starboard ---> Out of Fortress - } - - @Override - public String onEnterZone(L2Character creature, L2ZoneType zone) - { - if (creature.isPlayer()) - { - switch (zone.getId()) - { - case ZONE_ID_1: - { - creature.teleToLocation(TELEPORT_LOC_1); - break; - } - case ZONE_ID_2: - { - creature.teleToLocation(TELEPORT_LOC_2); - break; - } - case ZONE_ID_3: - { - creature.teleToLocation(TELEPORT_LOC_3); - break; - } - case ZONE_ID_4: - { - creature.teleToLocation(TELEPORT_LOC_4); - break; - } - } - } - return super.onEnterZone(creature, zone); - } - - public static void main(String[] args) - { - new SuperionFortressTeleports(); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java deleted file mode 100644 index ff751330f4..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/OrbisTemple/OrbisTempleTeleports.java +++ /dev/null @@ -1,64 +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 . - */ -package ai.areas.OrbisTemple; - -import java.util.HashMap; -import java.util.Map; - -import com.l2jmobius.gameserver.model.Location; -import com.l2jmobius.gameserver.model.actor.L2Character; -import com.l2jmobius.gameserver.model.zone.L2ZoneType; - -import ai.AbstractNpcAI; - -/** - * Orbis Temple AI. - * @author Gladicek - */ -public final class OrbisTempleTeleports extends AbstractNpcAI -{ - private static final Map TELEPORT_DATA = new HashMap<>(); - static - { - TELEPORT_DATA.put(12036, new Location(213983, 53250, -8176)); - TELEPORT_DATA.put(12037, new Location(198022, 90032, -192)); - TELEPORT_DATA.put(12038, new Location(213799, 53253, -14432)); - TELEPORT_DATA.put(12039, new Location(215056, 50467, -8416)); - TELEPORT_DATA.put(12040, new Location(211641, 115547, -12736)); - TELEPORT_DATA.put(12041, new Location(211137, 50501, -14624)); - } - - public OrbisTempleTeleports() - { - addEnterZoneId(TELEPORT_DATA.keySet()); - } - - @Override - public String onEnterZone(L2Character creature, L2ZoneType zone) - { - if (creature.isPlayer() && (creature.getInstanceWorld() == null)) - { - creature.teleToLocation(TELEPORT_DATA.get(zone.getId())); - } - return super.onEnterZone(creature, zone); - } - - public static void main(String[] args) - { - new OrbisTempleTeleports(); - } -} \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/custom_script.xml b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/custom_script.xml index 31ba998330..ba5c38f78d 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/custom_script.xml +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/custom_script.xml @@ -476,42 +476,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -568,99 +532,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -873,16 +744,4 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/teleportzones.xml b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/teleportzones.xml index 243abe1a42..3408040879 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/teleportzones.xml +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/zones/teleportzones.xml @@ -155,4 +155,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/zones/custom_script.xml b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/zones/custom_script.xml index 31ba998330..10025fa8e4 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/zones/custom_script.xml +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/zones/custom_script.xml @@ -476,52 +476,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -568,147 +522,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -873,16 +686,4 @@ - - - - - - - - - - - - \ No newline at end of file