diff --git a/trunk/dist/game/data/html/teleporter/33344.htm b/trunk/dist/game/data/html/teleporter/33344.htm index 3809f618d4..6de7aab9cb 100644 --- a/trunk/dist/game/data/html/teleporter/33344.htm +++ b/trunk/dist/game/data/html/teleporter/33344.htm @@ -2,6 +2,6 @@ This place is forsaken and forgotten...a resting place for my master. Where do you head from here, lowly one?
- + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts.cfg b/trunk/dist/game/data/scripts.cfg index b34e9b1f92..98ac2ec88c 100644 --- a/trunk/dist/game/data/scripts.cfg +++ b/trunk/dist/game/data/scripts.cfg @@ -72,6 +72,7 @@ ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java ai/npc/Teleports/GiantServant/GiantServant.java ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java +ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java ai/npc/Teleports/KargosTeleport/KargosTeleport.java ai/npc/Teleports/Klemis/Klemis.java ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java diff --git a/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java b/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java new file mode 100644 index 0000000000..6a7fe53876 --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java @@ -0,0 +1,66 @@ +/* + * 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.npc.Teleports.HarnakUnderground; + +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; + +import ai.npc.AbstractNpcAI; + +/** + * @author hlwrave + */ +final class HarnakUnderground extends AbstractNpcAI +{ + // NPC + private final static int HADEL = 33344; + // Misc + private final static int MIN_LEVEL = 85; + // Location + private final static Location HARNAK_UNDERGROUND = new Location(-114700, 147909, -7720); + + private HarnakUnderground() + { + super(HarnakUnderground.class.getSimpleName(), "ai/npc/Teleports"); + addStartNpc(HADEL); + addTalkId(HADEL); + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + if ((player.getLevel() >= MIN_LEVEL) && (player.isAwaken())) + { + player.teleToLocation(HARNAK_UNDERGROUND); + } + else if (player.getLevel() < MIN_LEVEL) + { + return "no_level.htm"; + } + else + { + return "non_awakened.htm"; + } + return super.onTalk(npc, player); + } + + public static void main(String[] args) + { + new HarnakUnderground(); + } +} diff --git a/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/no_level.htm b/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/no_level.htm new file mode 100644 index 0000000000..494e128906 --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/no_level.htm @@ -0,0 +1,4 @@ +Hadel:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(Only characters Lv. 85. or Above) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/non_awakened.htm b/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/non_awakened.htm new file mode 100644 index 0000000000..1ce554bd90 --- /dev/null +++ b/trunk/dist/game/data/scripts/ai/npc/Teleports/HarnakUnderground/non_awakened.htm @@ -0,0 +1,3 @@ +Hadel:
+Sorry, I can't teleport you to "Harnak Underground Ruins!". Come back when you have Awakened to it. + \ No newline at end of file