Harnak Underground teleport.

Contributed by hlwrave.
This commit is contained in:
MobiusDev
2016-02-08 07:22:42 +00:00
parent ee55c0dd94
commit ae0c5240d0
5 changed files with 75 additions and 1 deletions

View File

@@ -2,6 +2,6 @@
This place is forsaken and forgotten...a resting place for my master. Where do you head from here, lowly one?<br> This place is forsaken and forgotten...a resting place for my master. Where do you head from here, lowly one?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"Tell me about the Reliquary of the Giants."</Button> <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"Tell me about the Reliquary of the Giants."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_goto 3334401">"I'll go to the Reliquary of the Giants now."</Button> <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_goto 3334401">"I'll go to the Reliquary of the Giants now."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Harnak Underground Ruins!" (only for characters of level 85 or higher who have gone through awakening or the 3rd liberation)</Button> <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest HarnakUnderground">"Harnak Underground Ruins!" (only for characters of level 85 or higher who have gone through awakening or the 3rd liberation)</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button> <Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html> </body></html>

View File

@@ -72,6 +72,7 @@ ai/npc/Teleports/ElrokiTeleporters/ElrokiTeleporters.java
ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java ai/npc/Teleports/GainakUndergroundEntrance/GainakUndergroundEntrance.java
ai/npc/Teleports/GiantServant/GiantServant.java ai/npc/Teleports/GiantServant/GiantServant.java
ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java ai/npc/Teleports/GrandBossTeleporters/GrandBossTeleporters.java
ai/npc/Teleports/HarnakUnderground/HarnakUnderground.java
ai/npc/Teleports/KargosTeleport/KargosTeleport.java ai/npc/Teleports/KargosTeleport/KargosTeleport.java
ai/npc/Teleports/Klemis/Klemis.java ai/npc/Teleports/Klemis/Klemis.java
ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java ai/npc/Teleports/MithrilMinesTeleporter/MithrilMinesTeleporter.java

View File

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

View File

@@ -0,0 +1,4 @@
<html><body>Hadel:<br>
I do not believe our paths are meant to cross here. Perhaps later down the road.<br>
(Only characters Lv. 85. or Above)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Hadel:<br>
Sorry, I can't teleport you to "Harnak Underground Ruins!". Come back when you have Awakened to it.
</body></html>