Removed PaganTeleporters script.

This commit is contained in:
MobiusDevelopment
2020-07-23 03:24:14 +00:00
parent 51b4bcf571
commit 4cbed14d21
5 changed files with 0 additions and 137 deletions

View File

@@ -1,4 +0,0 @@
<html><body>Temple Gatekeeper:<br>
You have nothing that would cover the holes.<br>
(You must have a Visitor's Mark or a Pagan's Mark in order to open this door.)
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Temple Gatekeeper:<br>
Show your Mark or be gone from my sight!<br>
Only those who possess the Pagan's Mark may pass through this gate!
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Temple Gatekeeper:<br>
On seeing the Pagan's Mark, the statue's probing eyes go blank.<br>
With the quiet whir of an engine, the gate swings open...
</body></html>

View File

@@ -1,3 +0,0 @@
<html><body>Temple Gatekeeper:<br>
The moment the mark touches the hole, the door swings open with a mechanical whir.
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}