From 4cbed14d21bc8dcaaaee26cbac68067e32713022 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 23 Jul 2020 03:24:14 +0000 Subject: [PATCH] Removed PaganTeleporters script. --- .../teleports/PaganTeleporters/32034-1.htm | 4 - .../teleports/PaganTeleporters/32036-1.htm | 4 - .../teleports/PaganTeleporters/32036-2.htm | 4 - .../teleports/PaganTeleporters/FadedMark.htm | 3 - .../PaganTeleporters/PaganTeleporters.java | 122 ------------------ 5 files changed, 137 deletions(-) delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32034-1.htm delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-1.htm delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-2.htm delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/FadedMark.htm delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/PaganTeleporters.java diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32034-1.htm b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32034-1.htm deleted file mode 100644 index 7f072b2870..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32034-1.htm +++ /dev/null @@ -1,4 +0,0 @@ -Temple Gatekeeper:
-You have nothing that would cover the holes.
-(You must have a Visitor's Mark or a Pagan's Mark in order to open this door.) - \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-1.htm b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-1.htm deleted file mode 100644 index 0ca431d9c2..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-1.htm +++ /dev/null @@ -1,4 +0,0 @@ -Temple Gatekeeper:
-Show your Mark or be gone from my sight!
-Only those who possess the Pagan's Mark may pass through this gate! - \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-2.htm b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-2.htm deleted file mode 100644 index 490fb5d893..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/32036-2.htm +++ /dev/null @@ -1,4 +0,0 @@ -Temple Gatekeeper:
-On seeing the Pagan's Mark, the statue's probing eyes go blank.
-With the quiet whir of an engine, the gate swings open... - \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/FadedMark.htm b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/FadedMark.htm deleted file mode 100644 index 1251e9ce51..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/FadedMark.htm +++ /dev/null @@ -1,3 +0,0 @@ -Temple Gatekeeper:
-The moment the mark touches the hole, the door swings open with a mechanical whir. - \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/PaganTeleporters.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/PaganTeleporters.java deleted file mode 100644 index 823ff7a6a1..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/teleports/PaganTeleporters/PaganTeleporters.java +++ /dev/null @@ -1,122 +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 teleports.PaganTeleporters; - -import org.l2jmobius.gameserver.datatables.xml.DoorData; -import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; -import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; -import org.l2jmobius.gameserver.model.quest.Quest; -import org.l2jmobius.gameserver.model.quest.QuestState; - -public class PaganTeleporters extends Quest -{ - // Items - private static final int VISITOR_MARK = 8064; - private static final int PAGAN_MARK = 8067; - - public PaganTeleporters() - { - super(-1, "teleports"); - - addStartNpc(32034, 32035, 32036, 32037, 32039, 32040); - addTalkId(32034, 32035, 32036, 32037, 32039, 32040); - } - - @Override - public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player) - { - if (event.equalsIgnoreCase("Close_Door1")) - { - DoorData.getInstance().getDoor(19160001).closeMe(); - } - else if (event.equalsIgnoreCase("Close_Door2")) - { - DoorData.getInstance().getDoor(19160010).closeMe(); - DoorData.getInstance().getDoor(19160011).closeMe(); - } - return null; - } - - @Override - public String onTalk(NpcInstance npc, PlayerInstance player) - { - String htmltext = ""; - final QuestState st = player.getQuestState(getName()); - if (st == null) - { - return htmltext; - } - - switch (npc.getNpcId()) - { - case 32034: - if (st.hasQuestItems(VISITOR_MARK) || st.hasQuestItems(PAGAN_MARK)) - { - DoorData.getInstance().getDoor(19160001).openMe(); - startQuestTimer("Close_Door1", 10000, npc, player, false); - htmltext = "FadedMark.htm"; - } - else - { - htmltext = "32034-1.htm"; - st.exitQuest(true); - } - break; - - case 32035: - DoorData.getInstance().getDoor(19160001).openMe(); - startQuestTimer("Close_Door1", 10000, npc, player, false); - htmltext = "FadedMark.htm"; - break; - - case 32036: - if (!st.hasQuestItems(PAGAN_MARK)) - { - htmltext = "32036-1.htm"; - } - else - { - DoorData.getInstance().getDoor(19160010).openMe(); - DoorData.getInstance().getDoor(19160011).openMe(); - startQuestTimer("Close_Door2", 10000, npc, player, false); - htmltext = "32036-2.htm"; - } - break; - - case 32037: - DoorData.getInstance().getDoor(19160010).openMe(); - DoorData.getInstance().getDoor(19160011).openMe(); - startQuestTimer("Close_Door2", 10000, npc, player, false); - htmltext = "FadedMark.htm"; - break; - - case 32039: - player.teleToLocation(-12766, -35840, -10856); - break; - - case 32040: - player.teleToLocation(34962, -49758, -763); - break; - } - return htmltext; - } - - public static void main(String[] args) - { - new PaganTeleporters(); - } -} \ No newline at end of file