From 04fcb108f9cac313c694462dab90c8fdb232e399 Mon Sep 17 00:00:00 2001
From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Tue, 3 Jan 2023 09:40:39 +0000
Subject: [PATCH] Addition of Hellbound Citadel. Contributed by MacuK.
---
.../areas/Hellbound/CitadelTeleport/34244.htm | 4 +
.../areas/Hellbound/CitadelTeleport/34245.htm | 4 +
.../CitadelTeleport/CitadelTeleport.java | 78 +++
.../game/data/spawns/Hellbound/Citadel.xml | 475 ++++++++++++++++++
.../areas/Hellbound/CitadelTeleport/34244.htm | 4 +
.../areas/Hellbound/CitadelTeleport/34245.htm | 4 +
.../CitadelTeleport/CitadelTeleport.java | 78 +++
.../game/data/spawns/Hellbound/Citadel.xml | 475 ++++++++++++++++++
8 files changed, 1122 insertions(+)
create mode 100644 L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm
create mode 100644 L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm
create mode 100644 L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java
create mode 100644 L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/spawns/Hellbound/Citadel.xml
create mode 100644 L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm
create mode 100644 L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm
create mode 100644 L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java
create mode 100644 L2J_Mobius_Essence_6.3_Crusader/dist/game/data/spawns/Hellbound/Citadel.xml
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm
new file mode 100644
index 0000000000..f698718290
--- /dev/null
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm
@@ -0,0 +1,4 @@
+
Teleport:
+Glad to see you! How can I help you?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm
new file mode 100644
index 0000000000..7993d1f81a
--- /dev/null
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm
@@ -0,0 +1,4 @@
+Capture Device:
+Glad to see you! How can I help you?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java
new file mode 100644
index 0000000000..283b51cfb7
--- /dev/null
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java
@@ -0,0 +1,78 @@
+/*
+ * 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.Hellbound.CitadelTeleport;
+
+import org.l2jmobius.gameserver.model.Location;
+import org.l2jmobius.gameserver.model.actor.Npc;
+import org.l2jmobius.gameserver.model.actor.Player;
+
+import ai.AbstractNpcAI;
+
+/**
+ * @author MacuK
+ */
+public class CitadelTeleport extends AbstractNpcAI
+{
+ // NPCs
+ private static final int TELEPORT = 34244;
+ private static final int CAPTURE_DEVICE = 34245;
+ // Locations
+ private static final Location[] LOCATIONS =
+ {
+ new Location(-10717, 282642, -13824),
+ new Location(-12071, 272965, -9032),
+ new Location(-12454, 284135, -15872),
+ new Location(-12714, 272944, -12104),
+ new Location(-12828, 284197, -9728),
+ new Location(-14219, 282404, -11776),
+ new Location(-21343, 282630, -15872),
+ new Location(-21368, 282680, -9728),
+ new Location(-21376, 282658, -11776),
+ new Location(-21405, 282671, -13824),
+ new Location(16679, 244326, 10496),
+ };
+
+ public CitadelTeleport()
+ {
+ addStartNpc(TELEPORT, CAPTURE_DEVICE);
+ addTalkId(TELEPORT, CAPTURE_DEVICE);
+ addFirstTalkId(TELEPORT, CAPTURE_DEVICE);
+ }
+
+ @Override
+ public String onAdvEvent(String event, Npc npc, Player player)
+ {
+ if (event.equals("teleport"))
+ {
+ player.teleToLocation(getRandomEntry(LOCATIONS));
+ return null;
+ }
+
+ return super.onAdvEvent(event, npc, player);
+ }
+
+ @Override
+ public String onFirstTalk(Npc npc, Player player)
+ {
+ return npc.getId() + ".htm";
+ }
+
+ public static void main(String[] args)
+ {
+ new CitadelTeleport();
+ }
+}
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/spawns/Hellbound/Citadel.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/spawns/Hellbound/Citadel.xml
new file mode 100644
index 0000000000..4d38a6a636
--- /dev/null
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/spawns/Hellbound/Citadel.xml
@@ -0,0 +1,475 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm
new file mode 100644
index 0000000000..f698718290
--- /dev/null
+++ b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34244.htm
@@ -0,0 +1,4 @@
+Teleport:
+Glad to see you! How can I help you?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm
new file mode 100644
index 0000000000..7993d1f81a
--- /dev/null
+++ b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/34245.htm
@@ -0,0 +1,4 @@
+Capture Device:
+Glad to see you! How can I help you?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java
new file mode 100644
index 0000000000..283b51cfb7
--- /dev/null
+++ b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/ai/areas/Hellbound/CitadelTeleport/CitadelTeleport.java
@@ -0,0 +1,78 @@
+/*
+ * 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.Hellbound.CitadelTeleport;
+
+import org.l2jmobius.gameserver.model.Location;
+import org.l2jmobius.gameserver.model.actor.Npc;
+import org.l2jmobius.gameserver.model.actor.Player;
+
+import ai.AbstractNpcAI;
+
+/**
+ * @author MacuK
+ */
+public class CitadelTeleport extends AbstractNpcAI
+{
+ // NPCs
+ private static final int TELEPORT = 34244;
+ private static final int CAPTURE_DEVICE = 34245;
+ // Locations
+ private static final Location[] LOCATIONS =
+ {
+ new Location(-10717, 282642, -13824),
+ new Location(-12071, 272965, -9032),
+ new Location(-12454, 284135, -15872),
+ new Location(-12714, 272944, -12104),
+ new Location(-12828, 284197, -9728),
+ new Location(-14219, 282404, -11776),
+ new Location(-21343, 282630, -15872),
+ new Location(-21368, 282680, -9728),
+ new Location(-21376, 282658, -11776),
+ new Location(-21405, 282671, -13824),
+ new Location(16679, 244326, 10496),
+ };
+
+ public CitadelTeleport()
+ {
+ addStartNpc(TELEPORT, CAPTURE_DEVICE);
+ addTalkId(TELEPORT, CAPTURE_DEVICE);
+ addFirstTalkId(TELEPORT, CAPTURE_DEVICE);
+ }
+
+ @Override
+ public String onAdvEvent(String event, Npc npc, Player player)
+ {
+ if (event.equals("teleport"))
+ {
+ player.teleToLocation(getRandomEntry(LOCATIONS));
+ return null;
+ }
+
+ return super.onAdvEvent(event, npc, player);
+ }
+
+ @Override
+ public String onFirstTalk(Npc npc, Player player)
+ {
+ return npc.getId() + ".htm";
+ }
+
+ public static void main(String[] args)
+ {
+ new CitadelTeleport();
+ }
+}
diff --git a/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/spawns/Hellbound/Citadel.xml b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/spawns/Hellbound/Citadel.xml
new file mode 100644
index 0000000000..4d38a6a636
--- /dev/null
+++ b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/spawns/Hellbound/Citadel.xml
@@ -0,0 +1,475 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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